Items/Block

* fixed formating of xml-export
 * fixed handling of block value (can have multiple sources per item (itemMods, spell, set individually) and is then displayed separately in tooltip, but summed for calculations)
This commit is contained in:
Sarjuuk
2016-01-13 21:57:38 +01:00
parent 99eb8f426b
commit 432223264e
4 changed files with 22 additions and 17 deletions

View File

@@ -49,6 +49,10 @@ class ItemStatSetup extends ItemList
{
$this->itemMods[$this->id] = [];
// also occurs as seperate field (gets summed in calculation but not in tooltip)
if ($_ = $this->getField('block'))
$this->itemMods[$this->id][ITEM_MOD_BLOCK_VALUE] = $_;
// convert itemMods to stats
for ($h = 1; $h <= 10; $h++)
{