summaryrefslogtreecommitdiffstats
path: root/includes/constants.php
blob: f5dfc20d7c9dd6ef63455898ba0fe662d1ba4ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php

/**
 * The 'starting date' of pathery, from which we begin recording all statistics (ties, wins, champion points, etc)
 */
define('STATS_EARLIEST_DATE', '2011-08-01');

/**
 * 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;
}
$mapNamesByType = array(1 => 'Simple', 2 => 'Normal', 3 => 'Complex', 4 => 'Special', 5 => 'Weekly');

/**
 * Required number of challenges beaten to move up to each tier.
 * Make sure the first one is always 0...
 */
$tierChallengeRequirements = array(0, 5, 10, 15, 20, 25, 30);



/**
 * Unlock Types
 */
define('UNLOCK_WALL_COLOR', 1);
define('UNLOCK_WALL_EMBLEM', 2);
define('UNLOCK_DISPLAY_COLOR', 3);
define('UNLOCK_WALL_ORIENTATION', 4);
define('UNLOCK_EXTRAS', 8);
// MISC SUBTYPES:

define('MISC_UNLOCK_INSANE_SPEED', 1);

/**
 * Achievement Types
 */
define('ACHIEVEMENT_MOVES_CAREER', 1);
define('ACHIEVEMENT_MAZE_CAREER', 2);
define('ACHIEVEMENT_MAZE_MASTERY', 3);
define('ACHIEVEMENT_CHAMPION_POINTS', 4);
define('ACHIEVEMENT_PERFECT_DAY', 5);

define('ACHIEVEMENT_TUTORIAL', 32);
 
 
 
?>