-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunlocks.ts
77 lines (71 loc) · 1.2 KB
/
unlocks.ts
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
import { ResourcesState } from "./types";
export interface Unlock {
label: string;
effects: Partial<ResourcesState>;
}
export interface Unlocks {
[key: string]: Unlock;
}
export const unlocks: Unlocks = {
brave: {
label: "You're brave enough to play Super TASball!",
effects: {},
},
// CPU upgrades
cpu4: {
label: "You bought a 4Hz CPU!",
effects: {
freq: 4,
},
},
cpu8: {
label: "You bought a 8Hz CPU!",
effects: {
freq: 8,
},
},
cpu16: {
label: "You bought a 16Hz CPU!",
effects: {
freq: 16,
},
},
cpu30: {
label: "You bought a 30Hz CPU!",
effects: {
freq: 30,
},
},
cpu60: {
label: "You bought a 60Hz CPU!",
effects: {
freq: 60,
},
},
// ROM upgrades
rom20: {
label: "You bought a 20-op ROM!",
effects: {
codeSize: 20,
},
},
rom40: {
label: "You bought a 40-op ROM!",
effects: {
codeSize: 40,
},
},
rom100: {
label: "You bought a 100-op ROM!",
effects: {
codeSize: 100,
},
},
rom250: {
label: "You bought a 250-op ROM!",
effects: {
codeSize: 250,
},
},
};
export type UnlockName = keyof typeof unlocks;