@@ -38,7 +38,6 @@ import {
3838 visualUpdateAchievements ,
3939 visualUpdateAnts ,
4040 visualUpdateBuildings ,
41- visualUpdateCampaign ,
4241 visualUpdateChallenges ,
4342 visualUpdateCorruptions ,
4443 visualUpdateCubes ,
@@ -531,11 +530,9 @@ export const hideStuff = () => {
531530 DOMCacheGetOrSet ( 'ants' ) . style . display = 'none'
532531 DOMCacheGetOrSet ( 'anttab' ) . style . backgroundColor = ''
533532 DOMCacheGetOrSet ( 'cubetab' ) . style . backgroundColor = ''
534- DOMCacheGetOrSet ( 'campaigntab' ) . style . backgroundColor = ''
535- DOMCacheGetOrSet ( 'campaigns' ) . style . display = 'none'
536- DOMCacheGetOrSet ( 'traitstab' ) . style . backgroundColor = ''
533+ DOMCacheGetOrSet ( 'corruptiontab' ) . style . backgroundColor = ''
537534 DOMCacheGetOrSet ( 'cubes' ) . style . display = 'none'
538- DOMCacheGetOrSet ( 'traits ' ) . style . display = 'none'
535+ DOMCacheGetOrSet ( 'corruption ' ) . style . display = 'none'
539536 DOMCacheGetOrSet ( 'singularity' ) . style . display = 'none'
540537 DOMCacheGetOrSet ( 'singularitytab' ) . style . backgroundColor = ''
541538 DOMCacheGetOrSet ( 'event' ) . style . display = 'none'
@@ -609,15 +606,10 @@ export const hideStuff = () => {
609606 DOMCacheGetOrSet ( 'cubes' ) . style . display = 'flex'
610607 DOMCacheGetOrSet ( 'cubetab' ) . style . backgroundColor = 'white'
611608 }
612- if ( G . currentTab === Tabs . Campaign ) {
613- DOMCacheGetOrSet ( 'campaigns' ) . style . display = 'block'
614- DOMCacheGetOrSet ( 'campaigntab' ) . style . backgroundColor = 'red'
615- }
616609 if ( G . currentTab === Tabs . Corruption ) {
617- DOMCacheGetOrSet ( 'traits ' ) . style . display = 'flex '
618- DOMCacheGetOrSet ( 'traitstab ' ) . style . backgroundColor = 'white'
610+ DOMCacheGetOrSet ( 'corruption ' ) . style . display = 'block '
611+ DOMCacheGetOrSet ( 'corruptiontab ' ) . style . backgroundColor = 'white'
619612 }
620-
621613 if ( G . currentTab === Tabs . Singularity ) {
622614 DOMCacheGetOrSet ( 'singularity' ) . style . display = 'block'
623615 DOMCacheGetOrSet ( 'singularitytab' ) . style . backgroundColor = 'lightgoldenrodyellow'
@@ -650,7 +642,6 @@ const visualTab: Record<Tabs, () => void> = {
650642 [ Tabs . Shop ] : visualUpdateShop ,
651643 [ Tabs . AntHill ] : visualUpdateAnts ,
652644 [ Tabs . WowCubes ] : visualUpdateCubes ,
653- [ Tabs . Campaign ] : visualUpdateCampaign ,
654645 [ Tabs . Corruption ] : visualUpdateCorruptions ,
655646 [ Tabs . Singularity ] : visualUpdateSingularity ,
656647 [ Tabs . Event ] : visualUpdateEvent ,
@@ -1037,23 +1028,6 @@ export const updateChallengeLevel = (k: number) => {
10371028 }
10381029} */
10391030
1040- export const showCorruptionStatsLoadouts = ( ) => {
1041- const statsButton = DOMCacheGetOrSet ( 'corrStatsBtn' )
1042- const corrLoadoutsButton = DOMCacheGetOrSet ( 'corrLoadoutsBtn' )
1043-
1044- if ( player . corruptions . showStats ) {
1045- DOMCacheGetOrSet ( 'corruptionStats' ) . style . display = 'flex'
1046- DOMCacheGetOrSet ( 'corruptionLoadouts' ) . style . display = 'none'
1047- statsButton . classList . add ( 'subtab-active' )
1048- corrLoadoutsButton . classList . remove ( 'subtab-active' )
1049- } else {
1050- DOMCacheGetOrSet ( 'corruptionStats' ) . style . display = 'none'
1051- DOMCacheGetOrSet ( 'corruptionLoadouts' ) . style . display = 'flex'
1052- statsButton . classList . remove ( 'subtab-active' )
1053- corrLoadoutsButton . classList . add ( 'subtab-active' )
1054- }
1055- }
1056-
10571031const updateAscensionStats = ( ) => {
10581032 let t = player . ascensionCounter
10591033 // Division by 0 is not defined
0 commit comments