Merge branch 'dev' of https://github.com/hppeng-wynn/hppeng-wynn.github.io into dev
This commit is contained in:
commit
abe6f0fbe2
5 changed files with 17 additions and 4 deletions
|
@ -24618,7 +24618,6 @@
|
|||
},
|
||||
{
|
||||
"name": "Gale's Force",
|
||||
"set": "Air Hive",
|
||||
"tier": "Legendary",
|
||||
"type": "bow",
|
||||
"category": "weapon",
|
||||
|
@ -26582,6 +26581,7 @@
|
|||
},
|
||||
{
|
||||
"name": "Gale's Freedom",
|
||||
"set": "Air Hive",
|
||||
"tier": "Rare",
|
||||
"type": "chestplate",
|
||||
"category": "armor",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -52,7 +52,7 @@ function expandItem(item, powders) {
|
|||
maxRolls.set(id,idRound(val*1.3));
|
||||
minRolls.set(id,idRound(val*0.3));
|
||||
}
|
||||
} else if (val <= 0) { //negative rolled IDs
|
||||
} else if (val < 0) { //negative rolled IDs
|
||||
if (reversedIDs.includes(id)) {
|
||||
maxRolls.set(id,idRound(val*1.3));
|
||||
minRolls.set(id,idRound(val*0.7));
|
||||
|
@ -62,6 +62,11 @@ function expandItem(item, powders) {
|
|||
minRolls.set(id,idRound(val*1.3));
|
||||
}
|
||||
}
|
||||
else { // if val == 0
|
||||
// NOTE: DO NOT remove this case! idRound behavior does not round to 0!
|
||||
maxRolls.set(id,0);
|
||||
minRolls.set(id,0);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const id of nonRolledIDs) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const DB_VERSION = 88;
|
||||
const DB_VERSION = 89;
|
||||
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.jsA
|
||||
|
||||
let db;
|
||||
|
|
8
py_script/README.md
Normal file
8
py_script/README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
Process for getting new data:
|
||||
|
||||
1. run `python3 dump.py`. This will overwrite `dump.json` and `../ingreds.json`
|
||||
2. Copy `../old clean.json` or `../compress.json` into `updated.json`
|
||||
3. Run `python3 transform_merge.py`
|
||||
4. Run `python3 ing_transform_combine.py`
|
||||
5. Check validity (json differ or whatever)
|
||||
6. Copy `clean.json` and `compress.json` into toplevel for usage
|
Loading…
Reference in a new issue