mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 11:42:36 +00:00
[Cleanup] Set GetAugmentType() to int again (#3335)
# Notes - Augment type can be `-1` for all augment types.
This commit is contained in:
parent
ce1de9997b
commit
5ba33b88bd
@ -108,7 +108,7 @@ namespace EQ
|
|||||||
bool AvailableWearSlot(uint32 aug_wear_slots) const;
|
bool AvailableWearSlot(uint32 aug_wear_slots) const;
|
||||||
int8 AvailableAugmentSlot(int32 augment_type) const;
|
int8 AvailableAugmentSlot(int32 augment_type) const;
|
||||||
bool IsAugmentSlotAvailable(int32 augment_type, uint8 slot) const;
|
bool IsAugmentSlotAvailable(int32 augment_type, uint8 slot) const;
|
||||||
inline uint32 GetAugmentType() const { return m_item ? m_item->AugType : 0; }
|
inline int GetAugmentType() const { return m_item ? m_item->AugType : 0; }
|
||||||
inline uint32 GetAugmentRestriction() const { return m_item ? m_item->AugRestrict : 0; }
|
inline uint32 GetAugmentRestriction() const { return m_item ? m_item->AugRestrict : 0; }
|
||||||
|
|
||||||
inline bool IsExpendable() const { return ((m_item) ? ((m_item->Click.Type == item::ItemEffectExpendable) || (m_item->ItemType == item::ItemTypePotion)) : false); }
|
inline bool IsExpendable() const { return ((m_item) ? ((m_item->Click.Type == item::ItemEffectExpendable) || (m_item->ItemType == item::ItemTypePotion)) : false); }
|
||||||
|
|||||||
@ -70,7 +70,7 @@ bool Lua_ItemInst::IsAugmentable() {
|
|||||||
return self->IsAugmentable();
|
return self->IsAugmentable();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 Lua_ItemInst::GetAugmentType() {
|
int Lua_ItemInst::GetAugmentType() {
|
||||||
Lua_Safe_Call_Int();
|
Lua_Safe_Call_Int();
|
||||||
return self->GetAugmentType();
|
return self->GetAugmentType();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,7 +40,7 @@ public:
|
|||||||
bool IsEquipable(int race, int class_);
|
bool IsEquipable(int race, int class_);
|
||||||
bool IsEquipable(int slot_id);
|
bool IsEquipable(int slot_id);
|
||||||
bool IsAugmentable();
|
bool IsAugmentable();
|
||||||
uint32 GetAugmentType();
|
int GetAugmentType();
|
||||||
bool IsExpendable();
|
bool IsExpendable();
|
||||||
Lua_ItemInst GetItem(int slot);
|
Lua_ItemInst GetItem(int slot);
|
||||||
Lua_Item GetItem();
|
Lua_Item GetItem();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user