返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+7
-0
Modified
src/types/requestTypes.ts
+9
-0
XFEstudio/XFESpaceNinjaServer
fix: refresh duviri seed after non-quit completion of a duviri game mode (#1834)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1834 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
6f64690b
代码差异
2 个文件
+16
-0
@@ -570,6 +570,13 @@ export const addMissionInventoryUpdates = async (
570
570
}
571
571
break;
572
572
}
573
case "duviriCaveOffers": {
574
// Duviri cave offers (generated with the duviri seed) change after completing one of its game modes (not when aborting).
575
if (inventoryUpdates.MissionStatus != "GS_QUIT") {
576
inventory.DuviriInfo.Seed = generateRewardSeed();
577
}
578
break;
579
}
573
580
default:
574
581
// Equipment XP updates
575
582
if (equipmentKeys.includes(key as TEquipmentKey)) {
@@ -127,6 +127,15 @@ export type IMissionInventoryUpdateRequest = {
127
127
creditsFee?: number; // the index
128
128
InvasionProgress?: IInvasionProgressClient[];
129
129
ConquestMissionsCompleted?: number;
130
duviriSuitSelection?: string;
131
duviriPistolSelection?: string;
132
duviriLongGunSelection?: string;
133
duviriMeleeSelection?: string;
134
duviriCaveOffers?: {
135
Seed: number | bigint;
136
Warframes: string[];
137
Weapons: string[];
138
};
130
139
} & {
131
140
[K in TEquipmentKey]?: IEquipmentClient[];
132
141
};