mihaid11/emberguard

Implement crystal entry fee in `StartTowerDefenseMenu`

Open

#102 aberto em 19 de jun. de 2026

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)C++ (1 fork)auto 404
enhancementgood first issue

Métricas do repositório

Stars
 (2 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

Currently, entering a Tower Defense level does not consume any upfront crystals from the player's permanent balance. To implement the "Expedition/Entry Fee" mechanic, the game should deduct a fixed amount of Crystals when the player clicks the "Start" button for a level.

In StartTowerDefenseMenu, we need to check if the player has enough global crystals to cover the entry fee before allowing them to start the level. If they do, deduct the fee from their balance and proceed; otherwise, block the entry and show a fading error message. For now, bind it to the level number (level * 20).

Priority: Low

Guia do colaborador