mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Util/Enums
* create helper enum classes ChrClass & ChrRace * replace various iterators and checks with said enums
This commit is contained in:
@@ -510,7 +510,7 @@ class AjaxProfile extends AjaxHandler
|
||||
'level' => $pBase['level'],
|
||||
'classs' => $pBase['class'],
|
||||
'race' => $pBase['race'],
|
||||
'faction' => Game::sideByRaceMask(1 << ($pBase['race'] - 1)) - 1,
|
||||
'faction' => ChrRace::tryFrom($pBase['race'])?->getSide() ?? SIDE_NONE,
|
||||
'gender' => $pBase['gender'],
|
||||
'skincolor' => $pBase['skincolor'],
|
||||
'hairstyle' => $pBase['hairstyle'],
|
||||
|
||||
Reference in New Issue
Block a user