XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix: correct systemIndex for VoidStormVeilRewards and earn corrupted holokey from void storms (#4258)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4258 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: yhhkevin <235+yhhkevin@noreply.localhost> Co-committed-by: yhhkevin <235+yhhkevin@noreply.localhost>

b9259ec2
yhhkevin <235+yhhkevin@noreply.localhost>
提交于

代码差异

1 个文件 +14 -1
Modified src/services/missionInventoryUpdateService.ts +14 -1
@@ -2265,7 +2265,7 @@ async function getRandomMissionDrops(
2265 2265 5: "/Lotus/Types/Game/MissionDecks/RailjackMissionRewards/VoidStormSaturnRewards",
2266 2266 7: "/Lotus/Types/Game/MissionDecks/RailjackMissionRewards/VoidStormNeptuneRewards",
2267 2267 8: "/Lotus/Types/Game/MissionDecks/RailjackMissionRewards/VoidStormPlutoRewards",
2268 14: "/Lotus/Types/Game/MissionDecks/RailjackMissionRewards/VoidStormVeilRewards"
2268 20: "/Lotus/Types/Game/MissionDecks/RailjackMissionRewards/VoidStormVeilRewards"
2269 2269 };
2270 2270 if (region.systemIndex in systemIndexToVoidStormRewardTable) {
2271 2271 const reward = getRandomRewardByChance(
@@ -2275,6 +2275,19 @@ async function getRandomMissionDrops(
2275 2275 StoreItem: reward.type,
2276 2276 ItemCount: reward.itemCount
2277 2277 });
2278 if (version_compare(buildLabel, gameToBuildVersion["39.0.0"]) >= 0) {
2279 if (region.systemIndex == 20) {
2280 drops.push({
2281 StoreItem: "/Lotus/StoreItems/Types/Items/MiscItems/GranumBucks",
2282 ItemCount: 2
2283 });
2284 } else {
2285 drops.push({
2286 StoreItem: "/Lotus/StoreItems/Types/Items/MiscItems/GranumBucks",
2287 ItemCount: 1
2288 });
2289 }
2290 }
2278 2291 }
2279 2292 }
2280 2293