Skip to content

Commit

Permalink
fixed the names of StarRail#pureFiction and of its type were not prop…
Browse files Browse the repository at this point in the history
…erly
  • Loading branch information
yuko1101 committed May 19, 2024
1 parent 126cdea commit b694859
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/models/StarRailUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface ForgottenHallInfo {
}
}

export interface PureFictionInfo {
export interface ChallengeInfo {
level: number,
stars: number,
}
Expand All @@ -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;
Expand Down Expand Up @@ -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"),
};
Expand Down

0 comments on commit b694859

Please sign in to comment.