-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathachevements.js
108 lines (88 loc) · 2.62 KB
/
achevements.js
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
107
108
Achievement = {};
Achievement.Var = {};
Achievement.Get = {};
/*
*Code in this file is pretty self explanatory.
*But for all the idiots out there that don't know JS here you go,
*Achievement.Var is used as the yes or no the player has the achievement. Simple code here folks.
*Achievement.Get is used for (obviously) getting the achievement.
*And then Achievement is the main superclass for this whole file.
*/
Achievement.Time = 0;
Achievement.Var.MinedStone = 0;
Achievement.Var.MinedIron = 0;
Achievement.Var.DugDirt = 0;
Achievement.Var.DugSod = 0;
Achievement.Var.ChopTree = 0;
Achievement.Var.ChoppedLeaves = 0;
Achievement.Var.PunchedAPig = 0;
Achievement.Var.CheaterCheater = 0;
Achievement.Var.MinedStone = 0;
Achievement.Var.MasterMiner = 0;
Achievement.Var.MasterUpgrader = 0;
Achievement.Var.Upgrading = 0;
/*Achievement.Alert = function(text){
alert("Achievement Get: " + text);
}
Old Alert System
*/
Achievement.Alert = function(text){
Achievement.TEXT = text;
document.getElementById('StatusBar').innerHTML = ("<p>Achievement Get: " + Achievement.TEXT + "</p>");
Achievement.Time = 0;
};
Achievement.Get.MinedStone = function(){
Achievement.Alert("Mined Stone");
Achievement.Var.MinedStone = 1;
Quest.Current++;
};
Achievement.Get.MinedIron = function(){
Achievement.Alert("Mined Iron");
Achievement.Var.MinedIron = 1;
Quest.Current++;
};
Achievement.Get.DugDirt = function(){
Achievement.Alert("Dug Dirt");
Achievement.Var.DugDirt = 1;
Quest.Current++;
};
Achievement.Get.DugSod = function(){
Achievement.Alert("Dug Sod");
Achievement.Var.DugSod = 1;
Quest.Current++;
};
Achievement.Get.ChoppedTree = function(){
Achievement.Alert("Chopped A Tree");
Achievement.Var.ChopTree = 1;
Quest.Current++;
};
Achievement.Get.ChoppedLeaves = function(){
Achievement.Alert("Chopped Leaves");
Achievement.Var.ChoppedLeaves = 1;
Quest.Current++;
};
Achievement.Get.PunchedAPig = function(){
Achievement.Alert("OMG! Pig Killer!");
Achievement.Var.PunchedAPig = 1;
Quest.Current++;
};
Achievement.Get.CheaterCheater = function(){
Achievement.Alert("Master Cheater, Epic!");
Achievement.Var.CheaterCheater = 1;
Quest.Current++;
};
Achievement.Get.MasterMiner = function(){
Achievement.Alert("You are now the master miner!\nGo forth and claim your land!");
Achievement.Var.MasterMiner = 1;
Quest.Current++;
};
Achievement.Get.Upgrading = function(){
Achievement.Alert("You Upgraded Something! Good Job!");
Achievement.Var.Upgrading = 1;
Quest.Current++;
};
Achievement.Get.MasterUpgrader = function(){
Achievement.Alert("Master Upgrader! Upgrade Something 100 Times!");
Achievement.Var.MasterUpgrader = 1;
Quest.Current++;
};