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/constants.php | |
parent | 555cb086402521801ef1a3bfa893c3a9aa734715 (diff) | |
download | pathery-623c60324a9c3b6ed4c839e79f7a998e17497322.tar.xz |
Moved constants to constants.php
Diffstat (limited to 'includes/constants.php')
-rw-r--r-- | includes/constants.php | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/includes/constants.php b/includes/constants.php new file mode 100644 index 0000000..0658725 --- /dev/null +++ b/includes/constants.php @@ -0,0 +1,71 @@ +<?php + +/** + * The 'starting date' of pathery, from which we begin recording all statistics (ties, wins, champion points, etc) + */ +define('STATS_EARLIEST_DATE', '2012-03-19'); + +/** + * The minimum number of champion points you can get for tying a map, regardless of how many other people tied + */ +define('CP_MIN_WORTH', 10); + +/** + * The max champion points you can get for tying a simple map (not including the bonus percentage) + */ +define('CP_MAX_WORTH_SIMPLE', 100); + +/** + * * The max champion points you can get for tying a normal map (not including the bonus percentage) + */ +define('CP_MAX_WORTH_NORMAL', 150); + +/** + * * The max champion points you can get for tying a complex map (not including the bonus percentage) + */ +define('CP_MAX_WORTH_COMPLEX', 200); + +/** + * * The max champion points you can get for tying a special map (not including the bonus percentage) + */ +define('CP_MAX_WORTH_SPECIAL', 200); + +/** + * The max champion points you can get for tying a weekly map, not including the bonus percentage or + * CP_MIN_WORTH_WEEKLY + */ +define('CP_MAX_WORTH_WEEKLY', 350); + +/** + * The minimum points you can get for attempting the weekly map. Unlike CP_POINTS_FOR_ATTEMPTING for normal maps, + * this amount is added to the amount they for beating others, so this is actually less than the true minimum. + */ +define('CP_MIN_WORTH_WEEKLY', 50); + +/** + * The points you can get for attempting a map (other than the weekly map) without tying the high score + */ +define('CP_POINTS_FOR_ATTEMPTING', 5); + +/** + * The bonus percentage of champion points you get for being the first to get the high score on a map + */ +define('CP_EXTRA_PERCENT_FOR_FIRST', 0.05); + +/** + * How long, in days, the weekly map lasts + */ +define('MAP_EXPIRE_TIME_WEEKLY', 7); + +/** + * Constants to represent the different map-types + */ +class MapType +{ + const Simple = 1; + const Normal = 2; + const Complex = 3; + const Special = 4; + const Weekly = 5; +} +?> |