mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Item/Tooltip
* display hidden/cosmetic spells for staff
This commit is contained in:
@@ -970,12 +970,15 @@ class ItemList extends BaseType
|
|||||||
|
|
||||||
if ($itemSpellsAndTrigger)
|
if ($itemSpellsAndTrigger)
|
||||||
{
|
{
|
||||||
$cooldown = '';
|
|
||||||
|
|
||||||
$itemSpells = new SpellList(array(['s.id', array_keys($itemSpellsAndTrigger)]));
|
$itemSpells = new SpellList(array(['s.id', array_keys($itemSpellsAndTrigger)]));
|
||||||
foreach ($itemSpells->iterate() as $__)
|
foreach ($itemSpells->iterate() as $sId => $__)
|
||||||
if ($parsed = $itemSpells->parseText('description', $_reqLvl > 1 ? $_reqLvl : MAX_LEVEL, false, $causesScaling)[0])
|
|
||||||
{
|
{
|
||||||
|
$parsed = $itemSpells->parseText('description', $_reqLvl > 1 ? $_reqLvl : MAX_LEVEL, false, $causesScaling)[0];
|
||||||
|
if (!$parsed && User::isInGroup(U_GROUP_EMPLOYEE))
|
||||||
|
$parsed = '<span style="opacity:.75"><'.$itemSpells->getField('name', true, true).'></span>';
|
||||||
|
else if (!$parsed)
|
||||||
|
continue;
|
||||||
|
|
||||||
if ($interactive)
|
if ($interactive)
|
||||||
{
|
{
|
||||||
$link = '<a href="?spell='.$itemSpells->id.'">%s</a>';
|
$link = '<a href="?spell='.$itemSpells->id.'">%s</a>';
|
||||||
|
|||||||
Reference in New Issue
Block a user