You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/hooks/Placebo.cpp
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,10 @@
8
8
usingnamespacegeode::prelude;
9
9
usingnamespacehorrible::prelude;
10
10
11
+
inlinestaticconstexprauto id = "placebo";
12
+
11
13
inlinestatic Option const o = {
12
-
"placebo",
14
+
id,
13
15
"Placebo",
14
16
"A random chance that when you start a level, all the options you have enabled are disabled, or all the options you have disabled are enabled.\n<cy>Credit: tmdXD</c>",
15
17
category::misc,
@@ -35,7 +37,7 @@ void placeboEffect() {
35
37
};
36
38
37
39
class $modify(PlaceboLevelPage, LevelPage) {
38
-
HORRIBLE_DELEGATE_HOOKS(o.id);
40
+
HORRIBLE_DELEGATE_HOOKS(id);
39
41
40
42
voidonPlay(CCObject * sender) {
41
43
placeboEffect();
@@ -46,7 +48,7 @@ class $modify(PlaceboLevelPage, LevelPage) {
46
48
};
47
49
48
50
class $modify(PlaceboLevelInfoLayer, LevelInfoLayer) {
0 commit comments