mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 07:16:37 +00:00
[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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user