[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:
Jasdac authored and GitHub committed 2023-05-03 16:19:53 -04:00
1 parent c64a2aec94
commit 9f4d60ec36
10 files changed
+36 -18

No files matched your search

+2 -2
View File
@@ -518,9 +518,9 @@ bool Client::Process() {
Save(0);
}
if (m_pp.intoxication > 0)
if (GetIntoxication() > 0)
{
--m_pp.intoxication;
SetIntoxication(GetIntoxication()-1);
CalcBonuses();
}