orbit/js
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
..
build
…
combat Add XP rewards for sidequest patrols and cargo sale profit 2026-09-19 20:44:48 -06:00
comms
…
config
…
dev
…
economy Add XP rewards for sidequest patrols and cargo sale profit 2026-09-19 20:44:48 -06:00
entities Color route marks by destination kind 2026-09-19 12:38:56 -06:00
galaxy
…
mining
…
quests Add XP rewards for sidequest patrols and cargo sale profit 2026-09-19 20:44:48 -06:00
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 Add XP rewards for sidequest patrols and cargo sale profit 2026-09-19 20:44:48 -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 Add XP rewards for sidequest patrols and cargo sale profit 2026-09-19 20:44:48 -06:00
utils
…
vendor
…
vignettes
…
visuals
…
main.js
…