| '.Util::localizedString($this->curTpl, 'name').' | '; // dispelType (if applicable) if ($dispel = Lang::$game['dt'][$this->curTpl['dispelType']]) $x .= ''.$dispel.' | '; $x .= '
|---|
| ';
// parse Buff-Text
$x .= $this->parseText('buff', $level, $this->interactive).' '; // duration if ($this->curTpl['duration'] > 0) $x .= ''.sprintf(Lang::$spell['remaining'], Util::formatTime($this->curTpl['duration'])).''; $x .= ' |
';
$rankText = Util::localizedString($this->curTpl, 'rank');
if (!empty($rankText))
$x .= '
'; $x .= $r; if ($c && $r) $x .= ' '; $x .= $c; } if ($cool) // tabled layout { $x .= '
'; $x .= $cast; if ($cast && $stances) $x .= ' '; $x .= $stances; } $x .= ' | ||||||||
| ';
if ($tools)
{
$x .= Lang::$spell['tools'].': ';
while ($tool = array_pop($tools))
{
if (isset($tool['itemId']))
$x .= ''.$tool['name'].'';
else if (isset($tool['id']))
$x .= ''.$tool['name'].'';
else
$x .= $tool['name'];
if (!empty($tools))
$x .= ', ';
else
$x .= ' ';
}
if ($reagents)
{
if ($tools)
$x .= "'; } $x .= ' "; $x .= Lang::$spell['reagents'].': ';
while ($reagent = array_pop($reagents))
{
$x .= ''.$reagent['name'].'';
if ($reagent['count'] > 1)
$x .= ' ('.$reagent['count'].')';
if(!empty($reagents))
$x .= ', ';
else
$x .= ' ';
}
if ($reqItems)
{
if ($tools || $reagents)
$x .= "'; } $x .= ' "; $x .= Lang::$game['requires2'].' '.$reqItems; } if ($desc) { if ($tools || $reagents || $reqItems) $x .= " "; $x .= ''.$desc.''; } if ($createItem) { if ($tools || $reagents || $reqItems || $desc) $x .= " "; $x .= ' '.$createItem; } if ($reqWrapper2) $x .= " |
| '.$cost.' | '.$range.' |
|---|
| '.$time.' | '.$cool.' |
|---|