mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[Cleanup] Remove unnecessary conditions in Client::Consume() (#3265)
# Notes - We check `increase < 0` prior to this, so this can't ever happen.
This commit is contained in:
parent
3d2f560436
commit
39ce0178f9
@ -8355,9 +8355,6 @@ void Client::Consume(const EQ::ItemData *item, uint8 type, int16 slot, bool auto
|
||||
return;
|
||||
|
||||
if (type == EQ::item::ItemTypeFood) {
|
||||
if (increase < 0)
|
||||
return;
|
||||
|
||||
m_pp.hunger_level += increase;
|
||||
|
||||
LogFood("Consuming food, points added to hunger_level: [{}] - current_hunger: [{}]", increase, m_pp.hunger_level);
|
||||
@ -8370,9 +8367,6 @@ void Client::Consume(const EQ::ItemData *item, uint8 type, int16 slot, bool auto
|
||||
LogFood("Eating from slot: [{}]", (int)slot);
|
||||
|
||||
} else {
|
||||
if (increase < 0)
|
||||
return;
|
||||
|
||||
m_pp.thirst_level += increase;
|
||||
|
||||
DeleteItemInInventory(slot, 1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user