Merge task #26: upgrade tiers and timed shed stock

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	game/scripts/coop_session.gd
This commit is contained in:
Forrest 2026-10-06 16:20:52 -04:00
commit 787b36a1c2
12 changed files with 531 additions and 137 deletions

View file

@ -541,9 +541,9 @@ func _do_request(r: Array) -> void:
var id := String(r[1])
if Upgrades.shop_of(c.config, id) == "workbench" and (sim.structures == null or not sim.structures.workbench_available()):
return
var was := Upgrades.owned(c.state, id)
var was := Upgrades.level(c.state, id)
Upgrades.buy(c, id, sim.structures, a.slot) # paid from P2's pouch, then the shed
if not was and Upgrades.owned(c.state, id):
if Upgrades.level(c.state, id) > was:
_events.append(["bought", a.slot, id]) # the buyer's game: a new weapon into its hand