mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Profiler/Completion
* fix partial loading of quests in profiler * provide inital category totals on a per class & race basis
This commit is contained in:
@@ -652,6 +652,24 @@ class User
|
||||
return self::$profiles->getJSGlobals(PROFILEINFO_PROFILE);
|
||||
}
|
||||
|
||||
public static function getPinnedCharacter() : array
|
||||
{
|
||||
if (!self::$profiles)
|
||||
return [];
|
||||
|
||||
$realms = Profiler::getRealms();
|
||||
|
||||
foreach (self::$profiles->iterate() as $id => $_)
|
||||
if (self::$profiles->getField('cuFlags') & PROFILER_CU_PINNED)
|
||||
return [
|
||||
$id,
|
||||
self::$profiles->getField('name'),
|
||||
self::$profiles->getField('region') . '.' . Profiler::urlize($realms[self::$profiles->getField('realm')]['name'], true) . '.' . Profiler::urlize(self::$profiles->getField('name'), true, true)
|
||||
];
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
public static function getGuides()
|
||||
{
|
||||
$result = [];
|
||||
|
||||
Reference in New Issue
Block a user