mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00

* moved online, movies, google_analytics code, faq, experience_table, downloads to twig * added new global variabl to twig (status) * removed some unused page (custom.php) * automatically append trailing slash at config.item_images_url * moved downloads from clients.halfaway.net to tibia-clients.com * show some more info on monster loot (currently only on TFS 0.3 and those that use item.id in monster files instead of item name) * some more unimportant fixes
26 lines
686 B
PHP
26 lines
686 B
PHP
<?php
|
|
/**
|
|
* Experience table
|
|
*
|
|
* @package MyAAC
|
|
* @author Slawkens <slawkens@gmail.com>
|
|
* @copyright 2017 MyAAC
|
|
* @version 0.4.2
|
|
* @link http://my-aac.org
|
|
*/
|
|
defined('MYAAC') or die('Direct access not allowed!');
|
|
$title = 'Experience Table';
|
|
|
|
$experience = array();
|
|
$columns = $config['experiencetable_columns'];
|
|
for($i = 0; $i < $columns; $i++) {
|
|
for($level = $i * $config['experiencetable_rows'] + 1; $level < $i * $config['experiencetable_rows'] + ($config['experiencetable_rows'] + 1); $level++) {
|
|
$experience[$level] = OTS_Toolbox::experienceForLevel($level);
|
|
}
|
|
}
|
|
|
|
echo $twig->render('experience_table.html.twig', array(
|
|
'experience' => $experience
|
|
));
|
|
?>
|