SpellEffects/Icons

* fix icon formater: num/qty can be strings
This commit is contained in:
Sarjuuk
2024-08-27 16:00:56 +02:00
parent 64fb86f3a9
commit 50f5af07f3

View File

@@ -861,7 +861,7 @@ class GenericPage
return $buff;
}
protected function fmtCreateIcon(int $iconIdx, int $type, int $typeId, int $pad = 0, string $element = 'icontab-icon', int $size = 1, int $num = 0, int $qty = 0) : string
protected function fmtCreateIcon(int $iconIdx, int $type, int $typeId, int $pad = 0, string $element = 'icontab-icon', int $size = 1, string $num = '', string $qty = '') : string
{
// $element, $iconTabIdx, [typeId, size, num, qty]
$createIconString = "\$WH.ge('%s%d').appendChild(%s.createIcon(%s));\n";