From a4a3876cdc39ea84ac0038404c313299c2198402 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Mon, 11 Aug 2025 23:55:02 +0200 Subject: [PATCH] Items/Fixup * casting the icon string to int may be considered suboptimal * fixes eb3b4ca5ec611be6ce18948bc20b7084fe8b1327 --- includes/types/item.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/types/item.class.php b/includes/types/item.class.php index 506e7951..104db703 100644 --- a/includes/types/item.class.php +++ b/includes/types/item.class.php @@ -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);