Task #23: remove the zone banner and the message feed

The user asked to drop the pop-up status lines, including replies to the
player's own actions.

- farm.tscn (edited as text): the ZoneBanner and Hud/ToastFeed nodes, their
  ext_resources, and FarmSim's toasts export are gone. zone_banner.gd and
  toast_feed.gd (with their .uid files) are deleted.
- FarmSim: no toast wiring, no arrival_message, no outside-the-fence or
  sunrise lines. Main: no lobby-failure or microphone lines; _set_hud only
  hides Hud. CampaignDebug: F2 no longer toasts (the F1 readout shows the
  scenario).
- CoopSession: the host no longer sends "toast" or "arrived" events, and
  the partner no longer handles them. The joined/left/version lines are gone
  (the partner's main menu still says why a session ended). A refused
  build request still sends the error sound. PROTOCOL stays 5: the other
  messages and records are unchanged, and _apply_event ignores unknown
  kinds, so mixed builds still work together.
- BuildMode.message is removed (no test listens to it). Interactions.message
  and UpgradePanel.message stay because tests listen to them.
- test_farm_layout: the banner checks are removed.
- RULES.md, README.md, COOP.md, and LAYOUT.md no longer describe the banner
  or toasts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Forrest 2026-10-06 16:02:37 -04:00
parent 6a9575dfe4
commit 1e91ccf594
18 changed files with 37 additions and 286 deletions

View file

@ -11,10 +11,9 @@ extends Node3D
## cancel leaves build mode.
## The scarecrow doesn't shoot, gather, or repair while building (FarmSim, Interactions).
## Co-op, on the partner's machine: placing and dismantling are sent to the host (place_request,
## dismantle_request), which checks them again and does them; the result comes back as a message.
## dismantle_request), which checks them again and does them.
## The cost is checked against (and paid from) the builder's own pouch and the shed (kit.slot).
signal message(text: String, color: Color)
signal toggled(on: bool)
## A placement was refused (the reason); a structure was taken down.
signal refused(reason: String)
@ -122,10 +121,8 @@ func step(_dt: float) -> void:
hover = -1
return
var e := campaign.state.structure(hover)
var back := structures.dismantle(hover)
structures.dismantle(hover)
dismantled.emit(String(e["type"]))
message.emit("Dismantled the %s%s" % [StructureSystem.NAMES[e["type"]].to_lower(),
(": %s back in the shed" % ResourceStore.describe(back)) if not back.is_empty() else ""], Color(0.85, 0.95, 1.0))
hover = -1
return
reason = structures.validate(type(), cursor.x, cursor.y, rot, me, kit.slot)
@ -134,9 +131,7 @@ func step(_dt: float) -> void:
place_request.call(type(), cursor.x, cursor.y, rot)
elif reason == "":
structures.place(type(), cursor.x, cursor.y, rot, kit.slot)
message.emit("Built a %s" % StructureSystem.NAMES[type()].to_lower(), Color(0.6, 1.0, 0.55))
else:
message.emit(reason, Color(1.0, 0.8, 0.5))
refused.emit(reason)
elif p[&"cancel"]:
set_active(false)