Fluid registry

This commit is contained in:
2026-10-25 14:05:57 -03:00
parent 0cfa4d9b4a
commit 17d83acfc8
18 changed files with 144 additions and 17 deletions
+1 -3
View File
@@ -5,7 +5,7 @@
// gets is the generator's biome rules (worldgen/biome_source), these say what a biome looks like once it's picked
import * as z from "zod";
import { EverythingRegistry } from "../everything_registry.ts";
import { find_problems, id, type Problems } from "../schema.ts";
import { color, find_problems, id, type Problems } from "../schema.ts";
import { farming_day } from "../time.ts";
export const SEASONS = ["spring", "summer", "autumn", "winter"] as const;
@@ -27,8 +27,6 @@ const surface_schema = z.object({
export type SurfaceJson = z.infer<typeof surface_schema>;
const color = z.string('must be a color like "#79c05a"').regex(/^#[0-9a-fA-F]{6}$/);
const biome_schema = z.object({
id,
// a season it's always in, like winter for snowy biomes. when not set it follows the calendar, see calendar_season