diff options
Diffstat (limited to 'includes/playerStats.php')
-rw-r--r-- | includes/playerStats.php | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/includes/playerStats.php b/includes/playerStats.php index 8cbe7bf..be0b649 100644 --- a/includes/playerStats.php +++ b/includes/playerStats.php @@ -1,14 +1,6 @@ <?php -define('CP_EARLIEST_DATE', '2012-03-19'); -define('CP_MIN_WORTH', 10); -define('CP_MAX_WORTH_SIMPLE', 100); -define('CP_MAX_WORTH_NORMAL', 150); -define('CP_MAX_WORTH_COMPLEX', 200); -define('CP_MAX_WORTH_SPECIAL', 200); -define('CP_MAX_WORTH_WEEKLY', 350); -define('CP_MIN_WORTH_WEEKLY', 50); -define('CP_POINTS_FOR_ATTEMPTING', 5); -define('CP_EXTRA_PERCENT_FOR_FIRST', 0.05); + +include_once('constants.php'); /** * Sets a flag on all solutions which are the high score (first to tie the best length) @@ -259,10 +251,10 @@ function addStatsForYesterdaysMaps() function recalculateStatsForAllPlayers() { clearAllStatsBeforeRecalculation(); - setHighScoreFlags(CP_EARLIEST_DATE); - calculateMapsChampionPointWorth(CP_EARLIEST_DATE); - addPlayerChampionPointsForMapsOfTheDay(CP_EARLIEST_DATE); + setHighScoreFlags(STATS_EARLIEST_DATE); + calculateMapsChampionPointWorth(STATS_EARLIEST_DATE); + addPlayerChampionPointsForMapsOfTheDay(STATS_EARLIEST_DATE); //TODO: Champion points for challenges! - addOtherStats(CP_EARLIEST_DATE); + addOtherStats(STATS_EARLIEST_DATE); } ?> |