Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Feb 4, 2025
1 parent 1915831 commit bc14f24
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
32 changes: 32 additions & 0 deletions src/Corruptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,38 @@ export class CorruptionLoadout {
get totalCorruptionAscensionMultiplier () {
return this.#totalScoreMult
}

get deflation () {
return this.#levels.deflation
}

get extinction () {
return this.#levels.extinction
}

get recession () {
return this.#levels.recession
}

get viscosity () {
return this.#levels.viscosity
}

get illiteracy () {
return this.#levels.illiteracy
}

get drought () {
return this.#levels.drought
}

get hyperchallenge () {
return this.#levels.hyperchallenge
}

get dilation () {
return this.#levels.dilation
}
}

export type SavedCorruption = {
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/Dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const statValues: ((el: HTMLElement) => void)[] = [
(el) => el.textContent = format(player.challenge15Exponent, 0),
(el) => el.textContent = player.runeBlessingLevels.slice(1, 6).map((x) => format(x)).join(' / '),
(el) => el.textContent = player.runeSpiritLevels.slice(1, 6).map((x) => format(x)).join(' / '),
(el) => el.textContent = player.corruptions.used.loadout.join(' / '),
(el) => el.textContent = '',
(el) => el.textContent = player.challengecompletions.slice(1, 6).join(' / '),
(el) => el.textContent = player.challengecompletions.slice(6, 11).join(' / '),
(el) => el.textContent = player.runelevels.join(' / '),
Expand Down
4 changes: 2 additions & 2 deletions src/saves/PlayerJsonSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export const playerJsonSchema = playerSchema.extend({

corruptions: z.any().transform((stuff: Player['corruptions']) => {
return {
used: stuff.used.getLoadout(),
next: stuff.next.getLoadout(),
used: stuff.used.loadout,
next: stuff.next.loadout,
saves: Object.fromEntries(
stuff.saves.getSaves().map((save: { name: string; loadout: CorruptionLoadout }) => {
return [save.name, save.loadout.loadout]
Expand Down
2 changes: 1 addition & 1 deletion src/types/Synergism.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import type {
BlueberryInventoryCache
} from '../StatCache'
import type { Tabs } from '../Tabs'
import type { Corruptions } from '../Corruptions'
import type { Corruptions, CorruptionLoadout } from '../Corruptions'

type ArrayStartingWithNull<T> = [null, ...T[]]

Expand Down

0 comments on commit bc14f24

Please sign in to comment.