diff options
Diffstat (limited to 'server/tools')
| -rw-r--r-- | server/tools/src/map_linter.rs | 23 |
1 files changed, 23 insertions, 0 deletions
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) { |