chore: improve handling of RJ interstitial missionInventoryUpdate #2600

Merged
Sainan merged 2 commits from rj-interstitial into main 2025-08-09 03:38:11 -07:00
2 changed files with 8 additions and 1 deletions

View File

@ -98,8 +98,14 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
const inventoryResponse = await getInventoryResponse(inventory, true, account.BuildLabel); const inventoryResponse = await getInventoryResponse(inventory, true, account.BuildLabel);
//TODO: figure out when to send inventory. it is needed for many cases. //TODO: figure out when to send inventory. it is needed for many cases.
if (missionReport.RJ) {
logger.debug(`railjack interstitial request, sending only deltas`, {
InventoryChanges: inventoryChanges,
AffiliationMods
});
}
res.json({ res.json({
InventoryJson: JSON.stringify(inventoryResponse), InventoryJson: missionReport.RJ ? undefined : JSON.stringify(inventoryResponse),
InventoryChanges: inventoryChanges, InventoryChanges: inventoryChanges,
MissionRewards, MissionRewards,
...credits, ...credits,

View File

@ -148,6 +148,7 @@ export type IMissionInventoryUpdateRequest = {
MultiProgress: unknown[]; MultiProgress: unknown[];
}[]; }[];
InvasionProgress?: IInvasionProgressClient[]; InvasionProgress?: IInvasionProgressClient[];
RJ?: boolean;
ConquestMissionsCompleted?: number; ConquestMissionsCompleted?: number;
duviriSuitSelection?: string; duviriSuitSelection?: string;
duviriPistolSelection?: string; duviriPistolSelection?: string;