mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Spell/Effects
* do not rely displayInfo for spell effects, that can occur multiple times per spell Items/CurrencyFor * always send all currency-info to javascript (an item may require more then one to be bought)
This commit is contained in:
@@ -875,7 +875,7 @@ class ItemPage extends genericPage
|
||||
|
||||
$this->lvTabs[] = ['item', $tabData];
|
||||
|
||||
$this->extendGlobalData($boughtBy->getJSGlobals(GLOBALINFO_SELF));
|
||||
$this->extendGlobalData($boughtBy->getJSGlobals(GLOBALINFO_SELF | GLOBALINFO_RELATED));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1636,12 +1636,12 @@ class SpellPage extends GenericPage
|
||||
case 28: // Summon
|
||||
case 90: // Kill Credit
|
||||
case 134: // Kill Credit2
|
||||
$_ = Lang::game('npc').' #'.$effMV;
|
||||
if ($summon = $this->subject->getModelInfo($this->typeId, $i))
|
||||
{
|
||||
$_ = $summon['typeId'] ? ' (<a href="?npc='.$summon['typeId'].'">'.$summon['displayName'].'</a>)' : ' (#0)';
|
||||
$redButtons[BUTTON_VIEW3D] = ['type' => TYPE_NPC, 'displayId' => $summon['displayId']];
|
||||
}
|
||||
|
||||
$_ = Lang::game('npc').' #'.$effMV;
|
||||
if ($n = CreatureList::getName($effMV))
|
||||
$_ = ' (<a href="?npc='.$effMV.'">'.$n.'</a>)';
|
||||
|
||||
$foo['name'] .= $_;
|
||||
break;
|
||||
@@ -1689,12 +1689,12 @@ class SpellPage extends GenericPage
|
||||
case 105: // Summon Object (slot 2)
|
||||
case 106: // Summon Object (slot 3)
|
||||
case 107: // Summon Object (slot 4)
|
||||
$_ = Util::ucFirst(Lang::game('object')).' #'.$effMV;
|
||||
if ($summon = $this->subject->getModelInfo($this->typeId, $i))
|
||||
{
|
||||
$_ = $summon['typeId'] ? ' (<a href="?object='.$summon['typeId'].'">'.$summon['displayName'].'</a>)' : ' (#0)';
|
||||
$redButtons[BUTTON_VIEW3D] = ['type' => TYPE_OBJECT, 'displayId' => $summon['displayId']];
|
||||
}
|
||||
|
||||
$_ = Util::ucFirst(Lang::game('object')).' #'.$effMV;
|
||||
if ($n = GameobjectList::getName($effMV))
|
||||
$_ = ' (<a href="?object='.$effMV.'">'.$n.'</a>)';
|
||||
|
||||
$foo['name'] .= $_;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user