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:
Sarjuuk
2025-04-10 17:31:54 +02:00
parent 9c73f3cf95
commit d75aa56b38
19 changed files with 2106 additions and 743 deletions

View File

@@ -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