orbit/js
Brian Fertig aca351b035 Persist combat vitals in save data and restore damage on load
- Capture hull/shields/energy from the live CombatSystem into record.combat on save
- Stage `combatVitals` in prepareLoad so a panel load restores the damage the run was flying with (clamped, hull floored at 1) instead of always starting full
- Add `repairFull()` to CombatSystem and call it on world landing (startLanding) so the dock heals the ship
- Set `combatRepair` flag in jumpThroughGate's record so a system arrival also triggers a full repair, while panel loads never carry it
- Clear both staged values in resetRunState for fresh runs
- Carry `cargoCosts` through jump records to preserve per-bay pricing across systems
2026-09-28 19:06:11 -06:00
..
build
…
combat Persist combat vitals in save data and restore damage on load 2026-09-28 19:06:11 -06:00
comms
…
config
…
dev
…
economy
…
entities
…
galaxy
…
mining
…
player
…
quests
…
reputation
…
research
…
save Persist combat vitals in save data and restore damage on load 2026-09-28 19:06:11 -06:00
scan
…
scenes Persist combat vitals in save data and restore damage on load 2026-09-28 19:06:11 -06:00
ship
…
skills
…
tether
…
ui
…
utils
…
vendor
…
vignettes
…
visuals
…
main.js
…