forked from OpenWF/SpaceNinjaServer
fix: don't give assassination blueprint reward for archon hunt (#2031)
Closes #2025 Reviewed-on: OpenWF/SpaceNinjaServer#2031 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
parent
3fc2dccf81
commit
ab32728c47
@ -1372,20 +1372,16 @@ function getRandomMissionDrops(
|
||||
// TODO: Check that the invasion faction is indeed FC_INFESTATION once the Invasions in worldState are more dynamic
|
||||
rewardManifests = ["/Lotus/Types/Game/MissionDecks/BossMissionRewards/NyxRewards"];
|
||||
} else if (RewardInfo.sortieId) {
|
||||
// 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.
|
||||
// Sortie mission types differ from the underlying node and hence also don't give rewards from the underlying nodes.
|
||||
// Assassinations in non-lite sorties are an exception to this.
|
||||
if (region.missionIndex == 0) {
|
||||
const arr = RewardInfo.sortieId.split("_");
|
||||
let sortieId = arr[1];
|
||||
if (sortieId == "Lite") {
|
||||
sortieId = arr[2];
|
||||
}
|
||||
const sortie = getSortie(idToDay(sortieId));
|
||||
const mission = sortie.Variants.find(x => x.node == arr[0])!;
|
||||
if (mission.missionType == "MT_ASSASSINATION") {
|
||||
rewardManifests = region.rewardManifests;
|
||||
} else {
|
||||
rewardManifests = [];
|
||||
let giveNodeReward = false;
|
||||
if (arr[1] != "Lite") {
|
||||
const sortie = getSortie(idToDay(arr[1]));
|
||||
giveNodeReward = sortie.Variants.find(x => x.node == arr[0])!.missionType == "MT_ASSASSINATION";
|
||||
}
|
||||
rewardManifests = giveNodeReward ? region.rewardManifests : [];
|
||||
} else {
|
||||
rewardManifests = [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user