From cced89ecbe80123ad8f9776f663fe34e8f681c2c Mon Sep 17 00:00:00 2001 From: nokoe Date: Sat, 13 Dec 2025 22:11:05 +0100 Subject: deprecate old crate format --- server/tools/src/map_linter.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'server/tools') diff --git a/server/tools/src/map_linter.rs b/server/tools/src/map_linter.rs index 9e99dadc..0f5e3364 100644 --- a/server/tools/src/map_linter.rs +++ b/server/tools/src/map_linter.rs @@ -69,11 +69,29 @@ static EXCLUSIVE: &[&str] = &[ "lettuce-crate", "cheese-crate", "mushroom-crate", + "noodles-crate", "potato-crate", "bun-crate", "trash", "deep-fryer", + "crate", ]; +static DEPRECATED_TILE: &[&str] = &[ + "steak-crate", + "coconut-crate", + "strawberry-crate", + "fish-crate", + "rice-crate", + "tomato-crate", + "flour-crate", + "leek-crate", + "lettuce-crate", + "cheese-crate", + "mushroom-crate", + "potato-crate", + "bun-crate", +]; + static COLLIDER: &[&str] = &[ "wall", "wall-window", @@ -166,6 +184,11 @@ pub fn check_map(map: &str) -> Result<()> { warnings.push(trm!("s.tool.map_linter.unknown_tile", t = tile)); continue; }; + + if DEPRECATED_TILE.contains(&tile_name) { + warnings.push(trm!("s.tool.map_linter.deprecated_tile", t = tile)); + } + match mode { Normal => { if data.tile_walkable.contains(&tile) { -- cgit v1.3