fix(gaming): Max level at 100

Signed-off-by: Stuart McCulloch Anderson's avatarStuart McCulloch Anderson <stuart@nxfifteen.me.uk>
parent 6aa708a9
......@@ -3064,6 +3064,9 @@ class DataReturn
$return = $this->getAppClass()->getDatabase()->get($db_prefix . "users_xp", ['class','xp','mana','health', 'level', 'percent'], ["fuid" => $this->getUserID()]);
}
if ($return['level'] > 100)
$return['level'] = 100;
$return['ico'] = $this->getAppClass()->getSetting("http/admin") . "/img/xplevels/" . $return['level'] . ".png";
$return['icoclass'] = $this->getAppClass()->getSetting("http/admin") . "/img/xplevels/" . strtolower($return['class']) . ".png";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment