Items/Fixup

* casting the icon string to int may be considered suboptimal
 * fixes eb3b4ca5ec
This commit is contained in:
Sarjuuk
2025-08-11 23:55:02 +02:00
parent 4c89c9061e
commit a4a3876cdc

View File

@@ -1697,7 +1697,6 @@ class ItemList extends BaseType
$json = array(
'id' => $this->id,
'quality' => ITEM_QUALITY_HEIRLOOM - $this->curTpl['quality'],
'icon' => $this->curTpl['iconString'],
'classs' => $class,
'subclass' => $subclass,
'subsubclass' => $this->curTpl['subSubClass'],
@@ -1731,6 +1730,7 @@ class ItemList extends BaseType
$json = array_map('intval', $json);
$json['name'] = $this->getField('name', true);
$json['icon'] = $this->curTpl['iconString'];
if ($class == ITEM_CLASS_AMMUNITION)
$json['dps'] = round(($this->curTpl['tplDmgMin1'] + $this->curTpl['dmgMin2'] + $this->curTpl['tplDmgMax1'] + $this->curTpl['dmgMax2']) / 2, 2);