Items/Stats

* fixed stats for random enchanted items with scaling enchantments
 * don't send unused 'chance' to Summary tool
This commit is contained in:
Sarjuuk
2025-07-27 15:14:53 +02:00
parent a99fff46aa
commit b35ab67360
4 changed files with 26 additions and 8 deletions

View File

@@ -86,7 +86,10 @@ class ComparePage extends GenericPage
if (!empty($data[$itemId]['subitems']))
foreach ($data[$itemId]['subitems'] as &$si)
{
$si['enchantment'] = implode(', ', $si['enchantment']);
unset($si['chance']);
}
$this->cmpItems[$itemId] = [
'name_'.Lang::getLocale()->json() => $iList->getField('name', true),