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:
Sarjuuk
2014-07-02 00:21:25 +02:00
parent 775b12d64c
commit ec5589f323
17 changed files with 2601 additions and 2487 deletions

View File

@@ -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;
}
}