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,
|
||||
ConquestCompletedMissionsCount
|
||||
};
|
||||
if (missionReport.RJ) {
|
||||
logger.debug(`railjack interstitial request, sending only deltas`, deltas);
|
||||
if (
|
||||
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);
|
||||
} else if (missionReport.RewardInfo) {
|
||||
logger.debug(`classic mission completion, sending everything`);
|
||||
|
||||
@ -45,6 +45,15 @@ export type IMissionInventoryUpdateRequest = {
|
||||
EmailItems?: ITypeCount[];
|
||||
ShipDecorations?: ITypeCount[];
|
||||
|
||||
// flags for interstitial requests
|
||||
BMI?: boolean;
|
||||
TNT?: boolean;
|
||||
SSC?: boolean;
|
||||
RJ?: boolean;
|
||||
SS?: boolean;
|
||||
CMI?: boolean;
|
||||
EJC?: boolean;
|
||||
|
||||
SyndicateId?: string;
|
||||
SortieId?: string;
|
||||
CalendarProgress?: { challenge: string }[];
|
||||
@ -149,7 +158,6 @@ export type IMissionInventoryUpdateRequest = {
|
||||
MultiProgress: unknown[];
|
||||
}[];
|
||||
InvasionProgress?: IInvasionProgressClient[];
|
||||
RJ?: boolean;
|
||||
ConquestMissionsCompleted?: number;
|
||||
duviriSuitSelection?: string;
|
||||
duviriPistolSelection?: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user