Seasons api

This commit is contained in:
2026-10-08 13:42:18 -03:00
parent 7e7ac8f6f4
commit dd66d6caa7
16 changed files with 231 additions and 10 deletions
+5
View File
@@ -74,6 +74,11 @@ export function biome_ids(): string[] {
return EverythingRegistry.entries<Biome>("biomes").map(([id]) => id);
}
// a biome's season, spring for one that isn't registered, like a removed mod's
export function biome_season(id: string): Season {
return get_biome(id)?.season ?? DEFAULT_SEASON;
}
// the logs and leaves a kind of tree grows in a biome
export function tree_wood(kind: TreeKind, biome: Biome): Wood {
const wood = biome.trees?.wood[kind];