Rendering of decal portions now controllable via point check overrides.

This commit is contained in:
2023-10-12 20:16:22 -05:00
parent 18db45e6c3
commit 472e8eceda
7 changed files with 28 additions and 6 deletions
+5 -1
View File
@@ -173,7 +173,11 @@ void Inventory::InsertIntoSortedInv(IT item){
}
bool Inventory::ExecuteAction(IT item){
return ITEM_SCRIPTS.at(ITEM_DATA.at(item).useFunc)(game,ITEM_DATA[item].customProps);
if(ITEM_SCRIPTS.count(ITEM_DATA.at(item).useFunc)){
return ITEM_SCRIPTS.at(ITEM_DATA.at(item).useFunc)(game,ITEM_DATA[item].customProps);
}else{
return false;
}
}
bool Inventory::SwapItems(ITCategory itemCategory,uint32_t slot1,uint32_t slot2){