orbit/dev
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
..
asteroids.test.mjs
…
cdp-eval.mjs
…
cdp-firefox.mjs
…
cdpshot.mjs
…
clickout-test.html
…
clickout-test.mjs
…
decode.test.mjs
…
discovery.test.mjs
…
galaxy.test.mjs
…
mining-test.html Add asteroid mining: energy arm, beam FX, and context menu 2026-09-04 17:09:16 -06:00
mining-test.mjs Add ship state machine and let movement break the mining sequence 2026-09-04 18:06:33 -06:00
planet.test.mjs
…
popup-shot.html Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
popup-shot.mjs Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
reputation.test.mjs Add reputation data layer with stable place identity 2026-09-04 18:37:44 -06:00
research-builds.test.mjs
…
saves-ui-test.html
…
saves-ui-test.mjs
…
saves.test.mjs
…
ship-behavior.test.mjs
…
smoke-game.mjs
…
starfield.test.mjs
…
system-hud.test.mjs Add asteroid mining: energy arm, beam FX, and context menu 2026-09-04 17:09:16 -06:00
test-game.html
…
tether.test.mjs
…
wdshot.mjs Fix mining popup width and layout to fit real font metrics 2026-09-04 17:16:56 -06:00
zorder-test.html
…
zorder-test.mjs
…