mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Rules] Add Rules to disable various item functionalities and cleanup data types. (#2225)
- Noticed some data types were unsigned when they should be signed based on Live items having these stats as negatives. - Loregroup was uint32 and should be int32 for Loregroup -1, fixed any references to -1 as 0xFFFFFFFF. - Attack was uint32 and should be int32. - DamageShield was uint32 and should be int32. - DotShielding was uint32 and should be int32. - Endurance was uint32 and should be int32. - EnduranceRegen was uint32 and should be int32. - Haste was uint32 and should be int32. - ManaRegen was uint32 and should be int32. - Regen was uint32 and should be int32. - RULE_BOOL(Items, DisableAttuneable, false, "Enable this to disable Attuneable Items") - RULE_BOOL(Items, DisableBardFocusEffects, false, "Enable this to disable Bard Focus Effects on Items") - RULE_BOOL(Items, DisableLore, false, "Enable this to disable Lore Items") - RULE_BOOL(Items, DisableNoDrop, false, "Enable this to disable No Drop Items") - RULE_BOOL(Items, DisableNoPet, false, "Enable this to disable No Pet Items") - RULE_BOOL(Items, DisableNoRent, false, "Enable this to disable No Rent Items") - RULE_BOOL(Items, DisableNoTransfer, false, "Enable this to disable No Transfer Items") - RULE_BOOL(Items, DisablePotionBelt, false, "Enable this to disable Potion Belt Items") - RULE_BOOL(Items, DisableSpellFocusEffects, false, "Enable this to disable Spell Focus Effects on Items")
This commit is contained in:
+3
-3
@@ -170,7 +170,7 @@ bool Client::CheckLoreConflict(const EQ::ItemData* item)
|
||||
if (!item->LoreFlag) { return false; }
|
||||
if (item->LoreGroup == 0) { return false; }
|
||||
|
||||
if (item->LoreGroup == 0xFFFFFFFF) // Standard lore items; look everywhere except the shared bank, return the result
|
||||
if (item->LoreGroup == -1) // Standard lore items; look everywhere except the shared bank, return the result
|
||||
return (m_inv.HasItem(item->ID, 0, ~invWhereSharedBank) != INVALID_INDEX);
|
||||
|
||||
// If the item has a lore group, we check for other items with the same group and return the result
|
||||
@@ -1072,7 +1072,7 @@ void Client::SendCursorBuffer()
|
||||
if (test_item == nullptr) { return; }
|
||||
|
||||
bool lore_pass = true;
|
||||
if (test_item->LoreGroup == 0xFFFFFFFF) {
|
||||
if (test_item->LoreGroup == -1) {
|
||||
lore_pass = (m_inv.HasItem(test_item->ID, 0, ~(invWhereSharedBank | invWhereCursor)) == INVALID_INDEX);
|
||||
}
|
||||
else if (test_item->LoreGroup != 0) {
|
||||
@@ -1799,7 +1799,7 @@ bool Client::SwapItem(MoveItem_Struct* move_in) {
|
||||
if (!test_item->LoreFlag) { return true; }
|
||||
|
||||
bool lore_pass = true;
|
||||
if (test_item->LoreGroup == 0xFFFFFFFF) {
|
||||
if (test_item->LoreGroup == -1) {
|
||||
lore_pass = (m_inv.HasItem(test_item->ID, 0, ~(invWhereSharedBank | invWhereCursor)) == INVALID_INDEX);
|
||||
}
|
||||
else if (test_item->LoreGroup != 0) {
|
||||
|
||||
Reference in New Issue
Block a user