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 require railjack missions & hubs for steel path trophy (#4051)

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

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

代码差异

1 个文件 +6 -2
Modified src/services/inventoryService.ts +6 -2
@@ -43,7 +43,7 @@ import {
43 43 U5Modules
44 44 } from "./itemDataService.ts";
45 45 import type { IFlavourItem, IItemConfig, IItemConfigDatabase } from "../types/inventoryTypes/commonInventoryTypes.ts";
46 import type { IDefaultUpgrade, IPowersuit, ISentinel, TStandingLimitBin } from "warframe-public-export-plus";
46 import type { IDefaultUpgrade, IPowersuit, IRegion, ISentinel, TStandingLimitBin } from "warframe-public-export-plus";
47 47 import {
48 48 ExportArcanes,
49 49 ExportBoosters,
@@ -3289,6 +3289,10 @@ const steelPathSystems: [number, string][] = [
3289 3289 [24, "Perita"]
3290 3290 ];
3291 3291
3292 const isRequiredForSteelPathTrophy = (region: IRegion): boolean => {
3293 return region.missionType != "MT_RAILJACK" && region.missionType != "MT_PVP";
3294 };
3295
3292 3296 export const ensureUserHasSteelPathRewards = async (
3293 3297 inventory: TInventoryDatabaseDocument,
3294 3298 silent?: true
@@ -3302,7 +3306,7 @@ export const ensureUserHasSteelPathRewards = async (
3302 3306
3303 3307 const eligibleSystems = new Set<number>(steelPathSystems.map(x => x[0]));
3304 3308 for (const [tag, region] of Object.entries(ExportRegions)) {
3305 if (!completedNodes.has(tag)) {
3309 if (!completedNodes.has(tag) && isRequiredForSteelPathTrophy(region)) {
3306 3310 eligibleSystems.delete(region.systemIndex);
3307 3311 }
3308 3312 }