From bd37b154913ed7c75abe08ec6a66945849f705be Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 21 May 2022 16:25:36 -0500 Subject: rename essence value to amount --- src/cleaners/skyblock/essence.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cleaners/skyblock/essence.ts b/src/cleaners/skyblock/essence.ts index 4af94fb..19f43c1 100644 --- a/src/cleaners/skyblock/essence.ts +++ b/src/cleaners/skyblock/essence.ts @@ -1,9 +1,8 @@ import typedHypixelApi from 'typed-hypixel-api' -import * as constants from '../../constants.js' interface EssenceType { id: string - value: number + amount: number } export interface Essence { @@ -13,11 +12,11 @@ export interface Essence { export function cleanEssence(data: typedHypixelApi.SkyBlockProfileMember): Essence { const essences: EssenceType[] = [] - for (const [id, value] of Object.entries(data ?? {})) { + for (const [id, amount] of Object.entries(data ?? {})) { if (id.startsWith('essence_')) { essences.push({ id: id.replace(/^essence_/, ''), - value: value ?? 0, + amount: amount ?? 0, }) } } -- cgit