orbit/js
Brian Fertig 2e9b1ace5a Record per-bay cargo purchase costs and use them as the profit baseline
- CargoHold gains a parallel `costs` ledger (credits/unit actually paid, or null when no cost is on file), kept aligned across add/remove/set/capacity/dropFirstNot and serialized via toJSON/fromJSON
- ShopView stamps each bought bay with the trade's unit price so the console can compare exit prices against what was really paid
- ShipScreenModel/ShipWindow surface per-bay costs, a total-cost hold meta line, and a "PAID" chip + reference line in the bay manifest; bays with no cost read "NO COST" instead of inventing one
- GameScene passes the bay's recorded cost into scoutGood() so exit profits re-baseline against the purchase (falling back to the catalog value when absent), and restore/quest-handoff paths load null costs cleanly for legacy saves
- Adds arid-shop-02 video asset and updates cargo/saves/ship-window/shop-ui tests to cover the new ledger
2026-09-19 13:40:27 -06:00
..
build
…
combat
…
comms
…
config
…
dev
…
economy Record per-bay cargo purchase costs and use them as the profit baseline 2026-09-19 13:40:27 -06:00
entities
…
galaxy
…
mining
…
quests
…
reputation
…
research
…
save Record per-bay cargo purchase costs and use them as the profit baseline 2026-09-19 13:40:27 -06:00
scan
…
scenes Record per-bay cargo purchase costs and use them as the profit baseline 2026-09-19 13:40:27 -06:00
ship Record per-bay cargo purchase costs and use them as the profit baseline 2026-09-19 13:40:27 -06:00
tether
…
ui Record per-bay cargo purchase costs and use them as the profit baseline 2026-09-19 13:40:27 -06:00
utils
…
vendor
…
vignettes
…
visuals
…
main.js
…