refactor: tighten backend and logic boundaries

This commit is contained in:
2026-08-15 06:46:52 +00:00
parent 7b02ff155f
commit 35d8824b95
86 changed files with 820 additions and 1872 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { z } from 'zod';
export const MapCityStatsSchema = z.object({
const MapCityStatsSchema = z.object({
population: z.number(),
agriculture: z.number(),
commerce: z.number(),
@@ -9,7 +9,7 @@ export const MapCityStatsSchema = z.object({
wall: z.number(),
});
export const MapCityDefinitionSchema = z.object({
const MapCityDefinitionSchema = z.object({
id: z.number(),
name: z.string(),
level: z.number(),
@@ -24,7 +24,7 @@ export const MapCityDefinitionSchema = z.object({
meta: z.record(z.string(), z.unknown()).optional(),
});
export const MapDefaultsSchema = z
const MapDefaultsSchema = z
.object({
trust: z.number(),
trade: z.number(),