-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainboosts.js
More file actions
255 lines (252 loc) · 6.08 KB
/
Copy pathmainboosts.js
File metadata and controls
255 lines (252 loc) · 6.08 KB
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
/*
*
* Mouse Pro
*
* Main Boosts.js
*/
(function (Game, Display, Boosts, Friends, Shop, Tabs) {
Boosts.newBoost({
name: 'Redundant Mouse Mover',
icon: 'mouse-pointer',
getDescription: function() { return 'This addon gives you ' + this.bonusXp + ' MM XP when MM XP ends in 0 or 5' },
shortName: 'rmm',
cost: {
xp: {
MM: 110,
MC: 11
}
},
bonusXp: 3
});
Boosts.newBoost({
name: 'Redundant Mouse clicker',
icon: 'mouse-pointer',
getDescription: function() { return 'This addon gives you ' + this.bonusXp + ' MC XP when MC XP ends in 0 or 5'; },
shortName: 'rmc',
cost: {
xp: {
MM: 85,
MC: 14
}
},
bonusXp: 3
});
Boosts.newBoost({
name: 'Redundant XP Transfer',
icon: 'exchange-alt fa-rotate-90',
getDescription: function() { return 'This addon gives you ' + this.bonusXp + ' XP in the other proficiency when you level up one'; },
shortName: 'rxt',
cost: {
xp: {
MM: 299,
MC: 23
}
},
bonusXp: 20
});
Boosts.newBoost({
name: 'Settings',
icon: 'cogs',
getDescription: function() { return 'Let\'s tune this thing'; },
shortName: 'settings',
cost: {
levels: {
MM: 1,
MC: 1
}
},
buy: function () {
Tabs.unlock('game');
Tabs.unlock('settings');
Tabs.unlock('log');
Tabs.toggleActiveTabTo('game');
}
});
Boosts.newBoost({
name: 'Addon Enhancer',
icon: 'star',
getDescription: function() {
return 'Multiplies the effects of Redundant Mouse Mover, Redundant Mouse Clicker and Redundant XP Transfer addons by '
+ (this.isUnlocked() ? this.getPower() * 2 : this.getPower());
},
shortName: 'addonenhancer',
cost: {
levels: {
MM: 10,
MC: 10
}
},
power: 1,
buy: function (thisBoost) {
thisBoost.saveableState.power *= 2;
if (!Shop.has('friends'))
Shop.unlock('friends');
}
});
Boosts.newBoost({
name: 'Friends',
icon: 'user-friends',
getDescription: function() { return this.bought ? 'Friends are AWESOOOME!!' : 'It\'s dangerous to go alone. Take this!'; },
shortName: 'friends',
cost: {
levels: {
MM: 10,
MC: 10
}
}
});
Boosts.newBoost({
name: 'RXT Injector - Down',
icon: 'arrow-down',
getDescription: function() { return 'Redundant XP Transfer will give MC XP based on the MM level attained when it triggers.'; },
shortName: 'rxtinjectordown',
hasXP: true,
xpNeededToBeFull: 10,
xpBarColor: 'red',
isFullXP: function (me) {
if (!Shop.has('blutloader')) {
Shop.unlock('blutloader');
} else {
me.isFullXP = () => {};
}
},
cost: {
levels: {
MM: 15,
MC: 15
}
}
});
Boosts.newBoost({
name: 'RXT Injector - Up',
icon: 'arrow-up',
getDescription: function() { return 'Redundant XP Transfer will give MM XP based on the MC level attained when it triggers.'; },
shortName: 'rxtinjectorup',
hasXP: true,
xpNeededToBeFull: 10,
xpBarColor: 'red',
isFullXP: function (me) {
if (!Shop.has('blutloader')) {
Shop.unlock('blutloader');
} else {
me.isFullXP = () => {};
}
},
cost: {
levels: {
MM: 15,
MC: 15
}
}
});
Boosts.newBoost({
name: 'Bootloader',
icon: 'download',
getDescription: function() { return 'Kickstarts MM with '+Display.beautify(this.getMMXp()) +' xp and MC with '+Display.beautify(this.getMCXp()) + ' xp when they level up'; },
shortName: 'bootloader',
hasXP: true,
xpNeededToBeFull: 10,
xpBarColor: 'red',
getMMXp: function() {
let baseXp = 10;
if (Shop.has('blutloader')){
baseXp *= Math.floor(Game.currency('blood').getXp());
}
if (Shop.has('digitalsacrifice')) {
baseXp *= 1 + Math.pow(1.1, Shop.boost('sacrifice-mm').getPower());
}
return baseXp;
},
getMCXp: function() {
let baseXp = 10;
if (Shop.has('blutloader')){
baseXp *= Math.floor(Game.currency('blood').getXp());
}
if (Shop.has('digitalsacrifice')) {
baseXp *= 1 + Math.pow(1.1, Shop.boost('sacrifice-mc').getPower());
}
return baseXp;
},
isFullXP: function(me) {
if (!Shop.has('digitalsacrifice')) {
Shop.unlock('digitalsacrifice');
} else {
me.isFullXP = () => {};
}
},
cost: {
levels: {
MM: 2,
MC: 2
}
}
});
Boosts.newBoost({
name: 'Vitrine',
icon: 'tv',
getDescription: function() { return 'A nice place to show off what achievements you have.'; },
shortName: 'vitrine',
cost: {
levels: {
MM: 5,
MC: 5
}
},
buy: function() {
Tabs.unlock('achievements');
}
});
Boosts.newBoost({
name: 'Outer glow',
icon: 'lightbulb outer-glow fa-lighter',
getDescription: function() { return 'Multiplies the effect of Redundant XP Transfer by the corresponding friend\'s level. Can only be bought when MC xp is even.'; },
shortName: 'outerglo',
cost: {
levels: {
MM: 20,
MC: 20
}
},
canBuy: function() {
return (Game.currency('MC').saveableState.xp % 2 == 0);
}
});
Boosts.newBoost({
name: 'Stats',
icon: 'chart-bar',
getDescription: function() { return 'You know numbers. Here you can look at them.'; },
shortName: 'stats',
cost: {
xp: {
MM: 123,
MC: 123
}
},
buy: function() {
Tabs.unlock('stats');
}
});
Boosts.newBoost({
name: 'Ephemeral Anchor',
icon: 'anchor',
isActivable: true,
getDescription: function() {
let desc = 'Ephemeral boosts live for twice as long before disappearing.';
if (!this.isBought()) {
desc += '<br>Toggleable on/off.';
} else if (this.isActive()) {
desc += '<div class="btn" onclick="gameObjects.Game.getModule(\'bip\').toggleBoost(\'anchor\')">Turn off</div>';
} else {
desc += '<div class="btn" onclick="gameObjects.Game.getModule(\'bip\').toggleBoost(\'anchor\')">Turn on</div>'
}
return desc;
},
shortName: 'anchor',
cost: {
xp: {
MM: 1024,
MC: 1024
}
}
});
})(gameObjects.Game, gameObjects.Display, gameObjects.Boosts, gameObjects.Friends, gameObjects.Shop, gameObjects.Tabs);