hm
This commit is contained in:
parent
7455d630fc
commit
4d3fc2cd47
84 changed files with 3429 additions and 3480 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue