chore: update PE+ (#1546)
All checks were successful
Build Docker image / docker (push) Successful in 51s
Build / build (push) Successful in 1m23s

and make use of some of the new data

Reviewed-on: #1546
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:
Sainan 2025-04-10 12:40:57 -07:00 committed by Sainan
parent e784b2dfb8
commit 3f47f89b56
5 changed files with 21 additions and 65 deletions

8
package-lock.json generated
View File

@ -18,7 +18,7 @@
"morgan": "^1.10.0", "morgan": "^1.10.0",
"ncp": "^2.0.0", "ncp": "^2.0.0",
"typescript": ">=5.5 <5.6.0", "typescript": ">=5.5 <5.6.0",
"warframe-public-export-plus": "^0.5.52", "warframe-public-export-plus": "^0.5.53",
"warframe-riven-info": "^0.1.2", "warframe-riven-info": "^0.1.2",
"winston": "^3.17.0", "winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0" "winston-daily-rotate-file": "^5.0.0"
@ -3789,9 +3789,9 @@
} }
}, },
"node_modules/warframe-public-export-plus": { "node_modules/warframe-public-export-plus": {
"version": "0.5.52", "version": "0.5.53",
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.52.tgz", "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.53.tgz",
"integrity": "sha512-mJyQbTFMDwgBSkhUYJzcfJg9qrMTrL1pyZuAxV/Dov68xUikK5zigQSYM3ZkKYbhwBtg0Bx/+7q9GAmPzGaRhA==" "integrity": "sha512-FjYeCJ5OxvPWyETnV33YOeX7weVVeMy451RY7uewwSvRbSNFTDhmhvbrLhfwykulUX4RPakfZr8nO0S0a6lGCA=="
}, },
"node_modules/warframe-riven-info": { "node_modules/warframe-riven-info": {
"version": "0.1.2", "version": "0.1.2",

View File

@ -25,7 +25,7 @@
"morgan": "^1.10.0", "morgan": "^1.10.0",
"ncp": "^2.0.0", "ncp": "^2.0.0",
"typescript": ">=5.5 <5.6.0", "typescript": ">=5.5 <5.6.0",
"warframe-public-export-plus": "^0.5.52", "warframe-public-export-plus": "^0.5.53",
"warframe-riven-info": "^0.1.2", "warframe-riven-info": "^0.1.2",
"winston": "^3.17.0", "winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0" "winston-daily-rotate-file": "^5.0.0"

View File

@ -9,11 +9,10 @@ import { IMongoDate, IOid } from "@/src/types/commonTypes";
import { unixTimesInMs } from "@/src/constants/timeConstants"; import { unixTimesInMs } from "@/src/constants/timeConstants";
import { config } from "@/src/services/configService"; import { config } from "@/src/services/configService";
import { CRng } from "@/src/services/rngService"; import { CRng } from "@/src/services/rngService";
import { ExportNightwave, ExportRegions } from "warframe-public-export-plus"; import { eMissionType, ExportNightwave, ExportRegions } from "warframe-public-export-plus";
import { import {
EPOCH, EPOCH,
getSortieTime, getSortieTime,
missionTags,
sortieBosses, sortieBosses,
sortieBossNode, sortieBossNode,
sortieBossToFaction, sortieBossToFaction,
@ -269,7 +268,7 @@ export const worldStateController: RequestHandler = (req, res) => {
} }
} }
const missionType = missionTags[missionIndex]; const missionType = eMissionType[missionIndex].tag;
if (missionTypes.has(missionType)) { if (missionTypes.has(missionType)) {
i--; i--;

View File

@ -1,49 +1,3 @@
export const missionTags = [
"MT_ASSASSINATION",
"MT_EXTERMINATION",
"MT_SURVIVAL",
"MT_RESCUE",
"MT_SABOTAGE",
"MT_CAPTURE",
"MT_COUNTER_INTEL",
"MT_INTEL",
"MT_DEFENSE",
"MT_MOBILE_DEFENSE",
"MT_PVP",
"MT_MASTERY",
"MT_RECOVERY",
"MT_TERRITORY",
"MT_RETRIEVAL",
"MT_HIVE",
"MT_SALVAGE",
"MT_EXCAVATE",
"MT_RAID",
"MT_PURGE",
"MT_GENERIC",
"MT_PURIFY",
"MT_ARENA",
"MT_JUNCTION",
"MT_PURSUIT",
"MT_RACE",
"MT_ASSAULT",
"MT_EVACUATION",
"MT_LANDSCAPE",
"MT_RESOURCE_THEFT",
"MT_ENDLESS_EXTERMINATION",
"MT_ENDLESS_DUVIRI",
"MT_RAILJACK",
"MT_ARTIFACT",
"MT_CORRUPTION",
"MT_VOID_CASCADE",
"MT_ARMAGEDDON",
"MT_VAULTS",
"MT_ALCHEMY",
"MT_ASCENSION",
"MT_ENDLESS_CAPTURE",
"MT_OFFERING",
"MT_PVPVE"
];
export const sortieBosses = [ export const sortieBosses = [
"SORTIE_BOSS_HYENA", "SORTIE_BOSS_HYENA",
"SORTIE_BOSS_KELA", "SORTIE_BOSS_KELA",

View File

@ -619,16 +619,12 @@ export const addMissionRewards = async (
if (strippedItems) { if (strippedItems) {
for (const si of strippedItems) { for (const si of strippedItems) {
const droptable = ExportEnemies.droptables[si.DropTable]; const droptables = ExportEnemies.droptables[si.DropTable] ?? [];
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!droptable) {
logger.error(`unknown droptable ${si.DropTable}`);
} else {
const modsPool = droptable[0].items;
const blueprintsPool = (droptable.length > 1 ? droptable[1] : droptable[0]).items;
if (si.DROP_MOD) { if (si.DROP_MOD) {
const modDroptable = droptables.find(x => x.type == "mod");
if (modDroptable) {
for (let i = 0; i != si.DROP_MOD.length; ++i) { for (let i = 0; i != si.DROP_MOD.length; ++i) {
const reward = getRandomReward(modsPool)!; const reward = getRandomReward(modDroptable.items)!;
logger.debug(`stripped droptable (mods pool) rolled`, reward); logger.debug(`stripped droptable (mods pool) rolled`, reward);
await addItem(inventory, reward.type); await addItem(inventory, reward.type);
MissionRewards.push({ MissionRewards.push({
@ -637,10 +633,15 @@ export const addMissionRewards = async (
FromEnemyCache: true // to show "identified" FromEnemyCache: true // to show "identified"
}); });
} }
} else {
logger.error(`unknown droptable ${si.DropTable} for DROP_MOD`);
}
} }
if (si.DROP_BLUEPRINT) { if (si.DROP_BLUEPRINT) {
const blueprintDroptable = droptables.find(x => x.type == "blueprint");
if (blueprintDroptable) {
for (let i = 0; i != si.DROP_BLUEPRINT.length; ++i) { for (let i = 0; i != si.DROP_BLUEPRINT.length; ++i) {
const reward = getRandomReward(blueprintsPool)!; const reward = getRandomReward(blueprintDroptable.items)!;
logger.debug(`stripped droptable (blueprints pool) rolled`, reward); logger.debug(`stripped droptable (blueprints pool) rolled`, reward);
await addItem(inventory, reward.type); await addItem(inventory, reward.type);
MissionRewards.push({ MissionRewards.push({
@ -649,6 +650,8 @@ export const addMissionRewards = async (
FromEnemyCache: true // to show "identified" FromEnemyCache: true // to show "identified"
}); });
} }
} else {
logger.error(`unknown droptable ${si.DropTable} for DROP_BLUEPRINT`);
} }
} }
} }