mihaid11/emberguard

Implement crystal entry fee in `StartTowerDefenseMenu`

Open

#102 opened on Jun 19, 2026

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

Repository metrics

Stars
 (2 stars)
PR merge metrics
 (PR metrics pending)

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

Contributor guide