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: don't give assassination blueprint reward for archon hunt (#2031)

Closes #2025 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2031 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

ab32728c
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +7 -11
Modified src/services/missionInventoryUpdateService.ts +7 -11
@@ -1372,20 +1372,16 @@ function getRandomMissionDrops(
1372 1372 // TODO: Check that the invasion faction is indeed FC_INFESTATION once the Invasions in worldState are more dynamic
1373 1373 rewardManifests = ["/Lotus/Types/Game/MissionDecks/BossMissionRewards/NyxRewards"];
1374 1374 } else if (RewardInfo.sortieId) {
1375 // Sortie mission types differ from the underlying node and hence also don't give rewards from the underlying nodes. Assassinations are an exception to this.
1375 // Sortie mission types differ from the underlying node and hence also don't give rewards from the underlying nodes.
1376 // Assassinations in non-lite sorties are an exception to this.
1376 1377 if (region.missionIndex == 0) {
1377 1378 const arr = RewardInfo.sortieId.split("_");
1378 let sortieId = arr[1];
1379 if (sortieId == "Lite") {
1380 sortieId = arr[2];
1381 }
1382 const sortie = getSortie(idToDay(sortieId));
1383 const mission = sortie.Variants.find(x => x.node == arr[0])!;
1384 if (mission.missionType == "MT_ASSASSINATION") {
1385 rewardManifests = region.rewardManifests;
1386 } else {
1387 rewardManifests = [];
1379 let giveNodeReward = false;
1380 if (arr[1] != "Lite") {
1381 const sortie = getSortie(idToDay(arr[1]));
1382 giveNodeReward = sortie.Variants.find(x => x.node == arr[0])!.missionType == "MT_ASSASSINATION";
1388 1383 }
1384 rewardManifests = giveNodeReward ? region.rewardManifests : [];
1389 1385 } else {
1390 1386 rewardManifests = [];
1391 1387 }