Skip to content

Commit aeaa7a3

Browse files
authored
Add option to show blobhole on other themes (#3439)
* Add option to show blobhole on other themes * This is fine * Change for consistency * I hope you are happy
1 parent e03a7b2 commit aeaa7a3

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

src/components/modals/options/AnimationOptionsModal.vue

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ export default {
2525
reality: false,
2626
background: false,
2727
blobSnowflakes: 16,
28-
isS11Active: false
28+
isS11Active: false,
29+
isBlackHoleUnlocked: false,
30+
blobHole: false,
31+
isS11Unlocked: false
2932
};
3033
},
3134
computed: {
@@ -63,6 +66,9 @@ export default {
6366
},
6467
blobSnowflakes(newValue) {
6568
player.options.animations.blobSnowflakes = parseInt(newValue, 10);
69+
},
70+
blobHole(newValue) {
71+
player.options.animations.blobHole = newValue;
6672
}
6773
},
6874
methods: {
@@ -76,6 +82,8 @@ export default {
7682
this.tachyonsUnlocked = this.realityUnlocked || Currency.tachyonParticles.gt(0);
7783
this.animatedThemeUnlocked = Theme.animatedThemeUnlocked;
7884
this.isS11Active = Theme.currentName() === "S11";
85+
this.isS11Unlocked = Themes.available().map(t => t.name).includes("S11");
86+
this.isBlackHoleUnlocked = BlackHoles.areUnlocked;
7987
8088
const options = player.options.animations;
8189
this.bigCrunch = options.bigCrunch;
@@ -85,6 +93,7 @@ export default {
8593
this.reality = options.reality;
8694
this.background = options.background;
8795
this.blobSnowflakes = options.blobSnowflakes;
96+
this.blobHole = options.blobHole;
8897
},
8998
adjustSliderValue(value) {
9099
this.blobSnowflakes = value;
@@ -125,6 +134,11 @@ export default {
125134
v-model="reality"
126135
text="Reality:"
127136
/>
137+
<ModalOptionsToggleButton
138+
v-if="isS11Unlocked && isBlackHoleUnlocked"
139+
v-model="blobHole"
140+
text="Always use Blobhole:"
141+
/>
128142
<div v-if="!isS11Active">
129143
<ModalOptionsToggleButton
130144
v-if="animatedThemeUnlocked"

src/components/tabs/black-hole/black-hole-animation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const BlackHoleAnimation = (function() {
114114
this.respawnTick = true;
115115
this.isInside = BlackHoles.areNegative;
116116
this.blob = blobs[Math.floor(Math.random() * blobs.length)];
117-
this.isBlob = Theme.currentName() === "S11";
117+
this.isBlob = Theme.currentName() === "S11" || player.options.animations.blobHole;
118118
}
119119

120120
static randomDistance() {

src/core/player.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,8 @@ window.player = {
840840
tachyonParticles: true,
841841
reality: true,
842842
background: true,
843-
blobSnowflakes: 16
843+
blobSnowflakes: 16,
844+
blobHole: false
844845
},
845846
confirmations: {
846847
armageddon: true,

0 commit comments

Comments
 (0)