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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user