mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Items/Fixup
* casting the icon string to int may be considered suboptimal
* fixes eb3b4ca5ec
This commit is contained in:
@@ -1697,7 +1697,6 @@ class ItemList extends BaseType
|
|||||||
$json = array(
|
$json = array(
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'quality' => ITEM_QUALITY_HEIRLOOM - $this->curTpl['quality'],
|
'quality' => ITEM_QUALITY_HEIRLOOM - $this->curTpl['quality'],
|
||||||
'icon' => $this->curTpl['iconString'],
|
|
||||||
'classs' => $class,
|
'classs' => $class,
|
||||||
'subclass' => $subclass,
|
'subclass' => $subclass,
|
||||||
'subsubclass' => $this->curTpl['subSubClass'],
|
'subsubclass' => $this->curTpl['subSubClass'],
|
||||||
@@ -1731,6 +1730,7 @@ class ItemList extends BaseType
|
|||||||
$json = array_map('intval', $json);
|
$json = array_map('intval', $json);
|
||||||
|
|
||||||
$json['name'] = $this->getField('name', true);
|
$json['name'] = $this->getField('name', true);
|
||||||
|
$json['icon'] = $this->curTpl['iconString'];
|
||||||
|
|
||||||
if ($class == ITEM_CLASS_AMMUNITION)
|
if ($class == ITEM_CLASS_AMMUNITION)
|
||||||
$json['dps'] = round(($this->curTpl['tplDmgMin1'] + $this->curTpl['dmgMin2'] + $this->curTpl['tplDmgMax1'] + $this->curTpl['dmgMax2']) / 2, 2);
|
$json['dps'] = round(($this->curTpl['tplDmgMin1'] + $this->curTpl['dmgMin2'] + $this->curTpl['tplDmgMax1'] + $this->curTpl['dmgMax2']) / 2, 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user