increase scope of interstitial requests to send delta only more often
This commit is contained in:
parent
d4c7d2f8bc
commit
be8baf0f9b
@ -111,8 +111,16 @@ export const missionInventoryUpdateController: RequestHandler = async (req, res)
|
|||||||
AffiliationMods,
|
AffiliationMods,
|
||||||
ConquestCompletedMissionsCount
|
ConquestCompletedMissionsCount
|
||||||
};
|
};
|
||||||
if (missionReport.RJ) {
|
if (
|
||||||
logger.debug(`railjack interstitial request, sending only deltas`, deltas);
|
missionReport.BMI ||
|
||||||
|
missionReport.TNT ||
|
||||||
|
missionReport.SSC ||
|
||||||
|
missionReport.RJ ||
|
||||||
|
missionReport.SS ||
|
||||||
|
missionReport.CMI ||
|
||||||
|
missionReport.EJC
|
||||||
|
) {
|
||||||
|
logger.debug(`interstitial request, sending only deltas`, deltas);
|
||||||
res.json(deltas);
|
res.json(deltas);
|
||||||
} else if (missionReport.RewardInfo) {
|
} else if (missionReport.RewardInfo) {
|
||||||
logger.debug(`classic mission completion, sending everything`);
|
logger.debug(`classic mission completion, sending everything`);
|
||||||
|
|||||||
@ -45,6 +45,15 @@ export type IMissionInventoryUpdateRequest = {
|
|||||||
EmailItems?: ITypeCount[];
|
EmailItems?: ITypeCount[];
|
||||||
ShipDecorations?: ITypeCount[];
|
ShipDecorations?: ITypeCount[];
|
||||||
|
|
||||||
|
// flags for interstitial requests
|
||||||
|
BMI?: boolean;
|
||||||
|
TNT?: boolean;
|
||||||
|
SSC?: boolean;
|
||||||
|
RJ?: boolean;
|
||||||
|
SS?: boolean;
|
||||||
|
CMI?: boolean;
|
||||||
|
EJC?: boolean;
|
||||||
|
|
||||||
SyndicateId?: string;
|
SyndicateId?: string;
|
||||||
SortieId?: string;
|
SortieId?: string;
|
||||||
CalendarProgress?: { challenge: string }[];
|
CalendarProgress?: { challenge: string }[];
|
||||||
@ -149,7 +158,6 @@ 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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user