Skip to content

feat(combat): take defence platforms offline at low power (#67) - #148

Draft
cubetribe wants to merge 2 commits into
mainfrom
feat/67-defence-offline-low-power
Draft

cubetribe wants to merge 2 commits into
mainfrom
feat/67-defence-offline-low-power

Conversation

@cubetribe

Copy link
Copy Markdown
Collaborator

Was: Gebäuderollen (MS-1: Verteidigungsplattform) im Strommangel des Besitzers (PlayerEconomyState.IsLowPower) erfassen nichts, feuern nicht und verwerfen ihr Ziel; Cooldown läuft weiter, bei Rückkehr des Stroms sofort wieder Feuer. Einheiten nie betroffen. CombatSystem bekommt das EconomySystem als dritten Parameter (alle Aufrufer übergaben es schon). Ressourcenleiste und Baubar nennen „Türme aus“.

Warum: Economy.md verlangt „Verteidigungsplattformen offline“; ohne das bleibt der Angriff aufs Kraftwerk halb wirksam. Fixes #67, Entscheidung D-122 (Entwurf).

Bereiche: Simulation/Combat/, Gameplay/UI/ (zwei Presenter), Tests beider Spuren, Buildings.md, Economy.md, DemoRunbook.md, DecisionLog, CHANGELOG.

Changelog: [Unreleased] → Geändert.
Tests: dotnet test 782/782 (vier neue, Negativkontrolle rot ohne Gate); check_docs.py OK; Guard-Selbsttest OK. Kein Pin, keine Baseline, RulesHash64 unverändert (Hash-Lücke wie #108, siehe D-122).
Unity-Spuren: EditMode 667/667, PlayMode 15/15.
Spielabnahme: nicht gespielt — Restrisiko: Balance (Kraftwerksausfall schaltet die gesamte Verteidigung ab), Spielerfalle durch nicht reservierte Baustellen, HUD-Textbreite unter Unity ungeprüft.

Berichte: reports/v8.6.0/issue-lauf-2026-10-17/03-issue-67-*.md, 03b-review-1-issue-67.md.

🤖 Generated with Claude Code

cubetribe and others added 2 commits October 17, 2026 17:43
Economy.md promises that defence platforms go offline in a power deficit,
but Simulation/Combat had no notion of power: whether a tower fires was
decided by IsArmed alone, so an attack on the enemy power plant was only
half effective. CombatSystem now takes the EconomySystem (all callers
already passed it) and skips building roles whose owner is low on power:
no target acquisition, no fire, a held target is dropped; the cooldown
keeps running so fire resumes the tick power returns. Units are never
affected. HUD warnings name the silent towers.

Fixes #67. Decision D-122 (draft; binding with the merge). No golden
baseline and no pin moves; RulesHash64 is unchanged (the gap from #108).
Sim tests 782/782; Unity EditMode mirrors not run.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
EditMode 667/667 and PlayMode 15/15 measured on this branch with Unity
6000.5.4f1 via the lane script from #110; no failures, clean tree.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strommangel schaltet die Verteidigung nicht ab — Simulation/Combat/ kennt keinen Strombegriff

1 participant