[Quest API] Add Potion Belt Methods (#4634)

* [Quest API] Add Potion Belt Methods

* Update client.h

* Cleanup

* Update client.h

* Constrain properly

---------

Co-authored-by: Akkadius <akkadius1@gmail.com>
This commit is contained in:
Alex King
2025-02-03 19:37:46 -05:00
committed by GitHub
parent ff86cc3b8a
commit 49917bfb13
4 changed files with 65 additions and 0 deletions
+23
View File
@@ -1832,6 +1832,29 @@ public:
Raid *p_raid_instance;
inline uint32 GetPotionBeltItemIcon(uint8 slot_id)
{
return EQ::ValueWithin(
slot_id,
0,
EQ::profile::POTION_BELT_SIZE - 1
) ? m_pp.potionbelt.Items[slot_id].Icon : 0;
};
inline uint32 GetPotionBeltItemID(uint8 slot_id)
{
return EQ::ValueWithin(slot_id, 0, EQ::profile::POTION_BELT_SIZE - 1) ? m_pp.potionbelt.Items[slot_id].ID : 0;
};
inline std::string GetPotionBeltItemName(uint8 slot_id)
{
return EQ::ValueWithin(
slot_id,
0,
EQ::profile::POTION_BELT_SIZE - 1
) ? m_pp.potionbelt.Items[slot_id].Name : 0;
};
void ShowDevToolsMenu();
CheatManager cheat_manager;