fix a bug where its looking for ShinyStats.json instead of shiny_stats.json (blame clion refactoring)
This commit is contained in:
parent
041dc62684
commit
deb174f338
6 changed files with 14 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -22,4 +22,4 @@ product/
|
|||
|
||||
releases
|
||||
id_keys.json
|
||||
ShinyStats.json
|
||||
shiny_stats.json
|
||||
|
|
|
@ -17,8 +17,7 @@ run `cargo install idmangler-cli`.
|
|||
## Usage
|
||||
- Move the program to some folder along with config.json . Download these three files and place them next to the program:
|
||||
- https://raw.githubusercontent.com/Wynntils/Static-Storage/main/Reference/id_keys.json
|
||||
- https://raw.githubusercontent.com/Wynntils/Static-Storage/main/Data-Storage/ShinyStats.json
|
||||
|
||||
- https://raw.githubusercontent.com/Wynntils/Static-Storage/main/Data-Storage/shiny_stats.json
|
||||
- Open a terminal (Windows: use cmd or Powershell , Linux: use your preferred Terminal Emulator)
|
||||
- Use the command "cd DIRECTORY" (where DIRECTORY is where the program is stored)
|
||||
- read the provided config markdown file to understand how to edit config.json
|
||||
|
|
|
@ -3,8 +3,14 @@
|
|||
**Name** is stored as a String. It must be a valid Wynncraft item for it to display as intended.
|
||||
## Shiny ID
|
||||
Inside the Shiny{} list, there will be two elements: "key" and "value".
|
||||
The potential keys for any shiny value are listed here: https://raw.githubusercontent.com/Wynntils/Static-Storage/main/Data-Storage/ShinyStats.json
|
||||
The potential keys for any shiny value are listed here: https://raw.githubusercontent.com/Wynntils/Static-Storage/main/Data-Storage/shiny_stats.json
|
||||
The value is the shown amount.
|
||||
## Item type
|
||||
WIP. This will support crafteds in the future, but for now you must have this:
|
||||
```
|
||||
"item_type": "Gear"
|
||||
```
|
||||
|
||||
## Powders
|
||||
|
||||
### Powder Limit
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"There are also some values you cannot increase beyond a limit."
|
||||
],
|
||||
"name":"Singularity",
|
||||
"item_type": "Gear",
|
||||
"shiny": {
|
||||
"key": "playersKilled",
|
||||
"value": 9223372036854775807
|
||||
|
|
|
@ -20,11 +20,11 @@ pub enum Errorfr {
|
|||
IDMapJsonCorrupt,
|
||||
|
||||
/// shiny data json is missing
|
||||
#[error("Error 2.2: ShinyStats.json is missing. \nYou should run \"--download ShinyStats\" or \"--download All\".")]
|
||||
#[error("Error 2.2: shiny_stats.json is missing. \nYou should run \"--download ShinyStats\" or \"--download All\".")]
|
||||
ShinyJsonMissing,
|
||||
|
||||
/// shiny data json is corrupt
|
||||
#[error("Error 2.3: ShinyStats.json is corrupt. \nYou should run \"--download ShinyStats\" or \"--download All\".")]
|
||||
#[error("Error 2.3: shiny_stats.json is corrupt. \nYou should run \"--download ShinyStats\" or \"--download All\".")]
|
||||
ShinyJsonCorrupt,
|
||||
|
||||
/// could not download the file
|
||||
|
|
|
@ -76,11 +76,11 @@ impl From<String> for DownloadJsons {
|
|||
println!("download ID_KEYS");
|
||||
DownloadJsons::IdKeys
|
||||
}
|
||||
"ShinyStats" | "shinystats" | "ShinyStats.json" | "shinystats.json" => {
|
||||
"shiny_stats" | "shinystats" | "shiny_stats.json" | "shinystats.json" => {
|
||||
println!("download SHINY_STATS");
|
||||
DownloadJsons::ShinyStats
|
||||
}
|
||||
"All" | "everything" | "both" => {
|
||||
"all" | "everything" | "both" => {
|
||||
println!("download BOTH");
|
||||
DownloadJsons::All
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue