chore: handle LasrianTankSteelPathDropTable for DROP_MOD (#2057)
Closes #2056 Reviewed-on: #2057 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:
parent
4c5ac4f03a
commit
6de81c2b41
@ -825,6 +825,13 @@ const hexConquestRewards: IConquestReward[] = [
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const droptableAliases: Record<string, string> = {
|
||||||
|
"/Lotus/Types/DropTables/ManInTheWall/MITWGruzzlingArcanesDropTable":
|
||||||
|
"/Lotus/Types/DropTables/EntratiLabDropTables/DoppelgangerDropTable",
|
||||||
|
"/Lotus/Types/DropTables/WF1999DropTables/LasrianTankSteelPathDropTable":
|
||||||
|
"/Lotus/Types/DropTables/WF1999DropTables/LasrianTankHardModeDropTable"
|
||||||
|
};
|
||||||
|
|
||||||
//TODO: return type of partial missioninventoryupdate response
|
//TODO: return type of partial missioninventoryupdate response
|
||||||
export const addMissionRewards = async (
|
export const addMissionRewards = async (
|
||||||
inventory: TInventoryDatabaseDocument,
|
inventory: TInventoryDatabaseDocument,
|
||||||
@ -1033,11 +1040,9 @@ export const addMissionRewards = async (
|
|||||||
|
|
||||||
if (strippedItems) {
|
if (strippedItems) {
|
||||||
for (const si of strippedItems) {
|
for (const si of strippedItems) {
|
||||||
if (si.DropTable == "/Lotus/Types/DropTables/ManInTheWall/MITWGruzzlingArcanesDropTable") {
|
if (si.DropTable in droptableAliases) {
|
||||||
logger.debug(
|
logger.debug(`rewriting ${si.DropTable} to ${droptableAliases[si.DropTable]}`);
|
||||||
`rewriting ${si.DropTable} to /Lotus/Types/DropTables/EntratiLabDropTables/DoppelgangerDropTable`
|
si.DropTable = droptableAliases[si.DropTable];
|
||||||
);
|
|
||||||
si.DropTable = "/Lotus/Types/DropTables/EntratiLabDropTables/DoppelgangerDropTable";
|
|
||||||
}
|
}
|
||||||
const droptables = ExportEnemies.droptables[si.DropTable] ?? [];
|
const droptables = ExportEnemies.droptables[si.DropTable] ?? [];
|
||||||
if (si.DROP_MOD) {
|
if (si.DROP_MOD) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user