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

chore: handle LasrianTankSteelPathDropTable for DROP_MOD (#2057)

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

6de81c2b
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +10 -5
Modified src/services/missionInventoryUpdateService.ts +10 -5
@@ -825,6 +825,13 @@ const hexConquestRewards: IConquestReward[] = [
825 825 }
826 826 ];
827 827
828 const droptableAliases: Record<string, string> = {
829 "/Lotus/Types/DropTables/ManInTheWall/MITWGruzzlingArcanesDropTable":
830 "/Lotus/Types/DropTables/EntratiLabDropTables/DoppelgangerDropTable",
831 "/Lotus/Types/DropTables/WF1999DropTables/LasrianTankSteelPathDropTable":
832 "/Lotus/Types/DropTables/WF1999DropTables/LasrianTankHardModeDropTable"
833 };
834
828 835 //TODO: return type of partial missioninventoryupdate response
829 836 export const addMissionRewards = async (
830 837 inventory: TInventoryDatabaseDocument,
@@ -1033,11 +1040,9 @@ export const addMissionRewards = async (
1033 1040
1034 1041 if (strippedItems) {
1035 1042 for (const si of strippedItems) {
1036 if (si.DropTable == "/Lotus/Types/DropTables/ManInTheWall/MITWGruzzlingArcanesDropTable") {
1037 logger.debug(
1038 `rewriting ${si.DropTable} to /Lotus/Types/DropTables/EntratiLabDropTables/DoppelgangerDropTable`
1039 );
1040 si.DropTable = "/Lotus/Types/DropTables/EntratiLabDropTables/DoppelgangerDropTable";
1043 if (si.DropTable in droptableAliases) {
1044 logger.debug(`rewriting ${si.DropTable} to ${droptableAliases[si.DropTable]}`);
1045 si.DropTable = droptableAliases[si.DropTable];
1041 1046 }
1042 1047 const droptables = ExportEnemies.droptables[si.DropTable] ?? [];
1043 1048 if (si.DROP_MOD) {