Configure tuning for each game copy
This commit is contained in:
1 parent
3e08e9314e
commit
6068d5bc65
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>;
|
||||
Reference in new issue
Block a user