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 <noreply@anthropic.com>
This commit is contained in:
parent
8146567aac
commit
a48762aa66
1 changed files with 4 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue