orbit/js/ui
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
..
shop Record per-bay cargo purchase costs and use them as the profit baseline 2026-09-19 13:40:27 -06:00
ActionBar.js
…
BuildWindow.js
…
CombatBar.js
…
CommsBox.js
…
CommsPanel.js
…
ConfirmOverlay.js
…
CreditsHud.js
…
CyberShape.js
…
DiscoveryCompass.js Color route marks by destination kind 2026-09-19 12:38:56 -06:00
ExploreBar.js
…
GalaxyView.js
…
GlitchText.js
…
JobBoardWindow.js Fix Job Board text display and wrapping 2026-09-18 12:26:03 -06:00
MapWindow.js
…
MenuButton.js
…
MenuSubBar.js
…
MineralHud.js Fix MineralHud capacity restore snapping the fill back to stale fraction 2026-09-19 09:53:46 -06:00
MiningPopup.js
…
PerimeterShimmer.js
…
QuestTrackerHud.js Raise claim-reward plate depth above HUD overlays 2026-09-19 10:25:58 -06:00
QuestWindow.js
…
ResearchWindow.js
…
SavePanel.js
…
ShimmerCue.js
…
ShipWindow.js Record per-bay cargo purchase costs and use them as the profit baseline 2026-09-19 13:40:27 -06:00
SignalCompass.js
…
SlotCard.js
…
Toast.js
…
VignetteWindow.js
…