Merge task #16: each co-op player has their own pouch
The shed stays shared; pouches are per avatar slot with one shared capacity. Gather/deposit/pay paths take the acting slot, goop goes to the killer, a leaving partner's pouch goes into the shed. FarmState v7 (partner_pouch), CoopSession PROTOCOL 4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
2fc09ca3fa
23 changed files with 535 additions and 138 deletions
|
|
@ -221,8 +221,11 @@ func _cycles(n: int) -> void:
|
|||
_carry_errors.append("cycle %d: %d structures at night - %d broken != %d in the morning" % [k + 1, built_night, broken, _sim.structures.count()])
|
||||
var now := s.resources.to_dict()
|
||||
for m in ["wood", "scrap"]:
|
||||
var before := int(res_night["shed"][m]) + int(res_night["pouch"][m])
|
||||
var after := int(now["shed"][m]) + int(now["pouch"][m])
|
||||
var before := int(res_night["shed"][m])
|
||||
var after := int(now["shed"][m])
|
||||
for key in ResourceStore.POUCH_KEYS: # every scarecrow's pouch (solo: player 2's stays empty)
|
||||
before += int(res_night[key][m])
|
||||
after += int(now[key][m])
|
||||
if after != before - int(lost_by.get(m, 0)):
|
||||
_carry_errors.append("cycle %d: %s %d -> %d overnight, %d carried off" % [k + 1, m, before, after, int(lost_by.get(m, 0))])
|
||||
if s.supplies_in_transit != 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue