[Rules] Add Invisible Augment Rules (#4385)

* [Rules] Add Invisible Augment Slot Rule

* Update item_instance.cpp

* Second rule

* Update ruletypes.h
This commit is contained in:
Alex King
2024-06-14 13:02:21 -04:00
committed by GitHub
parent abc8c3d886
commit 187288f3aa
3 changed files with 18 additions and 29 deletions
+2 -2
View File
@@ -384,7 +384,7 @@ bool Client::SummonItem(uint32 item_id, int16 charges, uint32 aug1, uint32 aug2,
return false;
}
if(item->AugSlotVisible[iter] == 0) {
if (!RuleB(Items, SummonItemAllowInvisibleAugments) && item->AugSlotVisible[iter] == 0) {
Message(
Chat::Red,
fmt::format(
@@ -1105,7 +1105,7 @@ void Client::DeleteItemInInventory(int16 slot_id, int16 quantity, bool client_up
if(update_db)
database.SaveInventory(character_id, inst, slot_id);
}
if(client_update && IsValidSlot(slot_id)) {
EQApplicationPacket* outapp = nullptr;
if(inst) {