Seasons api
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user