Upgrade counts are in levels; day-1 text no longer promises pumpkin bombs
The workbench label, the morning screen and the end screen counted an
upgrade as done at level 1 ("N of 17"); they now count levels bought
(Upgrades.levels_bought / levels_total). Pumpkin bombs arrive at the shed
on day 3, so the first-morning text and the shoot tip say more weapons
arrive over the days instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
787b36a1c2
commit
5fcb87941e
6 changed files with 26 additions and 19 deletions
|
|
@ -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 aliens with your pitchfork (left mouse), scare them off (Q), and pick up anything they drop. Animals roam loose until you lead them into the pen: walk up to one and it follows you. The supply shed 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. Animals roam loose until you lead them into the pen: walk up to one and it follows you. The supply shed sells a corn shooter (switch weapons with Tab or 1-2), and more weapons arrive there over the days.")
|
||||
else:
|
||||
var e: Dictionary = s.night_log[s.night_log.size() - 1]
|
||||
_title.text = "Morning of day %d of %d" % [s.night, nights]
|
||||
|
|
@ -136,7 +136,8 @@ func refresh() -> void:
|
|||
var plan := waves.tonight() if waves != null else null
|
||||
if plan != null and plan.title != "":
|
||||
if structures != null and structures.has_workbench():
|
||||
lines.append("Tonight: %s. Upgrades at the work area: %d of %d done." % [plan.title, _upgrades_done(), Upgrades.ORDER.size()])
|
||||
lines.append("Tonight: %s. Upgrades: %d of %d levels." % [plan.title, Upgrades.levels_bought(campaign.config, s),
|
||||
Upgrades.levels_total(campaign.config)])
|
||||
else: # #9: the Workbench hasn't been granted yet -- it arrives once Night 1 is survived
|
||||
lines.append("Tonight: %s. The work area will be set up once you survive tonight." % plan.title)
|
||||
_body.text = "\n".join(lines)
|
||||
|
|
@ -210,14 +211,6 @@ func _damage_line() -> String:
|
|||
return "Needs repair (marked with health bars): %s." % ", ".join(parts)
|
||||
|
||||
|
||||
func _upgrades_done() -> int:
|
||||
var n := 0
|
||||
for id in Upgrades.ORDER:
|
||||
if Upgrades.owned(campaign.state, id):
|
||||
n += 1
|
||||
return n
|
||||
|
||||
|
||||
func _label(parent: Node, font_size: int, color: Color = Color(0.92, 0.92, 0.88)) -> Label:
|
||||
var l := Label.new()
|
||||
l.add_theme_font_size_override("font_size", font_size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue