返回提交历史
Modified
src/services/missionInventoryUpdateService.ts
+6
-2
XFEstudio/SpaceNinjaServer
feat: bounty bonus standing (#2009)
Closes #2007 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2009 Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
1f3bb889
代码差异
1 个文件
+6
-2
@@ -1096,7 +1096,7 @@ export const addMissionRewards = async (
1096
1096
if (syndicateEntry.Tag === "EntratiSyndicate") {
1097
1097
const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
1098
1098
if (vault) currentJob = vault;
1099
let medallionAmount = currentJob.xpAmounts[rewardInfo.JobStage];
1099
let medallionAmount = Math.floor(currentJob.xpAmounts[rewardInfo.JobStage] / (rewardInfo.Q ? 0.8 : 1));
1100
1100
1101
1101
if (
1102
1102
["DeimosEndlessAreaDefenseBounty", "DeimosEndlessExcavateBounty", "DeimosEndlessPurifyBounty"].some(
@@ -1119,7 +1119,11 @@ export const addMissionRewards = async (
1119
1119
} else {
1120
1120
if (rewardInfo.JobTier! >= 0) {
1121
1121
AffiliationMods.push(
1122
addStanding(inventory, syndicateEntry.Tag, currentJob.xpAmounts[rewardInfo.JobStage])
1122
addStanding(
1123
inventory,
1124
syndicateEntry.Tag,
1125
Math.floor(currentJob.xpAmounts[rewardInfo.JobStage] / (rewardInfo.Q ? 0.8 : 1))
1126
)
1123
1127
);
1124
1128
} else {
1125
1129
if (jobType.endsWith("Heists/HeistProfitTakerBountyOne") && rewardInfo.JobStage === 2) {