From a48762aa66d4bfb4914fb201a5658131aa11ab3e Mon Sep 17 00:00:00 2001 From: Forrest Date: Mon, 5 Oct 2026 13:51:08 -0400 Subject: [PATCH] Fix wave_director entry_label: restore crop-target thief label, drop dead const entry_label() dropped the CROP arm when the thief-wave labels were reworded, so a thief wave targeting crops fell through to the generic "Aliens" instead of naming its target. Add "Aliens after the crops" and update the doc comment. Also delete TARGET_NAMES, left unused after that rework (git grep confirms no other references). Co-Authored-By: Claude Sonnet 5 --- game/scripts/wave_director.gd | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/game/scripts/wave_director.gd b/game/scripts/wave_director.gd index aa91780..ad131f2 100644 --- a/game/scripts/wave_director.gd +++ b/game/scripts/wave_director.gd @@ -26,11 +26,6 @@ const TARGETS := { "supplies": LootSystem.Category.SUPPLY, "any": LootSystem.ANY, } -const TARGET_NAMES := { - LootSystem.Category.CROP: "crop", - LootSystem.Category.ANIMAL: "animal", - LootSystem.Category.SUPPLY: "supply", -} var enabled := true var plans: Array[NightPlan] = [] @@ -105,8 +100,8 @@ func tonight_entries() -> Array: return out -## What a [type, want] pair is called: "Crows", "Alien robots", "Aliens after the animals", -## "Aliens after the supplies", or "Aliens" (any target). +## What a [type, want] pair is called: "Crows", "Alien robots", "Aliens after the crops", +## "Aliens after the animals", "Aliens after the supplies", or "Aliens" (any target). static func entry_label(entry: Array) -> String: match int(entry[0]): EnemySystem.TYPE_CROW: @@ -114,6 +109,8 @@ static func entry_label(entry: Array) -> String: EnemySystem.TYPE_BREAKER: return "Alien robots" match int(entry[1]): + LootSystem.Category.CROP: + return "Aliens after the crops" LootSystem.Category.ANIMAL: return "Aliens after the animals" LootSystem.Category.SUPPLY: