Skip to content

Commit

Permalink
Fix display bug with consumable active
Browse files Browse the repository at this point in the history
  • Loading branch information
Pseudonian committed Feb 2, 2025
1 parent da7ac77 commit 261cd0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UpdateVisuals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
import { CalcECC } from './Challenges'
import { version } from './Config'
import type { IMultiBuy } from './Cubes'
import { BuffType, calculateEventSourceBuff, consumableEventBuff, eventBuffType, getEvent } from './Event'
import { BuffType, consumableEventBuff, eventBuffType, getEvent, getEventBuff } from './Event'
import type { hepteractTypes } from './Hepteracts'
import { hepteractTypeList } from './Hepteracts'
import { activeConsumables, happyHourEndTime } from './Login'
Expand Down Expand Up @@ -1817,7 +1817,7 @@ export const visualUpdateEvent = () => {
DOMCacheGetOrSet('globalEventName').textContent = `(${event.name.length}) - ${event.name.join(', ')}`

for (let i = 0; i < eventBuffType.length; i++) {
const eventBuff = calculateEventSourceBuff(BuffType[eventBuffType[i]])
const eventBuff = getEventBuff(BuffType[eventBuffType[i]])

if (eventBuff !== 0) {
DOMCacheGetOrSet(`eventBuff${eventBuffType[i]}`).style.display = 'flex'
Expand Down

0 comments on commit 261cd0b

Please sign in to comment.