[Cleanup] Set GetAugmentType() to int again (#3335)

# Notes
- Augment type can be `-1` for all augment types.
This commit is contained in:
Alex King 2023-05-07 21:40:45 -04:00 committed by GitHub
parent ce1de9997b
commit 5ba33b88bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ namespace EQ
bool AvailableWearSlot(uint32 aug_wear_slots) const;
int8 AvailableAugmentSlot(int32 augment_type) 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 bool IsExpendable() const { return ((m_item) ? ((m_item->Click.Type == item::ItemEffectExpendable) || (m_item->ItemType == item::ItemTypePotion)) : false); }

View File

@ -70,7 +70,7 @@ bool Lua_ItemInst::IsAugmentable() {
return self->IsAugmentable();
}
uint32 Lua_ItemInst::GetAugmentType() {
int Lua_ItemInst::GetAugmentType() {
Lua_Safe_Call_Int();
return self->GetAugmentType();
}

View File

@ -40,7 +40,7 @@ public:
bool IsEquipable(int race, int class_);
bool IsEquipable(int slot_id);
bool IsAugmentable();
uint32 GetAugmentType();
int GetAugmentType();
bool IsExpendable();
Lua_ItemInst GetItem(int slot);
Lua_Item GetItem();