mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 20:48:26 +00:00
[Feature] Intoxication setter/getter for source, getter for Perl/Lua (#3330)
* Add setter and getter methods for intoxication Add GetIntoxication functions for perl and Lua * Remove trailing tab * Use clamp instead of min/max
This commit is contained in:
@@ -518,9 +518,9 @@ bool Client::Process() {
|
||||
Save(0);
|
||||
}
|
||||
|
||||
if (m_pp.intoxication > 0)
|
||||
if (GetIntoxication() > 0)
|
||||
{
|
||||
--m_pp.intoxication;
|
||||
SetIntoxication(GetIntoxication()-1);
|
||||
CalcBonuses();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user