Can now pick up items

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-13 20:27:38 +01:00
parent bca8d10964
commit 026db920b3
7 changed files with 358 additions and 40 deletions

View File

@@ -11,7 +11,15 @@ class Decorative extends Entity {
// Checks if the Map ID belongs to a standard decoration
static bool isDecoration(int objId) {
return (objId >= 23 && objId <= 70) || objId == 124;
if (objId == 124) return true; // Dead guard
if (objId >= 23 && objId <= 70) {
// Exclude the collectibles!
if ((objId >= 43 && objId <= 44) || (objId >= 47 && objId <= 56)) {
return false;
}
return true;
}
return false;
}
// Safely calculates the VSWAP sprite index for standard decorations