Fluid registry
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user