fertig-classic-games/data
Brian Fertig d920d8e476 feat(combat): freeze colony defense regen and defensive builds while under siege
Add siegeFreezesDefense mechanic (default true) that stops a colony's
passive defenseHp trickle and blocks defensive building completion at the
front of the build queue while a hostile warship fleet is present.

This fixes the recurring "Under Attack" notification loop reported by Brian
where defenseHp would regenerate each turn, re-arming the pendingBattlesFor
gate and triggering fresh popup notices for an already-beaten colony.

Also adds an AI dispatch throttle in manageFleets: idle fleets no longer
open redundant attack orders against colonies the empire already holds orbit
over with defenseHp beaten to 0. Excluded fleets fall through to rally logic
and naturally join the existing siege or find a fresh front.

New helpers: isDefensiveBuildingId, isHostileWarshipFleet, hasHostileWarshipFleet
— shared across processColony, pendingBattlesFor, and VegaAI to ensure a
single definition of "under active siege".

Includes tests (sections 5d, 5e) covering regen freeze, build queue freeze,
siegeFreezesDefense=false toggle, and AI throttle.
2026-08-15 08:00:40 -06:00
..
crosswords
…
wordlists
…
advancewars-artwork.json
…
advancewars-campaign.json
…
advancewars-rules.json
…
adventure-music.json
…
arcadedark-music.json
…
balatro-artwork.json
…
blockfighter.json
…
bloxorz.json
…
bookwork.json
…
card-backs.json
…
chinese-music.json
…
civilization-artwork.json feat: add barbarian raiders system with warlord ransoms 2026-08-01 18:18:36 -06:00
civilization-rules.json feat: add barbarian raiders system with warlord ransoms 2026-08-01 18:18:36 -06:00
colorado-defense-cities.json
…
colored-playfields.json
…
dotlink.json
…
dungeonboss-artwork.json
…
hacker-music.json
…
jewelquest.json
…
jumble-riddles.json
…
jumble.json
…
katamino.json
…
masterofvega-music.json Music Updates 2026-08-09 09:31:12 -06:00
mastervega-artwork.json feat(master-vega): overhaul bombard/invasion UX, consequences, and battle logic 2026-08-14 23:17:31 -06:00
mastervega-rules.json feat(combat): freeze colony defense regen and defensive builds while under siege 2026-08-15 08:00:40 -06:00
music.json
…
nintendo-music.json
…
opponents.json
…
playfields.json
…
puddingmonsters.json
…
shift-artwork.json Shift Artwork Additions 2026-08-01 11:52:23 -06:00
slots-artwork.json
…
spireclimb-artwork.json
…
star-control-ships.json
…
superkart-artwork.json
…
superkart-racers.json
…
superkart-rules.json
…
swdbg-artwork.json
…
swdbg-cards.json
…
tetrisattack-artwork.json
…
tetrisattack-puzzles.json
…
tetrisattack.json
…
totalannihilation-artwork.json feat: add radar detection system with jamming and contacts 2026-08-01 14:51:05 -06:00
totalannihilation-campaign.json feat(totalannihilation): overhaul flight model to strafing behavior 2026-08-01 13:15:58 -06:00
totalannihilation-rules.json feat: add radar detection system with jamming and contacts 2026-08-01 14:51:05 -06:00
zuma-music.json tune zuma: slow down ball push speed, add per-level backgrounds & lose fanfare 2026-07-28 17:54:23 -06:00