orbit/js/combat
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
..
Bullet.js
…
CamShake.js
…
Combat.js
…
CombatHud.js
…
CombatScene.js
…
CombatSfx.js
…
CombatSystem.js
…
EnemyShip.js
…
EnemyTypes.js
…
Fx.js
…
StarDrift.js
…
Waves.js
…
XpManager.js Add XP rewards for sidequest patrols and cargo sale profit 2026-09-19 20:44:48 -06:00
main.js
…