orbit/js
Brian Fertig 0c30985588 Add reputation data layer with stable place identity
- Introduce Reputation module (js/reputation/Reputation.js) tracking player standing on planets and space stations on a −20…+20 scale, with the home world pinned at +20
- Add data/reputation.json config for scale bounds, neutral default, and home-world standing
- Assign stable seed-deterministic ids to planets (<systemId>-p<ordinal>) and settlements (<systemId>-s<n>) in SystemGenerator so saved standing lines up with regenerated galaxies
- Wire reputation into the save system (captureState/prepareLoad/resetRunState) with backward-compatible loading of pre-reputation saves as all-neutral
- Add faction-check placeholder: standingFor() resolves home → stored → owner/faction → neutral, with factionStanding() stubbed for the upcoming factions layer
- Register a single Reputation instance in GameScene via the shared registry (same pattern as Discovery)
- Add dev/reputation.test.mjs covering scale clamping, home pinning, serialization round-trips, legacy/corrupt record handling, save integration, and place-id stability
2026-09-04 18:37:44 -06:00
..
config
entities Add ship state machine and let movement break the mining sequence 2026-09-04 18:06:33 -06:00
galaxy Add reputation data layer with stable place identity 2026-09-04 18:37:44 -06:00
mining Add ship state machine and let movement break the mining sequence 2026-09-04 18:06:33 -06:00
reputation Add reputation data layer with stable place identity 2026-09-04 18:37:44 -06:00
save Add reputation data layer with stable place identity 2026-09-04 18:37:44 -06:00
scenes Add reputation data layer with stable place identity 2026-09-04 18:37:44 -06:00
tether
ui Add ship state machine and let movement break the mining sequence 2026-09-04 18:06:33 -06:00
utils Fix menu sub-bar, save panel, and confirm dialog input and z-order bugs 2026-09-04 14:31:34 -06:00
vendor
visuals
main.js