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

XFESpaceNinjaServer

A simple server for a small space ninja game

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

XFEstudio/XFESpaceNinjaServer

fix: deimos vault bounty detection (#2207)

Related to #388 this should fix incorect rewards for deimos filed bounties Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2207 Reviewed-by: Sainan <sainan@calamity.inc> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

c6c7a296
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

1 个文件 +8 -4
Modified src/services/missionInventoryUpdateService.ts +8 -4
@@ -1204,8 +1204,10 @@ export const addMissionRewards = async (
1204 1204 if (syndicateEntry && syndicateEntry.Jobs) {
1205 1205 let currentJob = syndicateEntry.Jobs[rewardInfo.JobTier!];
1206 1206 if (syndicateEntry.Tag === "EntratiSyndicate") {
1207 const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
1208 if (vault) currentJob = vault;
1207 if (jobType.endsWith("VaultBounty")) {
1208 const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
1209 if (vault) currentJob = vault;
1210 }
1209 1211 let medallionAmount = Math.floor(currentJob.xpAmounts[rewardInfo.JobStage] / (rewardInfo.Q ? 0.8 : 1));
1210 1212
1211 1213 if (
@@ -1552,8 +1554,10 @@ function getRandomMissionDrops(
1552 1554 let job = syndicateEntry.Jobs[RewardInfo.JobTier!];
1553 1555
1554 1556 if (syndicateEntry.Tag === "EntratiSyndicate") {
1555 const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
1556 if (vault && locationTag) job = vault;
1557 if (jobType.endsWith("VaultBounty")) {
1558 const vault = syndicateEntry.Jobs.find(j => j.locationTag === locationTag);
1559 if (vault) job = vault;
1560 }
1557 1561 // if (
1558 1562 // [
1559 1563 // "DeimosRuinsExterminateBounty",