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

@@ -424,7 +424,7 @@ abstract class Util
return Lang::unescapeUISequences($text, $markdown ? Lang::FMT_MARKUP : Lang::FMT_HTML);
}
public static function asHex($val) : string
public static function asHex(int $val) : string
{
$_ = decHex($val);
while (fMod(strLen($_), 4)) // in 4-blocks
@@ -433,13 +433,13 @@ abstract class Util
return '0x'.strToUpper($_);
}
public static function asBin($val) : string
public static function asBin(int $val) : string
{
$_ = decBin($val);
while (fMod(strLen($_), 4)) // in 4-blocks
$_ = '0'.$_;
return 'b'.strToUpper($_);
return 'b'.$_;
}
public static function htmlEscape($data)