mirror of
https://github.com/slawkens/myaac.git
synced 2025-12-19 07:07:12 +01:00
Restore vocations.xml loading
For better handling of vocations Monk is supported now
This commit is contained in:
@@ -852,13 +852,7 @@ class OTS_Player extends OTS_Row_DAO
|
||||
throw new E_OTS_NotLoaded();
|
||||
}
|
||||
|
||||
if(isset($this->data['promotion'])) {
|
||||
global $config;
|
||||
if((int)$this->data['promotion'] > 0)
|
||||
return ($this->data['vocation'] + ($this->data['promotion'] * $config['vocations_amount']));
|
||||
}
|
||||
|
||||
return $this->data['vocation'];
|
||||
return \OTS_Toolbox::getVocationFromPromotion($this->data['vocation'], $this->data['promotion'] ?? 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user