diff options
author | BlueRaja <BlueRaja.admin@gmail.com> | 2013-01-24 03:28:16 -0600 |
---|---|---|
committer | BlueRaja <BlueRaja.admin@gmail.com> | 2013-01-24 03:28:16 -0600 |
commit | 623c60324a9c3b6ed4c839e79f7a998e17497322 (patch) | |
tree | 9e7cfd8a97ff30fcc903c005f0c3aaf626e73569 /includes/playerStats.php | |
parent | 555cb086402521801ef1a3bfa893c3a9aa734715 (diff) | |
download | pathery-623c60324a9c3b6ed4c839e79f7a998e17497322.tar.xz |
Moved constants to constants.php
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); } ?> |