Listviews/RefLoot

* tag ref loot rows as 'commonloot' to keep them out of the 'noteworthy loot' subtab
 * don't create icon links for ref loot rows
This commit is contained in:
Sarjuuk 2025-12-07 15:12:24 +01:00
parent b85ee4ff23
commit 53182aedea
3 changed files with 10 additions and 5 deletions

View file

@ -0,0 +1 @@
UPDATE `aowow_dbversion` SET `build` = CONCAT(IFNULL(`build`, ''), ' globaljs');

View file

@ -411,7 +411,10 @@ Listview.templates = {
}
if (item.id) {
$WH.ae(i, g_items.createIcon(item.id, (this.iconSize == null ? 1 : this.iconSize), num, qty));
if (item.name.charAt(0) == '@') // aowow - don't create link on icon for ref loot
$WH.ae(i, Icon.create(g_items.getIcon(item.id), this.iconSize ?? 1, null, null, num, qty));
else
$WH.ae(i, g_items.createIcon(item.id, (this.iconSize == null ? 1 : this.iconSize), num, qty));
}
$WH.ae(tr, i);
td.style.borderLeft = 'none';