Disable test items

This commit is contained in:
Yunfan Li
2024-09-18 22:16:18 +08:00
parent ef4064cfc1
commit 68bf09c425
5 changed files with 22 additions and 14 deletions

View File

@@ -967,15 +967,6 @@ void RandomItemMgr::BuildItemInfoCache()
if (!proto)
continue;
// skip non armor/weapon
if (proto->Class != ITEM_CLASS_WEAPON && proto->Class != ITEM_CLASS_ARMOR &&
proto->Class != ITEM_CLASS_CONTAINER && proto->Class != ITEM_CLASS_PROJECTILE &&
proto->Class != ITEM_CLASS_GEM)
continue;
// if (!CanEquipItemNew(proto))
// continue;
// skip test items
if (strstr(proto->Name1.c_str(), "(Test)") || strstr(proto->Name1.c_str(), "(TEST)") ||
strstr(proto->Name1.c_str(), "(test)") || strstr(proto->Name1.c_str(), "(JEFFTEST)") ||