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
|
releases
|
||||||
id_keys.json
|
id_keys.json
|
||||||
ShinyStats.json
|
shiny_stats.json
|
||||||
|
|
|
@ -17,8 +17,7 @@ run `cargo install idmangler-cli`.
|
||||||
## Usage
|
## Usage
|
||||||
- Move the program to some folder along with config.json . Download these three files and place them next to the program:
|
- 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/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)
|
- 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)
|
- 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
|
- 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.
|
**Name** is stored as a String. It must be a valid Wynncraft item for it to display as intended.
|
||||||
## Shiny ID
|
## Shiny ID
|
||||||
Inside the Shiny{} list, there will be two elements: "key" and "value".
|
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.
|
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
|
## Powders
|
||||||
|
|
||||||
### Powder Limit
|
### Powder Limit
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"There are also some values you cannot increase beyond a limit."
|
"There are also some values you cannot increase beyond a limit."
|
||||||
],
|
],
|
||||||
"name":"Singularity",
|
"name":"Singularity",
|
||||||
|
"item_type": "Gear",
|
||||||
"shiny": {
|
"shiny": {
|
||||||
"key": "playersKilled",
|
"key": "playersKilled",
|
||||||
"value": 9223372036854775807
|
"value": 9223372036854775807
|
||||||
|
|
|
@ -20,11 +20,11 @@ pub enum Errorfr {
|
||||||
IDMapJsonCorrupt,
|
IDMapJsonCorrupt,
|
||||||
|
|
||||||
/// shiny data json is missing
|
/// 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,
|
ShinyJsonMissing,
|
||||||
|
|
||||||
/// shiny data json is corrupt
|
/// 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,
|
ShinyJsonCorrupt,
|
||||||
|
|
||||||
/// could not download the file
|
/// could not download the file
|
||||||
|
|
|
@ -76,11 +76,11 @@ impl From<String> for DownloadJsons {
|
||||||
println!("download ID_KEYS");
|
println!("download ID_KEYS");
|
||||||
DownloadJsons::IdKeys
|
DownloadJsons::IdKeys
|
||||||
}
|
}
|
||||||
"ShinyStats" | "shinystats" | "ShinyStats.json" | "shinystats.json" => {
|
"shiny_stats" | "shinystats" | "shiny_stats.json" | "shinystats.json" => {
|
||||||
println!("download SHINY_STATS");
|
println!("download SHINY_STATS");
|
||||||
DownloadJsons::ShinyStats
|
DownloadJsons::ShinyStats
|
||||||
}
|
}
|
||||||
"All" | "everything" | "both" => {
|
"all" | "everything" | "both" => {
|
||||||
println!("download BOTH");
|
println!("download BOTH");
|
||||||
DownloadJsons::All
|
DownloadJsons::All
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue