This commit is contained in:
33333-33333 2026-07-01 14:41:05 +09:00
commit 4d3fc2cd47
84 changed files with 3429 additions and 3480 deletions

View file

@ -32,10 +32,9 @@ function applyFieldLayout(fieldType = world.fieldType || "garden") {
resizeCanvas();
}
const RESET_PRESET_IDS = new Set(["empty", "default", "athletic", "crowded", "family", "war", "happy"]);
function normalizeResetPresetId(presetId = "default") {
return RESET_PRESET_IDS.has(String(presetId || "")) ? String(presetId) : "default";
if (window.TarinaiResetPresets?.normalize) return window.TarinaiResetPresets.normalize(presetId);
return new Set(["empty", "default", "athletic", "crowded", "family", "war", "happy"]).has(String(presetId || "")) ? String(presetId) : "default";
}
function syncFieldDialogChoices() {