Browse Source

Merge pull request #6 from rEduxLin/master

some jsons, icons and localizations
pull/10/head
Algoinde GitHub 4 years ago
parent
commit
01b4eeb3ff
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7836 additions and 16 deletions
  1. +48
    -16
      api.md
  2. +1725
    -0
      store/characters.json
  3. +6063
    -0
      store/loc.json

+ 48
- 16
api.md View File

@@ -1,5 +1,13 @@
# Enka.Network - API # Enka.Network - API


## Table of Content

- [Getting Started](#getting-started)
- [Data Structure Info](#data-structure-info)
- [Definitions](#definitions)
- [Icons and Images](#icons-and-images)
- [Localizations](#localizations)

## Getting Started ## Getting Started


You can fetch JSON-data by doing request via URL - `https://enka.network/u/[UID]/__data.json` <br /> You can fetch JSON-data by doing request via URL - `https://enka.network/u/[UID]/__data.json` <br />
@@ -14,7 +22,8 @@ For example https://enka.network/u/700378769/__data.json


### playerInfo ### playerInfo


For any additional info, check the [Characters Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarExcelConfigData.json), includes IDs and other stuff.
For basic data of characters by ID, go to [store/characters.json](/store/characters.json). <br />
For any additional info, check the [Characters Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarExcelConfigData.json).


| Name | Description | | Name | Description |
| :--- | :--------- | | :--- | :--------- |
@@ -24,19 +33,19 @@ For any additional info, check the [Characters Data](https://github.com/Dimbreat
| namecardId | Profile Namecard ID | | namecardId | Profile Namecard ID |
| finishAchievementNum | Number of Completed Achievements | | finishAchievementNum | Number of Completed Achievements |
| towerFloorIndex | Abyss Floor | | towerFloorIndex | Abyss Floor |
| towerLevelIndex | Abyss Floor's Level |
| [showAvatarInfoList](#showavatarinfolist-showavatarinfo) | List of Character IDs and Levels |
| towerLevelIndex | Abyss Floor's Chamber |
| [showAvatarInfoList](#showavatarinfolist) | List of Character IDs and Levels |
| showNameCardIdList | List of Namecard IDs | | showNameCardIdList | List of Namecard IDs |
| profilePicture.avatarID | Character ID of Profile Picture | | profilePicture.avatarID | Character ID of Profile Picture |


#### showAvatarInfoList - ShowAvatarInfo
#### showAvatarInfoList


| Name | Description | | Name | Description |
| :--- | :--------- | | :--- | :--------- |
| avatarId | Character ID | | avatarId | Character ID |
| level | Character Level | | level | Character Level |


### avatarInfoList - AvatarInfo
### avatarInfoList


| Name | Description | | Name | Description |
| :--- | :---------- | | :--- | :---------- |
@@ -46,7 +55,7 @@ For any additional info, check the [Characters Data](https://github.com/Dimbreat
| skillDepotId | Character Skill Set ID <br />[Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"id"`| | skillDepotId | Character Skill Set ID <br />[Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"id"`|
| inherentProudSkillList | List of Unlocked Skill Ids <br />[Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"inherentProudSkillOpens"` | | inherentProudSkillList | List of Unlocked Skill Ids <br />[Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"inherentProudSkillOpens"` |
| skillLevelMap -> `{skill_id: level}`| Map of Skill Levels <br /> [Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"inherentProudSkillOpens"` | | skillLevelMap -> `{skill_id: level}`| Map of Skill Levels <br /> [Skills Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/AvatarSkillDepotExcelConfigData.json) -> `"inherentProudSkillOpens"` |
| [equipList](#equiplist-equip) | List of Equipments: Weapon, Ariftacts |
| [equipList](#equiplist) | List of Equipments: Weapon, Ariftacts |
| fetterInfo.expLevel | Character Friendship Level | | fetterInfo.expLevel | Character Friendship Level |


#### propMap #### propMap
@@ -57,17 +66,19 @@ For any additional info, check the [Characters Data](https://github.com/Dimbreat
| ival | Ignore it | | ival | Ignore it |
| val | Value of Property | | val | Value of Property |


#### equipList - Equip
#### equipList


| Name | Description | | Name | Description |
| :--- | :--------- | | :--- | :--------- |
| itemId | Equipment ID <br /> [Equipments Data](https://raw.githubusercontent.com/Dimbreath/GenshinData/master/ExcelBinOutput/GadgetExcelConfigData.json) -> `"id"` |
| itemId | Equipment ID <br /> [Artifacts Data](https://raw.githubusercontent.com/Dimbreath/GenshinData/master/ExcelBinOutput/ReliquaryExcelConfigData.json) -> `"id"` <br /> [Weapons Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/WeaponExcelConfigData.json) -> `"id"` |
| [weapon](#weapon) `[Weapon Only]` | Weapon Base Info | | [weapon](#weapon) `[Weapon Only]` | Weapon Base Info |
| [reliquary](#reliquary) `[Artifact Only]` | Artifact Base Info | | [reliquary](#reliquary) `[Artifact Only]` | Artifact Base Info |
| [flat](#flat) | Detailed Info of Equipment | | [flat](#flat) | Detailed Info of Equipment |


#### weapon #### weapon


For any additional info about weapons, check the [Weapons Data](https://github.com/Dimbreath/GenshinData/blob/master/ExcelBinOutput/WeaponExcelConfigData.json)

| Name | Description | | Name | Description |
| :--- | :---------- | | :--- | :---------- |
| level | Weapon Level | | level | Weapon Level |
@@ -77,6 +88,8 @@ For any additional info, check the [Characters Data](https://github.com/Dimbreat


#### reliquary #### reliquary


For any additional info about artifacts, check the [Artifacts Data](https://raw.githubusercontent.com/Dimbreath/GenshinData/master/ExcelBinOutput/ReliquaryExcelConfigData.json)

| Name | Description | | Name | Description |
| :--- | :---------- | | :--- | :---------- |
| level | Artifact Level `[1-21]` | | level | Artifact Level `[1-21]` |
@@ -84,18 +97,16 @@ For any additional info, check the [Characters Data](https://github.com/Dimbreat


#### flat #### flat


For any additional info about names, descriptions and etc, check the [TextMap Data](https://github.com/Dimbreath/GenshinData/tree/master/TextMap), includes any languages supported by game.

| Name | Description | | Name | Description |
| :--- | :---------- | | :--- | :---------- |
| nameTextHashMap | Hash for Equipment Name |
| setNameTextHashMap `[Artifact Only]`| Hash for Artifact Set Name |
| nameTextHashMap | Hash for Equipment Name <br /> Check [Localizations](#localizations) |
| setNameTextHashMap `[Artifact Only]`| Hash for Artifact Set Name <br /> Check [Localizations](#localizations)|
| rankLevel | Rarity Level of Equipment | | rankLevel | Rarity Level of Equipment |
| [reliquaryMainstat](#reliquarymainstat-reliquarysubstats-weaponstats) `[Artifact Only]` | Artifact Main Stat | | [reliquaryMainstat](#reliquarymainstat-reliquarysubstats-weaponstats) `[Artifact Only]` | Artifact Main Stat |
| [reliquarySubstats](#reliquarymainstat-reliquarysubstats-weaponstats) `[Artifact Only]` | List of Artifact Substats | | [reliquarySubstats](#reliquarymainstat-reliquarysubstats-weaponstats) `[Artifact Only]` | List of Artifact Substats |
| [weaponStats](#reliquarymainstat-reliquarysubstats-weaponstats) `[Weapon Only]`| List of Weapon Stat: Base ATK, Substat | | [weaponStats](#reliquarymainstat-reliquarysubstats-weaponstats) `[Weapon Only]`| List of Weapon Stat: Base ATK, Substat |
| [itemType](#itemtype) | Equipment Type: Weapon or Artifact|
| icon | Equipment Icon Name |
| [itemType](#itemtype) | Equipment Type: Weapon or Artifact |
| icon | Equipment Icon Name <br /> [Icon name usage](#icons-and-images)|
| [equipType](#equiptype) `[Artifact Only]` | Artifact Type | | [equipType](#equiptype) `[Artifact Only]` | Artifact Type |


#### reliquaryMainstat, reliquarySubstats, weaponStats #### reliquaryMainstat, reliquarySubstats, weaponStats
@@ -105,7 +116,6 @@ For any additional info about names, descriptions and etc, check the [TextMap Da
| mainPropId / appendPropID | Equipment Append Property Name. Check the [Definitions for Names](#appendprop)| | mainPropId / appendPropID | Equipment Append Property Name. Check the [Definitions for Names](#appendprop)|
| propValue | Property Value | | propValue | Property Value |



## Definitions ## Definitions


### Prop ### Prop
@@ -194,4 +204,26 @@ For any additional info about names, descriptions and etc, check the [TextMap Da
| FIGHT_PROP_WATER_ADD_HURT | Hydro DMG Bonus | | FIGHT_PROP_WATER_ADD_HURT | Hydro DMG Bonus |
| FIGHT_PROP_WIND_ADD_HURT | Anemo DMG Bonus | | FIGHT_PROP_WIND_ADD_HURT | Anemo DMG Bonus |
| FIGHT_PROP_ICE_ADD_HURT | Cryo DMG Bonus | | FIGHT_PROP_ICE_ADD_HURT | Cryo DMG Bonus |
| FIGHT_PROP_ROCK_ADD_HURT | Geo DMG Bonus |
| FIGHT_PROP_ROCK_ADD_HURT | Geo DMG Bonus |

## Icons and Images

You can get icons of characters, weapons and artifacts via Enka, by URL `https://enka.network/ui/[icon_name].png`.
Usually icon name starts with `"UI_"` or `"Skill_"` for [characters talents](#characters-talents-and-consts).
For example https://enka.network/ui/UI_AvatarIcon_Side_Ambor.png.

### Weapons and Artifacts

Go to [flat](#flat) and look for `icon`.

### Characters, Talents and Consts

Go to [store/characters.json](/store/characters.json) and look for anything related to "UI_XXXXXX" or "Skill_XXXXXX" by character ID.

## Localizations

You may notice `"NameTextMapHash"` in [store/characters.json](/store/characters.json), `"nameTextHashMap"` and `"setNameTextHashMap"` at [flat](#flat) that could be used as a key to get basic localization data of characters, weapons and artifacts from [store/loc.json](/store/loc.json).
Also you can get localization data of [AppendProp](#appendprop) by using property name as a key - `"FIGHT_PROP_HP"`, `"FIGHT_PROP_HEAL_ADD"` etc.

For any additional info about names, descriptions and etc, check the [TextMap Data](https://github.com/Dimbreath/GenshinData/tree/master/TextMap), only includes languages supported by game.


+ 1725
- 0
store/characters.json
File diff suppressed because it is too large
View File


+ 6063
- 0
store/loc.json
File diff suppressed because it is too large
View File


Loading…
Cancel
Save