orbit/js/economy
Brian Fertig 658babe216 Add XP rewards for sidequest patrols and cargo sale profit
- Sidequest patrol contracts now pay an XP reward alongside credits, fixed at accept as the experience worth of defeated contacts (contacts × wave total × roster xp) and granted via XpManager with a 'sidequest' source tag on claim
- Cargo sales earn 1 XP per credit above each bay's recorded purchase cost; bays with no cost basis or sold at/below cost earn nothing, granted via the same pipe with a 'trade' source tag
- New CargoHold.costsFor() returns FIFO per-bay costs for the profit basis without mutating the hold
- Job board payout/claim lines and console toasts display both credits and XP when present; old saves without an xp field derive it from the encounters spec or fall back to 0
2026-09-19 20:44:48 -06:00
..
CargoHold.js Add XP rewards for sidequest patrols and cargo sale profit 2026-09-19 20:44:48 -06:00
Economy.js Add XP rewards for sidequest patrols and cargo sale profit 2026-09-19 20:44:48 -06:00
Stock.js
…
TradeScout.js
…