feat(tuning): configure tuning for each game copy

This commit is contained in:
N0VAN0M4LY committed 2026-11-29 16:24:21 +08:00
1 parent 61255f5473
commit 893d60854f
15 files changed
+440 -9

No files matched your search

@@ -0,0 +1,24 @@
import { z } from 'zod';
export const AUTO_TARGET_PICKS = ['lowestRank', 'highestRank', 'treeOrder'] as const;
export const TuningValuesSchema = z.object({
rewardMultiplierSilverLions: z.number().min(0).max(100),
rewardMultiplierResearchPoints: z.number().min(0).max(100),
friendlyKillPenaltyMul: z.number().min(0).max(100),
maxPlayers: z.number().int().min(2).max(64),
smallTeamsMaxPlayers: z.number().int().min(2).max(64),
brSpreadMrank: z.number().int().min(0).max(12),
subModeChance: z.number().min(0).max(1),
tankBotRespawns: z.number().int().min(1).max(10),
airBotRespawns: z.number().int().min(1).max(10),
strikeUcavSpawnScore: z.number().int().min(1).max(10000),
silverLions: z.number().int().nonnegative(),
goldenEagles: z.number().int().min(0).max(0x7fffffff),
preferLineSuccessor: z.boolean(),
autoTargetPick: z.enum(AUTO_TARGET_PICKS),
});
export const TuningPatchSchema = TuningValuesSchema.partial();
export const TuningViewSchema = z.object({ defaults: TuningValuesSchema, effective: TuningValuesSchema });
export type TuningValues = z.output<typeof TuningValuesSchema>;
export type TuningPatch = z.output<typeof TuningPatchSchema>;
export type TuningView = z.output<typeof TuningViewSchema>;