From 8146567aaceebb3ca6979aa88973305f3a279245 Mon Sep 17 00:00:00 2001 From: Forrest Date: Mon, 5 Oct 2026 13:48:00 -0400 Subject: [PATCH] Enemy roster reskin: thief -> Alien, breaker -> Alien Robot display names Renames player-visible text only (toasts, HUD hints, wave labels, night and scenario titles, tutorial tips, review/end panel text): thief/thieves display as alien/aliens, fence breaker/fence breakers display as alien robot/alien robots. Crows keep their name; night 1's dusk hint and night 3's hint get brief alien-mind-control framing. All TYPE_* ids, "thief"/ "breaker"/"crow" data keys, class/function/variable names, and code comments are unchanged. Adds EnemySystem.ARTICLES so "a"/"an" still agrees with the new names. Updates the two tests that assert the old display strings (test_flow.gd, test_save.gd); test_roster.gd and test_theft.gd are untouched. Co-Authored-By: Claude Sonnet 5 --- game/resources/nights/night_1.tres | 2 +- game/resources/nights/night_2.tres | 2 +- game/resources/nights/night_3.tres | 4 ++-- game/resources/scenarios/breakers.tres | 2 +- game/resources/scenarios/crows_thieves.tres | 2 +- game/resources/scenarios/thieves.tres | 2 +- .../resources/scenarios/thieves_breakers.tres | 2 +- game/scripts/end_panel.gd | 2 +- game/scripts/enemy_system.gd | 6 ++++-- game/scripts/farm_sim.gd | 6 +++--- game/scripts/phase_hud.gd | 6 +++--- game/scripts/review_panel.gd | 2 +- game/scripts/toast_feed.gd | 6 +++--- game/scripts/tutorial.gd | 4 ++-- game/scripts/wave_director.gd | 19 +++++++++++-------- game/tests/test_flow.gd | 2 +- game/tests/test_save.gd | 2 +- 17 files changed, 38 insertions(+), 33 deletions(-) diff --git a/game/resources/nights/night_1.tres b/game/resources/nights/night_1.tres index e0c2a94..eec4431 100644 --- a/game/resources/nights/night_1.tres +++ b/game/resources/nights/night_1.tres @@ -5,7 +5,7 @@ [resource] script = ExtResource("1_plan") title = "Crows at the crops" -dusk_hint = "The crows are coming for the crops....." +dusk_hint = "The crows are coming for the crops..... something in the sky is steering them." count_scale = 1.0 spacing_scale = 1.0 groups = Array[Dictionary]([{ diff --git a/game/resources/nights/night_2.tres b/game/resources/nights/night_2.tres index d49e49b..0f86f96 100644 --- a/game/resources/nights/night_2.tres +++ b/game/resources/nights/night_2.tres @@ -4,7 +4,7 @@ [resource] script = ExtResource("1_plan") -title = "Thieves in the yard" +title = "Aliens in the yard" dusk_hint = "The Crows are coming again...... and what are those things?!" groups = Array[Dictionary]([{ "count": 3, diff --git a/game/resources/nights/night_3.tres b/game/resources/nights/night_3.tres index d1bc246..d297791 100644 --- a/game/resources/nights/night_3.tres +++ b/game/resources/nights/night_3.tres @@ -4,8 +4,8 @@ [resource] script = ExtResource("1_plan") -title = "Breakers at the fences" -dusk_hint = "You guessed it. Crows. Thieves. And.... Oh no..." +title = "Alien robots at the fences" +dusk_hint = "You guessed it. Crows. Aliens. And.... Oh no..." groups = Array[Dictionary]([{ "count": 1, "every": 2.0, diff --git a/game/resources/scenarios/breakers.tres b/game/resources/scenarios/breakers.tres index cc9851e..b769525 100644 --- a/game/resources/scenarios/breakers.tres +++ b/game/resources/scenarios/breakers.tres @@ -4,7 +4,7 @@ [resource] script = ExtResource("1_plan") -title = "Fence breakers only" +title = "Alien robots only" groups = Array[Dictionary]([{ "count": 1, "every": 2.0, diff --git a/game/resources/scenarios/crows_thieves.tres b/game/resources/scenarios/crows_thieves.tres index bbd4999..99d81b6 100644 --- a/game/resources/scenarios/crows_thieves.tres +++ b/game/resources/scenarios/crows_thieves.tres @@ -4,7 +4,7 @@ [resource] script = ExtResource("1_plan") -title = "Crows and thieves" +title = "Crows and aliens" groups = Array[Dictionary]([{ "count": 3, "every": 1.5, diff --git a/game/resources/scenarios/thieves.tres b/game/resources/scenarios/thieves.tres index 7dc995f..e630d25 100644 --- a/game/resources/scenarios/thieves.tres +++ b/game/resources/scenarios/thieves.tres @@ -4,7 +4,7 @@ [resource] script = ExtResource("1_plan") -title = "Ground thieves only" +title = "Ground aliens only" groups = Array[Dictionary]([{ "count": 2, "every": 3.0, diff --git a/game/resources/scenarios/thieves_breakers.tres b/game/resources/scenarios/thieves_breakers.tres index d4d6bad..ef9acf5 100644 --- a/game/resources/scenarios/thieves_breakers.tres +++ b/game/resources/scenarios/thieves_breakers.tres @@ -4,7 +4,7 @@ [resource] script = ExtResource("1_plan") -title = "Thieves behind a fence breaker" +title = "Aliens behind an alien robot" groups = Array[Dictionary]([{ "count": 1, "every": 2.0, diff --git a/game/scripts/end_panel.gd b/game/scripts/end_panel.gd index d499926..3c9cb99 100644 --- a/game/scripts/end_panel.gd +++ b/game/scripts/end_panel.gd @@ -192,7 +192,7 @@ func show_assessment() -> void: "animals": (row[1] as Label).text = "%d%% (%d of %d)" % [pct, s.animals, s.animals_total] _: - (row[1] as Label).text = "%d%% kept from thieves (%d of %d carried off)" % [pct, a["supplies_lost"], a["supplies_handled"]] + (row[1] as Label).text = "%d%% kept from aliens (%d of %d carried off)" % [pct, a["supplies_lost"], a["supplies_handled"]] _stats.text = _totals_text(a["totals"], true) _stats.visible = true _retry.visible = false diff --git a/game/scripts/enemy_system.gd b/game/scripts/enemy_system.gd index ba60797..b6b9e80 100644 --- a/game/scripts/enemy_system.gd +++ b/game/scripts/enemy_system.gd @@ -27,8 +27,10 @@ const TYPE_BREAKER := 2 ## GameConfig.enemy_types keys, by type id. const TYPE_NAMES: Array[String] = ["thief", "crow", "breaker"] ## Display names, singular and plural. -const NAMES: Array[String] = ["thief", "crow", "fence breaker"] -const PLURALS: Array[String] = ["thieves", "crows", "fence breakers"] +const NAMES: Array[String] = ["alien", "crow", "alien robot"] +const PLURALS: Array[String] = ["aliens", "crows", "alien robots"] +## "a" or "an" for NAMES[t], by type id. +const ARTICLES: Array[String] = ["an", "a", "an"] const NB_DX: Array[int] = [0, -1, 0, 1, -1, 1, -1, 0, 1] const NB_DZ: Array[int] = [0, -1, -1, -1, 0, 0, 1, 1, 1] diff --git a/game/scripts/farm_sim.gd b/game/scripts/farm_sim.gd index 79b8755..1f6507d 100644 --- a/game/scripts/farm_sim.gd +++ b/game/scripts/farm_sim.gd @@ -676,8 +676,8 @@ static func arrival_message(type: int, side: String) -> String: EnemySystem.TYPE_CROW: return "A crow flew in" + from EnemySystem.TYPE_BREAKER: - return "A fence breaker came in" + from - return "A thief slipped in" + from + return "An alien robot came in" + from + return "An alien slipped in" + from func _on_phase_changed(phase: CampaignController.Phase, _previous: CampaignController.Phase) -> void: @@ -689,7 +689,7 @@ func _on_phase_changed(phase: CampaignController.Phase, _previous: CampaignContr CampaignController.Phase.DAWN: behavior.retreat_all(enemies) if enemies.alive_count() > 0 and toasts != null: - toasts.push("Sunrise! The thieves are running for it", Color(1.0, 0.85, 0.6)) + toasts.push("Sunrise! The aliens are running for it", Color(1.0, 0.85, 0.6)) CampaignController.Phase.MORNING: if partner == null and not replica: campaign.state.coop = false # a co-op save continued alone: solo rules diff --git a/game/scripts/phase_hud.gd b/game/scripts/phase_hud.gd index f89fc74..e8ff043 100644 --- a/game/scripts/phase_hud.gd +++ b/game/scripts/phase_hud.gd @@ -89,7 +89,7 @@ func _process(delta: float) -> void: _sub.text = "Night · sunrise in %s" % left hint = on_the_farm(enemies) CampaignController.Phase.DAWN: - _sub.text = "Dawn · the thieves are fleeing (%s)" % left + _sub.text = "Dawn · the aliens are fleeing (%s)" % left CampaignController.Phase.FARMERS_RETURN: _sub.text = "The farmers are back" CampaignController.Phase.GAME_OVER: @@ -137,7 +137,7 @@ func _on_phase_changed(phase: CampaignController.Phase, _previous: CampaignContr CampaignController.Phase.DAY: text = "Day %d: gather and build" % s.night CampaignController.Phase.DUSK: - text = "Dusk: %s" % _tonight_title("the thieves come at nightfall") + text = "Dusk: %s" % _tonight_title("the aliens come at nightfall") CampaignController.Phase.NIGHT: text = "Night %d: %s" % [s.night, _tonight_title("")] if _tonight_title("") != "" else "Night %d" % s.night CampaignController.Phase.DAWN: @@ -169,7 +169,7 @@ static func on_the_farm(es: EnemySystem) -> String: var parts := PackedStringArray() for t in [EnemySystem.TYPE_CROW, EnemySystem.TYPE_THIEF, EnemySystem.TYPE_BREAKER]: if counts[t] == 1: - parts.append("a " + EnemySystem.NAMES[t]) + parts.append(EnemySystem.ARTICLES[t] + " " + EnemySystem.NAMES[t]) elif counts[t] > 1: parts.append("%d %s" % [counts[t], EnemySystem.PLURALS[t]]) if parts.is_empty(): diff --git a/game/scripts/review_panel.gd b/game/scripts/review_panel.gd index 261fdb6..9a9ade1 100644 --- a/game/scripts/review_panel.gd +++ b/game/scripts/review_panel.gd @@ -114,7 +114,7 @@ func refresh() -> void: _title.text = "The farmers are away" lines.append("Keep the farm safe for %d nights until they come home: the crops, the animals in the pen, and the supplies in the shed." % nights) lines.append("By day, gather wood, scrap, and straw (hold E), store them at the barn, and build defenses (B). There's more to gather off the farm, to the north, east, and south.") - lines.append("At night, stab thieves with your pitchfork (left mouse), scare them off (Q), and pick up anything they drop. A dropped animal runs off: walk up to it and lead it back to the pen. The workbench sells a corn shooter (switch weapons with Tab or 1-2) and pumpkin bombs (throw them with right mouse).") + lines.append("At night, stab aliens with your pitchfork (left mouse), scare them off (Q), and pick up anything they drop. A dropped animal runs off: walk up to it and lead it back to the pen. The workbench sells a corn shooter (switch weapons with Tab or 1-2) and pumpkin bombs (throw them with right mouse).") else: var e: Dictionary = s.night_log[s.night_log.size() - 1] _title.text = "Morning of day %d of %d" % [s.night, nights] diff --git a/game/scripts/toast_feed.gd b/game/scripts/toast_feed.gd index 797d9ac..d79492a 100644 --- a/game/scripts/toast_feed.gd +++ b/game/scripts/toast_feed.gd @@ -10,9 +10,9 @@ const FADE := 0.6 const SLOTS := 5 ## Loot events per category (LootSystem.Category): the text ("%s" is the item's noun) and color. const MESSAGES := { - &"stolen": [["A crop was snatched!", "A %s was grabbed!", "Thieves took %s from the shed!"], Color(1.0, 0.6, 0.15)], - &"dropped": [["The thief dropped the crop. Grab it!", "The thief dropped the %s. Catch it before it runs off!", - "The thief dropped %s. Grab it!"], Color(1.0, 0.9, 0.3)], + &"stolen": [["A crop was snatched!", "A %s was grabbed!", "Aliens took %s from the shed!"], Color(1.0, 0.6, 0.15)], + &"dropped": [["The alien dropped the crop. Grab it!", "The alien dropped the %s. Catch it before it runs off!", + "The alien dropped %s. Grab it!"], Color(1.0, 0.9, 0.3)], &"recovered": [["Crop recovered", "The %s is back in the pen", "%s back in the shed"], Color(0.5, 1.0, 0.45)], &"returned": [["A dropped crop went back to its plot", "The %s went back to the pen", "%s went back to the shed"], Color(0.85, 0.95, 1.0)], diff --git a/game/scripts/tutorial.gd b/game/scripts/tutorial.gd index 56ad5be..2bedb47 100644 --- a/game/scripts/tutorial.gd +++ b/game/scripts/tutorial.gd @@ -15,8 +15,8 @@ const TEXT := { "move": "Move with [W A S D] or the left stick. You're the scarecrow: keep the farm safe until the farmers are back.", "gather": "Hold [E / X] at a dead tree, the haystacks, or the scrap heap to gather wood, straw, and scrap.", "store": "Your pouch only holds so much: walk onto the barn's apron (the Supply Shed) to store what you carry.", - "build": "Press [B / d-pad up] to build. Pick a fence [1], place it with left mouse / RT. Thieves have to break through fences.", - "dusk": "Dusk: thieves come at nightfall, from every side of the farm.", + "build": "Press [B / d-pad up] to build. Pick a fence [1], place it with left mouse / RT. Aliens have to break through fences.", + "dusk": "Dusk: aliens come at nightfall, from every side of the farm.", "shoot": "Aim with the mouse or the right stick and hold left mouse / RT to stab with your pitchfork. The workbench sells a corn shooter (switch with [Tab / 1-2]) and pumpkin bombs for your off-hand: throw them with [right mouse / LT].", "fear": "Crowded? [Q / LB] Fear scares off everything nearby, and they drop what they carry.", "recover": "Something was dropped! Walk over it to bring it home. A dropped animal follows you back to the pen.", diff --git a/game/scripts/wave_director.gd b/game/scripts/wave_director.gd index d86e0c6..aa91780 100644 --- a/game/scripts/wave_director.gd +++ b/game/scripts/wave_director.gd @@ -105,21 +105,24 @@ func tonight_entries() -> Array: return out -## What a [type, want] pair is called: "Crows", "Fence breakers", "Animal thieves", "Supply -## thieves", or "Thieves" (any target). +## What a [type, want] pair is called: "Crows", "Alien robots", "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: return "Crows" EnemySystem.TYPE_BREAKER: - return "Fence breakers" - if TARGET_NAMES.has(entry[1]): - return "%s thieves" % String(TARGET_NAMES[entry[1]]).capitalize() - return "Thieves" + return "Alien robots" + match int(entry[1]): + LootSystem.Category.ANIMAL: + return "Aliens after the animals" + LootSystem.Category.SUPPLY: + return "Aliens after the supplies" + return "Aliens" -## Tonight's warning as lines for the HUD: "Tonight, from every side: crows, supply thieves and -## fence breakers". +## Tonight's warning as lines for the HUD: "Tonight, from every side: crows, aliens after the +## supplies and alien robots". func tonight_warning() -> PackedStringArray: var labels := PackedStringArray() for e in tonight_entries(): diff --git a/game/tests/test_flow.gd b/game/tests/test_flow.gd index c8ec1a8..c1cbc36 100644 --- a/game/tests/test_flow.gd +++ b/game/tests/test_flow.gd @@ -352,7 +352,7 @@ func _ending() -> void: and panel._rating.text.contains("points") and panel._bars.visible and panel._menu.visible and panel._menu.has_focus() and not panel._retry.visible, "then the final assessment ('%s')" % panel._rating.text) var a := Assessment.of(c.state, cfg) - r.check(panel._rating.text == "%s · %d points" % [a["tier"], a["score"]] and panel._stats.text.contains("Enemies defeated: 40 crows and 8 thieves") + r.check(panel._rating.text == "%s · %d points" % [a["tier"], a["score"]] and panel._stats.text.contains("Enemies defeated: 40 crows and 8 aliens") and panel._stats.text.contains("Gathered 48 wood"), "with the rating, the shares kept, and the vacation's totals") r.info("assessment: %s\n%s\n%s" % [panel._rating.text, panel._detail.text, panel._stats.text]) ending.clear() diff --git a/game/tests/test_save.gd b/game/tests/test_save.gd index c1daf99..ede95ef 100644 --- a/game/tests/test_save.gd +++ b/game/tests/test_save.gd @@ -242,7 +242,7 @@ func _assessment(r: GameTestRunner) -> void: var b := Assessment.of(no_animals, cfg) r.check(not (b["parts"] as Dictionary).has("animals") and b["score"] == roundi(100.0 * (0.5 * 0.5 + 0.2) / 0.7), "categories not in play are left out and the weights renormalized") - r.check(Assessment.enemies_line({"killed_crow": 3, "killed_thief": 1, "killed_breaker": 0}) == "3 crows and 1 thief" + r.check(Assessment.enemies_line({"killed_crow": 3, "killed_thief": 1, "killed_breaker": 0}) == "3 crows and 1 alien" and Assessment.materials_line({"spent_wood": 4, "spent_straw": 2}, "spent_") == "4 wood, 2 straw" and Assessment.materials_line({}, "gathered_") == "nothing", "the totals read as words")