mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
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
18 lines
741 B
PHP
18 lines
741 B
PHP
var _ = g_spells;
|
|
<?php
|
|
foreach ($vars as $id => $data):
|
|
echo '_['.$id.']={' .
|
|
'name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\',' .
|
|
'icon:\''.$data['icon'].'\'' .
|
|
'};';
|
|
endforeach;
|
|
|
|
if (isset($this->typeId) && !empty($extra[$this->typeId])):
|
|
$x = $extra[$this->typeId];
|
|
echo "\n_[".$x['id'].'].tooltip_'.User::$localeString.' = \''.$x['tooltip']."';";
|
|
echo "\n_[".$x['id'].'].buff_'.User::$localeString.' = \''.$x['buff']."';";
|
|
echo "\n_[".$x['id'].'].spells_'.User::$localeString.' = '.json_encode($x['spells'], JSON_NUMERIC_CHECK).';';
|
|
echo "\n_[".$x['id'].'].buffspells_'.User::$localeString.' = '.json_encode($x['buffspells'], JSON_NUMERIC_CHECK).';';
|
|
endif;
|
|
?>
|