From e63907715ef788b256e0a6cedbda31648b0a71c2 Mon Sep 17 00:00:00 2001
From: stuebinm <stuebinm@disroot.org>
Date: Sat, 25 Dec 2021 03:01:26 +0100
Subject: [PATCH] hint if people set collides on tilesets

---
 lib/Properties.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/Properties.hs b/lib/Properties.hs
index b2d4974..51fa567 100644
--- a/lib/Properties.hs
+++ b/lib/Properties.hs
@@ -197,7 +197,8 @@ checkTileset = do
     checkTilesetProperty :: Property -> LintWriter Tileset
     checkTilesetProperty p@(Property name _value) = case name of
       "tilesetCopyright" -> naiveEscapeProperty p
-      _           -> warn $ "unknown tileset property " <> prettyprint name
+      "collides"         -> warn "property \"collides\" should be set on individual tiles, not the tileset"
+      _                  -> warn $ "unknown tileset property " <> prettyprint name
 
     checkTile :: Tile -> LintWriter Tileset
     checkTile tile = do
-- 
GitLab