From b6948592434bf715a5e6e47bffa50189490858b4 Mon Sep 17 00:00:00 2001 From: yuko1101 <68993883+yuko1101@users.noreply.github.com> Date: Sun, 19 May 2024 16:03:33 +0900 Subject: [PATCH] fixed the names of StarRail#pureFiction and of its type were not properly --- CHANGELOG.md | 4 ++++ src/models/StarRailUser.ts | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed3a3f5..d5365ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.7.0 +**This version includes Breaking Changes** +- Renamed StarRailUser#pureFiction to challengeInfo. +- Renamed PureFictionInfo to ChallengeInfo. # 1.6.0 **This version includes Breaking Changes** - Added StarRailUser#bookCount, StarRailUser#relicCount, and StarRailUser#musicCount. diff --git a/src/models/StarRailUser.ts b/src/models/StarRailUser.ts index 9b4a8ad..ff7c33d 100644 --- a/src/models/StarRailUser.ts +++ b/src/models/StarRailUser.ts @@ -24,7 +24,7 @@ export interface ForgottenHallInfo { } } -export interface PureFictionInfo { +export interface ChallengeInfo { level: number, stars: number, } @@ -51,7 +51,7 @@ class StarRailUser extends User { readonly musicCount: number; /** This will be null if the user has not yet unlocked Forgotten Hall. */ readonly forgottenHall: ForgottenHallInfo | null; - readonly pureFiction: PureFictionInfo | null; + readonly challengeInfo: ChallengeInfo | null; readonly simulatedUniverse: number; /** Whether the user displays characters in their showcase. */ readonly isDisplayCharacter: boolean; @@ -98,7 +98,7 @@ class StarRailUser extends User { maxLevel: challengeInfo.getAsNumberWithDefault(0, "scheduleMaxLevel"), }, }; - this.pureFiction = { + this.challengeInfo = { level: challengeInfo.getAsNumberWithDefault(0, "abyssLevel"), stars: challengeInfo.getAsNumberWithDefault(0, "abyssStarCount"), };