aboutsummaryrefslogtreecommitdiff
path: root/server/tools
diff options
context:
space:
mode:
authornokoe <nokoe@mailbox.org>2025-12-13 22:11:05 +0100
committernokoe <nokoe@mailbox.org>2025-12-13 22:11:05 +0100
commitcced89ecbe80123ad8f9776f663fe34e8f681c2c (patch)
treea2d5cafd1ed1e6feceb706c43738c2b838efa5a4 /server/tools
parent285608d79b3e635b37c6155a6165a26668431bcd (diff)
downloadhurrycurry-cced89ecbe80123ad8f9776f663fe34e8f681c2c.tar
hurrycurry-cced89ecbe80123ad8f9776f663fe34e8f681c2c.tar.bz2
hurrycurry-cced89ecbe80123ad8f9776f663fe34e8f681c2c.tar.zst
deprecate old crate format
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/src/map_linter.rs23
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) {