Itemsets/Boni

* maybe fix unreproducable error where itemset bonus description was null
 * also slight cleanup in itemset bonus code
This commit is contained in:
Sarjuuk 2025-11-23 00:32:43 +01:00
parent 53d0813c80
commit adc0e16064
8 changed files with 18 additions and 21 deletions

View file

@ -67,8 +67,8 @@ endforeach;
<?=" ".Lang::itemset('_conveyBonus')."\n"; ?>
<ul>
<?php
foreach ($this->spells as $i => $s):
echo ' <li><div>'.$s['bonus'].' '.Lang::itemset('_pieces').Lang::main('colon').'<a href="?spell='.$s['id'].'">'.$s['desc']."</a></div></li>\n";
foreach ($this->spells as [$nItems, $spellId, $text]):
echo ' <li><div>'.Lang::itemset('_pieces', [$nItems]).'<a href="?spell='.$spellId.'">'.$text."</a></div></li>\n";
endforeach;
?>
</ul>