refactor gold rewards and tower cost; fix wave test leak
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user