Fixed highscores being broken when cache system is enabled.

Highscore cache data now stores vocation group store data, and flag value if enabled in config.php
No extra queries are being made after the scores have been loaded from cache.
This commit is contained in:
Znote
2016-12-31 04:05:15 +01:00
parent 0c20be5c7e
commit deddeb462c
4 changed files with 170 additions and 65 deletions

View File

@@ -263,17 +263,44 @@
'limit' => 20, //Number of players that it will show.
);
// Vocation ids and names.
// Vocation IDs, names and which vocation ID they got promoted from
$config['vocations'] = array(
0 => 'No vocation',
1 => 'Sorcerer',
2 => 'Druid',
3 => 'Paladin',
4 => 'Knight',
5 => 'Master Sorcerer',
6 => 'Elder Druid',
7 => 'Royal Paladin',
8 => 'Elite Knight',
0 => array(
'name' => 'No vocation',
'fromVoc' => false
),
1 => array(
'name' => 'Sorcerer',
'fromVoc' => false
),
2 => array(
'name' => 'Druid',
'fromVoc' => false
),
3 => array(
'name' => 'Paladin',
'fromVoc' => false
),
4 => array(
'name' => 'Knight',
'fromVoc' => false
),
5 => array(
'name' => 'Master Sorcerer',
'fromVoc' => 1
),
6 => array(
'name' => 'Elder Druid',
'fromVoc' => 2
),
7 => array(
'name' => 'Royal Paladin',
'fromVoc' => 3
),
8 => array(
'name' => 'Elite Knight',
'fromVoc' => 4
)
);
/* Vocation stat gains per level