返回提交历史
Modified
config-vanilla.json
+2
-1
Modified
src/services/configService.ts
+2
-1
Modified
src/services/missionInventoryUpdateService.ts
+45
-0
XFEstudio/SpaceNinjaServer
fix: Drop 2 Extra End-Of-Mission Rewards in Railjack mission (#4379)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4379 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Reviewed-by: dutlist <5+ameloninsidelemon@noreply.localhost> Co-authored-by: yhhkevin <235+yhhkevin@noreply.localhost> Co-committed-by: yhhkevin <235+yhhkevin@noreply.localhost>
5e57dd1f
代码差异
3 个文件
+49
-2
@@ -131,7 +131,8 @@
131
131
"tutorialGivesStanceMods": null,
132
132
"twentythreeHourMasteryRankCooldown": true,
133
133
"doubleDailySynthesisEndoReward": true,
134
"tylRegorDropsTwoEquinoxParts": true
134
"tylRegorDropsTwoEquinoxParts": true,
135
"railjackExtraResourceBundlesReward": true
135
136
},
136
137
"inventoryDefaults": {},
137
138
"tunables": {
@@ -27,7 +27,8 @@ type TQolConfigKey =
27
27
| "tutorialGivesStanceMods"
28
28
| "twentythreeHourMasteryRankCooldown"
29
29
| "doubleDailySynthesisEndoReward"
30
| "tylRegorDropsTwoEquinoxParts";
30
| "tylRegorDropsTwoEquinoxParts"
31
| "railjackExtraResourceBundlesReward";
31
32
32
33
export interface IConfig {
33
34
/** @deprecated */ mongodbUrl?: string;
@@ -2,6 +2,7 @@ import type {
2
2
IMissionReward as IMissionRewardExternal,
3
3
IRegion,
4
4
IReward,
5
TMissionDeck,
5
6
TMissionType,
6
7
TRarity
7
8
} from "warframe-public-export-plus";
@@ -2287,6 +2288,50 @@ async function getRandomMissionDrops(
2287
2288
}
2288
2289
}
2289
2290
2291
//Railjack Extra End-Of-Mission Reward. Extra resource bundles rewarded on mission completion.
2292
if (
2293
region.missionType == "MT_RAILJACK" &&
2294
shouldDoServerQol("railjackExtraResourceBundlesReward", buildLabel, gameToBuildVersion["27.2.0"])
2295
) {
2296
if (
2297
![
2298
"CrewBattleNode557", //NemesisShowdownNodeGrineer
2299
"CrewBattleNode558", //NemesisShowdownNodeCorpus
2300
"CrewBattleNode559" //NemesisShowdownNodeInfested
2301
].includes(RewardInfo.node)
2302
) {
2303
let table: TMissionDeck | undefined;
2304
let droptimes = 0;
2305
if (region.faction == "FC_GRINEER") {
2306
table = getMissionDeck(
2307
"/Lotus/Types/Game/MissionDecks/RailjackMissionRewards/GrineerRailjackResourceRewards",
2308
buildLabel
2309
);
2310
droptimes = 2;
2311
}
2312
if (region.faction == "FC_CORPUS") {
2313
table = getMissionDeck(
2314
"/Lotus/Types/Game/MissionDecks/RailjackMissionRewards/CorpusRailjackResourceRewards",
2315
buildLabel
2316
);
2317
droptimes = 2;
2318
}
2319
if (["CrewBattleNode560", "CrewBattleNode561"].includes(RewardInfo.node)) {
2320
table = getMissionDeck(
2321
"/Lotus/Types/Game/MissionDecks/JadeShadowsConstellationsRewards/JS2ScoriasAngelRewardsExtra",
2322
buildLabel
2323
);
2324
droptimes = 1;
2325
}
2326
//Players receive two items on the list.
2327
for (let dropitem = 0; dropitem < droptimes; ++dropitem) {
2328
const drop = getRandomRewardByChance(table![0], rng);
2329
drops.push({ StoreItem: drop!.type, ItemCount: drop!.itemCount });
2330
table![0] = table![0].filter((item: IReward) => item.type !== drop!.type);
2331
}
2332
}
2333
}
2334
2290
2335
if (RewardInfo.voidStormTier) {
2291
2336
const systemIndexToVoidStormRewardTable: Record<number, string> = {
2292
2337
1: "/Lotus/Types/Game/MissionDecks/RailjackMissionRewards/VoidStormVenusRewards",