Skip to content

Commit

Permalink
fixed incorrect name with gender loss for traveler
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Nov 27, 2022
1 parent 57da2fd commit 8db1145
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "enkanetwork",
"version": "1.2.0",
"version": "1.2.1",
"description": "NodeJS/TypeScript api wrapper data from https://enka.network/",
"main": "./dist/index.js",
"module": "./dist/index.js",
Expand Down
9 changes: 7 additions & 2 deletions src/models/characters/character.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,13 @@ export class Character {
)
return charactersAssets[x];
})
.filter((x) => x)[0]; //This is a temporary solution that first came to mind please don't hit.
console.log(characterAsset);
.find(
(x) =>
x?.iconName ==
(character.avatarId == 10000007
? "UI_AvatarIcon_PlayerGirl"
: "UI_AvatarIcon_PlayerBoy")
); //This is a temporary solution that first came to mind please don't hit.
const characterLocalization =
charactersLocalizations[characterAsset.nameTextMapHash];
this.id = character.avatarId;
Expand Down

0 comments on commit 8db1145

Please sign in to comment.