basis for currently unachievable secret achievement display

This commit is contained in:
Omsi 2022-05-23 08:27:22 -07:00
parent 01bec6e9cb
commit d4e3441db6
6 changed files with 18 additions and 4 deletions

View File

@ -35,7 +35,10 @@ GameDatabase.achievements.secret = [
}, },
checkRequirement: () => AchievementTimers.pain checkRequirement: () => AchievementTimers.pain
.check(PlayerProgress.eternityUnlocked() && Notations.current.isPainful, 600), .check(PlayerProgress.eternityUnlocked() && Notations.current.isPainful, 600),
checkEvent: GAME_EVENT.GAME_TICK_AFTER checkEvent: GAME_EVENT.GAME_TICK_AFTER,
get isAchievable() {
return PlayerProgress.eternityUnlocked();
}
}, },
{ {
id: 17, id: 17,
@ -99,7 +102,13 @@ GameDatabase.achievements.secret = [
{ {
id: 28, id: 28,
name: "Nice.", name: "Nice.",
description: "Don't act like you don't know what you did." description: "Don't act like you don't know what you did.",
get isAchievable() {
return Autobuyer.dimboost.isUnlocked ||
Autobuyer.galaxy.isUnlocked ||
Autobuyer.bigCrunch.isUnlocked ||
PlayerProgress.eternityUnlocked();
}
}, },
{ {
id: 31, id: 31,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -2658,6 +2658,10 @@ screen and (max-width: 480px) {
border-color: black; border-color: black;
} }
.o-achievement--unachievable {
background-image: url("../images/achunachievable.png");
}
.o-achievement--blink { .o-achievement--blink {
animation: a-achievement--blink 2s step-start 0s infinite; animation: a-achievement--blink 2s step-start 0s infinite;
} }

View File

@ -36,6 +36,7 @@ export default {
return { return {
"o-achievement": true, "o-achievement": true,
"o-achievement--hidden": !this.isUnlocked, "o-achievement--hidden": !this.isUnlocked,
"o-achievement--unachievable": this.config.isAchievable === false,
"o-achievement--unlocked": this.isUnlocked, "o-achievement--unlocked": this.isUnlocked,
"o-achievement--secret": true "o-achievement--secret": true
}; };
@ -94,10 +95,10 @@ export default {
{{ config.name }} (S{{ id }}) {{ config.name }} (S{{ id }})
</div> </div>
<div <div
v-if="isUnlocked" v-if="isUnlocked || config.isAchievable === false"
class="o-achievement__tooltip__description" class="o-achievement__tooltip__description"
> >
{{ config.description }} {{ isUnlocked ? config.description : "You need to progress further before you can unlock this Achievement." }}
</div> </div>
</template> </template>
</div> </div>