refactor gold rewards and tower cost; fix wave test leak

This commit is contained in:
2026-06-29 00:31:34 -07:00
parent 6f30cd5ff2
commit be9fc24cd9
5 changed files with 9 additions and 11 deletions
+2 -2
View File
@@ -38,7 +38,7 @@ TOWER_ARCHETYPES: [Tower_Kind]Tower_Archetype = {
range = 100,
damage = 12,
fire_rate = 0.45,
cost = TOWER_COST,
cost = 50,
footprint_w = 1,
footprint_h = 2,
max_upgrade = 1,
@@ -144,7 +144,7 @@ apply_tower_hit :: proc(world: ^World, target: ^Enemy, damage: int) {
target.health -= damage
if target.health <= 0 {
target.active = false
push_event(world, .Enemy_Killed, gold_reward = 5)
push_event(world, .Enemy_Killed, gold_reward = ENEMY_DEF[target.kind].gold_reward)
}
}