mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
removing smarty - part X
readded spell/spells - changes to Lang, since it can no longer access the template - set required php-version to 5.5.0 (generators were added and are essential to aowow) - display stats in footer to staff only
This commit is contained in:
@@ -373,6 +373,15 @@ class SpellList extends BaseType
|
||||
$tools = [];
|
||||
for ($i = 1; $i <= 2; $i++)
|
||||
{
|
||||
// TotemCategory
|
||||
if ($_ = $this->curTpl['toolCategory'.$i])
|
||||
{
|
||||
$tc = DB::Aowow()->selectRow('SELECT * FROM ?_totemcategory WHERE id = ?d', $_);
|
||||
$tools[$i + 1] = array(
|
||||
'id' => $_,
|
||||
'name' => Util::localizedString($tc, 'name'));
|
||||
}
|
||||
|
||||
// Tools
|
||||
if (!$this->curTpl['tool'.$i])
|
||||
continue;
|
||||
@@ -390,15 +399,6 @@ class SpellList extends BaseType
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
// TotemCategory
|
||||
if ($_ = $this->curTpl['toolCategory'.$i])
|
||||
{
|
||||
$tc = DB::Aowow()->selectRow('SELECT * FROM ?_totemcategory WHERE id = ?d', $_);
|
||||
$tools[$i + 1] = array(
|
||||
'id' => $_,
|
||||
'name' => Util::localizedString($tc, 'name'));
|
||||
}
|
||||
}
|
||||
|
||||
$this->tools = array_reverse($tools);
|
||||
@@ -1533,7 +1533,7 @@ Lasts 5 min. $?$gte($pl,68)[][Cannot be used on items level 138 and higher.]
|
||||
if ($cId != $this->curTpl['effect'.$idx.'CreateItemId'])
|
||||
continue;
|
||||
|
||||
$createItem = $this->relItems->renderTooltip([], true, $this->id);
|
||||
$createItem = $this->relItems->renderTooltip(true, $this->id);
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user