FIX: The end of item cheating

This commit is contained in:
Kolyah35
2026-03-27 03:33:21 +03:00
parent 4beb5cb0f9
commit 41c5bdf243
8 changed files with 182 additions and 29 deletions

View File

@@ -290,3 +290,7 @@ bool ItemInstance::isArmorItem( const ItemInstance* instance ) {
return item->isArmor();
}
bool ItemInstance::isBlock(const ItemInstance* instance) {
return instance->id < 256;
}

View File

@@ -81,6 +81,8 @@ public:
static bool isArmorItem(const ItemInstance* instance);
static bool isBlock(const ItemInstance* instance);
/**
* Checks if this item is the same item as the other one, disregarding the
* 'count' value.