diff --git a/includes/game/loot/lootbycontainer.class.php b/includes/game/loot/lootbycontainer.class.php index a8f345fd..1889aa68 100644 --- a/includes/game/loot/lootbycontainer.class.php +++ b/includes/game/loot/lootbycontainer.class.php @@ -264,10 +264,11 @@ class LootByContainer extends Loot else if (User::isInGroup(U_GROUP_EMPLOYEE)) // create dummy for ref-drop { $data = array( - 'id' => $loot['reference'], - 'name' => '@REFERENCE: '.$loot['reference'], - 'icon' => 'trade_engineering', - 'stack' => [$loot['multiplier'], $loot['multiplier']] + 'id' => $loot['reference'], + 'name' => '@REFERENCE: '.$loot['reference'], + 'icon' => 'trade_engineering', + 'stack' => [$loot['multiplier'], $loot['multiplier']], + 'commondrop' => 1 ); $this->results[] = array_merge($base, $data); diff --git a/setup/sql/updates/1765116606_01.sql b/setup/sql/updates/1765116606_01.sql new file mode 100644 index 00000000..03adf418 --- /dev/null +++ b/setup/sql/updates/1765116606_01.sql @@ -0,0 +1 @@ +UPDATE `aowow_dbversion` SET `build` = CONCAT(IFNULL(`build`, ''), ' globaljs'); diff --git a/setup/tools/filegen/templates/global.js/listview_templates.js b/setup/tools/filegen/templates/global.js/listview_templates.js index a5c98629..2c3dcb85 100644 --- a/setup/tools/filegen/templates/global.js/listview_templates.js +++ b/setup/tools/filegen/templates/global.js/listview_templates.js @@ -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';