Rename all "liquid" mentions to "fluid"

This commit is contained in:
2026-10-25 13:54:53 -03:00
parent bcca8fa4a5
commit 0cfa4d9b4a
58 changed files with 547 additions and 548 deletions
+3 -3
View File
@@ -131,7 +131,7 @@ function base_categories(tags: TagApi): RecipeCategory[] {
}`,
`Biomes: ${fish.biomes?.map(biome_name).join(", ") ?? "all"}`,
`Time: ${fish.time ? `${clock(fish.time.from)} to ${clock(fish.time.to)}` : "all day"}`,
`In: ${biome_name(fish.liquid ?? "bworld:water")}`,
`In: ${biome_name(fish.fluid ?? "bworld:water")}`,
];
lines.forEach((line, i) => layout.text(line, 24, 1 + i * 13));
},
@@ -169,7 +169,7 @@ interface FishParams {
seasons?: string[];
biomes?: string[];
time?: { from: number; to: number };
liquid?: string;
fluid?: string;
}
export function fishing_recipes(ctx: ClientContext): Recipe[] {
@@ -244,7 +244,7 @@ function title_case(name: string): string {
return name.split("_").map((word) => word[0].toUpperCase() + word.slice(1)).join(" ");
}
// a biome, liquid or #biome tag by its name: "bworld:swamp" is "Swamp", "#bworld:is_ocean" is "Ocean"
// a biome, fluid or #biome tag by its name: "bworld:swamp" is "Swamp", "#bworld:is_ocean" is "Ocean"
function biome_name(id: string): string {
return title_case(id.replace(/^#/, "").split(":")[1].replace(/^is_/, ""));
}