Address other PR comments (consistent-cel7-disable)

This commit is contained in:
SpectralFlame 2022-06-09 08:24:40 -05:00 committed by cyip92
parent 74a1e9abfd
commit 61debf676e
3 changed files with 4 additions and 4 deletions

View File

@ -29,6 +29,7 @@ GameDatabase.celestials.teresa = {
id: 4,
price: 1e10,
description: "Unlock \"Undo\" of equipping a Glyph.",
isDisabledInDoomed: true
},
startEU: {
id: 5,

View File

@ -229,7 +229,7 @@ export default {
/>
</template>
<template #tooltipContent>
<b :class="{ 'o-pelle-disabled': isDoomed }">
<b :class="{ 'o-pelle-disabled': unlockInfo.pelleDisabled }">
{{ format(unlockInfo.price, 2, 2) }}: {{ unlockInfo.description }}
</b>
</template>

View File

@ -59,9 +59,8 @@ export default {
this.undoSlotsAvailable = this.respecIntoProtected
? Glyphs.totalSlots - GameCache.glyphInventorySpace.value - Glyphs.inventoryList.length > 0
: GameCache.glyphInventorySpace.value > 0;
this.undoVisible = TeresaUnlocks.undo.canBeApplied && !this.isDoomed;
this.undoAvailable = this.undoVisible && this.undoSlotsAvailable &&
player.reality.glyphs.undo.length > 0 && !this.isDoomed;
this.undoVisible = TeresaUnlocks.undo.canBeApplied;
this.undoAvailable = this.undoVisible && this.undoSlotsAvailable && player.reality.glyphs.undo.length > 0;
},
glyphPositionStyle(idx) {
const angle = 2 * Math.PI * idx / this.slotCount;