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: put vault medallion into correct place (#2723)

Re #2719 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2723 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

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

代码差异

1 个文件 +17 -10
Modified src/services/missionInventoryUpdateService.ts +17 -10
@@ -1481,7 +1481,7 @@ export const addMissionRewards = async (
1481 1481 if (vault) {
1482 1482 currentJob = vault;
1483 1483 if (jobType.endsWith("VaultBounty")) {
1484 currentJob.xpAmounts = [currentJob.xpAmounts.reduce((partialSum, a) => partialSum + a, 0)];
1484 currentJob.xpAmounts[rewardInfo.JobTier!] = currentJob.xpAmounts.reduce((s, a) => s + a, 0);
1485 1485 }
1486 1486 }
1487 1487 }
@@ -1498,15 +1498,22 @@ export const addMissionRewards = async (
1498 1498 medallionAmount = Math.floor(endlessJob.xpAmounts[index] * (1 + 0.15000001 * excess));
1499 1499 }
1500 1500 }
1501 await addItem(inventory, "/Lotus/Types/Items/Deimos/EntratiFragmentUncommonB", medallionAmount);
1502 MissionRewards.push({
1503 StoreItem: "/Lotus/StoreItems/Types/Items/Deimos/EntratiFragmentUncommonB",
1504 ItemCount: medallionAmount
1505 });
1506 SyndicateXPItemReward = medallionAmount;
1507 logger.debug(
1508 `Giving ${medallionAmount} medallions for the ${rewardInfo.JobStage} stage of the ${rewardInfo.JobTier} tier bounty`
1509 );
1501 if (typeof medallionAmount === "number" && !isNaN(medallionAmount)) {
1502 await addItem(inventory, "/Lotus/Types/Items/Deimos/EntratiFragmentUncommonB", medallionAmount);
1503 MissionRewards.push({
1504 StoreItem: "/Lotus/StoreItems/Types/Items/Deimos/EntratiFragmentUncommonB",
1505 ItemCount: medallionAmount
1506 });
1507 SyndicateXPItemReward = medallionAmount;
1508 logger.debug(
1509 `Giving ${medallionAmount} medallions for the ${rewardInfo.JobStage} stage of the ${rewardInfo.JobTier} tier bounty`
1510 );
1511 } else {
1512 logger.warning(
1513 `${jobType} tried to give ${medallionAmount} medallions for the ${rewardInfo.JobStage} stage of the ${rewardInfo.JobTier} tier bounty`
1514 );
1515 logger.warning(`currentJob`, { currentJob: currentJob });
1516 }
1510 1517 } else {
1511 1518 const specialCase = [
1512 1519 { endings: ["Heists/HeistProfitTakerBountyOne"], stage: 2, amount: 1000 },