feat(mods): add battle.onFilterMissions hook and per-template bundled seeding

This commit is contained in:
N0VAN0M4LY committed 2026-12-03 02:40:38 +08:00
1 parent 8636d0b71d
commit 5983e3f3e2
6 files changed
+127 -20

No files matched your search

+9 -1
View File
@@ -179,7 +179,15 @@ export async function startServer(options: ServerOptions): Promise<RunningServer
matching?.notifyUser(userId, eventName, payload);
};
const battleSessions = new BattleSessionStore(tuning.limits.battleSessionsKept);
const battleMatchmaker = new BattleMatchmaker(gameModes, vehicles, battleSessions, tuning.battle, spawnRules, botAircraftLoadouts);
const battleMatchmaker = new BattleMatchmaker(
gameModes,
vehicles,
battleSessions,
tuning.battle,
spawnRules,
botAircraftLoadouts,
(ctx) => modRuntime.runBattleFilterMissions(ctx),
);
const economy = new BattleEconomy(
economyData,
tuning.battleEconomy,