mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Spells/Attributes
* update spell attribute descriptions primary from TC, secondary from Wowdev Wiki (not guaranteed to be correct for 335) * show all attributes on SpellDetailPage * update links from attributes to SpellFilter * unsure: should the attribute filters work purely on attributes or also consider other factors? * implement some of the client side modifiers on the spell tooltips and buffs
This commit is contained in:
@@ -894,12 +894,12 @@ class GenericPage
|
||||
return str_repeat(' ', $pad) . sprintf($createIconString, $element, $iconIdx, $jsg, implode(', ', $params));
|
||||
}
|
||||
|
||||
protected function fmtStaffTip(string $text, string $tip) : string
|
||||
protected function fmtStaffTip(?string $text, string $tip) : string
|
||||
{
|
||||
if (User::isInGroup(U_GROUP_EMPLOYEE))
|
||||
return sprintf(Util::$dfnString, $tip, $text);
|
||||
if (!$text || !User::isInGroup(U_GROUP_EMPLOYEE))
|
||||
return $text ?? '';
|
||||
else
|
||||
return $text;
|
||||
return sprintf(Util::$dfnString, $tip, $text);
|
||||
}
|
||||
|
||||
// load brick
|
||||
|
||||
Reference in New Issue
Block a user