-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathupdates.js
268 lines (216 loc) · 6.25 KB
/
updates.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
Game.updates = (function(){
var instance = {};
instance.entries = [];
instance.versionNumber = 1;
instance.updateRead = false;
instance.updateTitleTemplate = Handlebars.compile(['<div id="updateAlert" class="alert alert-info alert-dismissible fade in">',
'<button href="#" class="close btn.btn-info" data-dismiss="alert" aria-label="close">Close</button>',
'<strong>New Update!</strong> These are the features since you last played:<br>',
'<ul id="updateLog"></ul>',
'</div>'].join('\n'));
instance.updateTemplate = Handlebars.compile('<li><span>{{desc}}</span></li>');
instance.initialise = function(){
if(metal != 0){
var extra = 0;
var target = $('#updateBox');
var html = this.updateTitleTemplate();
target.append($(html));
for(var id in Game.updatesData) {
if(this.entries.length < 5){
this.createDisplay(Game.updatesData[id]);
}
else{
extra += 1;
}
}
if(extra > 0){
var extraUpdates = {
desc: '+' + extra + ' more. Click the version number to see the full changelog.',
read: false
}
this.createDisplay(extraUpdates);
}
if(this.updateRead === false){
document.getElementById("updateAlert").className = "hidden";
}
} else {
for(var id in Game.updatesData) {
Game.updatesData[id].read = true;
}
}
}
instance.createDisplay = function(self){
if(self.read == false){
this.entries.push(self);
var target = $('#updateLog');
var html = this.updateTemplate(self);
target.append($(html));
self.read = true;
this.updateRead = true;
}
}
instance.save = function(data){
data.updates = {versionNumber: 1, entries: {}};
for(var id in Game.updatesData){
data.updates.entries[id] = Game.updatesData[id];
}
}
instance.load = function(data){
if(data.updates) {
if(data.updates.versionNumber && data.updates.versionNumber == 1){
Game.updates.versionNumber = data.versionNumber;
for(var id in data.updates.entries){
Game.updatesData[id] = data.updates.entries[id];
}
}
}
}
instance.getUpdateData = function(id) {
return Game.updatesData[id];
};
return instance;
}());
Game.updatesData = (function(){
var instance = {};
instance.nerfEnergyEff = {
desc: 'Nerfed Energy Efficiency to be 100x cheaper, but only go up to 25%',
read: false
};
instance.batteryEff = {
desc: 'Battery Efficiency Upgrade increases your battery storage by 1% (max 50)',
read: false
};
instance.effResearchLevel = {
desc: 'Changed Efficiency researches to show current level instead of next level',
read: false
};
instance.buffBattEff = {
desc: 'Buffed Battery Efficiency to go up to 200 levels instead of 50.',
read: false
};
instance.redDestroy = {
desc: 'More -> Graphics Options. Added option to turn destroy buttons red.',
read: false
};
instance.nerfRocketFuelResearch = {
desc: 'Increased the Science cost of Rocket Fuel researches',
read: false
};
instance.rocketFuelT3 = {
desc: 'Added Hydrazine Catalyst - T3 Rocket Fuel',
read: false
};
instance.achievFormat = {
desc: 'Added Achievement Number Formatting',
read: false
};
instance.splash = {
desc: 'There are now 100 Loading Messages!',
read: false
};
instance.stargazeIntro = {
desc: 'Barebones + Intro added for Stargaze tab',
read: false
};
instance.irs = {
desc: 'Added Interstellar Radar Scanner (Interstellar -> Comms)',
read: false
};
instance.ranks = {
desc: 'Added Achievement Ranks',
read: false
};
instance.lunarite = {
desc: 'Changed Space Metal to Lunarite',
read: false
};
instance.hideWonder = {
desc: 'The Wonder Tab hides itself when completed (makes space for more tabs)',
read: false
};
instance.dmCounter = {
desc: 'Dark Matter is now calculated and shown.',
read: false
};
instance.hideButton = {
desc: 'You can unhide completed tabs if wanted. More -> Graphics Options.',
read: false
};
instance.achivementsReset = {
desc: 'Achievements have been reset, you will get back any you are currently over the level needed for.',
read: false
};
instance.relationUpgrades = {
desc: 'Rebirth Upgrades now give relationship for upgrading them.',
read: false
};
instance.fixSecondRebirth = {
desc: 'Fixed Subsequent Rebirths. You can now rebirth more than once without fear of save corruption!',
read: false
};
instance.T5Batteries = {
desc: 'Added Tier 5 Batteries: Stargaze -> Kitrinos Corporation',
read: false
};
instance.memoryLeak = {
desc: 'Fixed Huge Memory Leak. The Game should run much smoother now and use much less CPU' ,
read: false
};
instance.multiSpheres = {
desc: 'Each Star System Conquered allows you to build a sphere.',
read: false
};
instance.autoEmc = {
desc: 'Added Auto Emc! Stargaze -> Prasnian Empire',
read: false
};
instance.respec = {
desc: 'Keep your DM upgrades and have the ability to respec.',
read: false
};
instance.segmentAndSphere = {
desc: 'Build 250 Segments and Dyson Sphere Button',
read: false
};
instance.meteoriteTier34 = {
desc: 'Meteorite Tiers 3 and 4. Stargaze -> Moviton Syndicate',
read: false
};
instance.buffCapitalShip = {
desc: 'Buffed Capital Ship\' power and defense.',
read: false
};
instance.dmStats = {
desc: 'Live counter showing how much DM you will get from each section',
read: false
};
instance.energyEffBug = {
desc: 'Fixed the 25/50 max Energy Efficiency Bug',
read: false
};
instance.buffOilT3 = {
desc: 'Reduced Oil T3 energy cost',
read: false
};
instance.dmBoostMultiplicative = {
desc: 'Made Science and Resource Efficiency multiplicative with dark matter boost',
read: false
};
instance.antimatterDMBoost = {
desc: 'Fixed Antimatter not being affected by DM Boost',
read: false
};
instance.starListExpansion = {
desc: 'Massively expanded the list of star systems that can be traveled to and conquered in the interstellar tab',
read: false
};
instance["0511"] = {
desc: 'Fixed several UI issues after rebirth with the interstellar tab',
read: false
};
instance.loadScreenInvert = {
desc: 'Inverted the loading screen colours to help night-time players retain their eyesight',
read: false
}
return instance;
}());