Profiler/Completion

* fix partial loading of quests in profiler
 * provide inital category totals on a per class & race basis
This commit is contained in:
Sarjuuk
2023-06-08 13:29:45 +02:00
parent ebc20be508
commit 24d683332d
7 changed files with 151 additions and 59 deletions

View File

@@ -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 = [];