Bump version, fix bug with nonexistent ids
This commit is contained in:
parent
9332d6575b
commit
b1f01b83a2
2 changed files with 14 additions and 16 deletions
|
@ -17,7 +17,6 @@ function expandItem(item, powders){
|
|||
}
|
||||
}else{ //The item does not have fixed IDs.
|
||||
for (const id of rolledIDs){
|
||||
if(item[id]){
|
||||
if(item[id] > 0){ // positive rolled IDs
|
||||
minRolls.set(id,idRound(item[id]*0.3));
|
||||
maxRolls.set(id,idRound(item[id]*1.3));
|
||||
|
@ -36,7 +35,6 @@ function expandItem(item, powders){
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const id of nonRolledIDs){
|
||||
expandedItem.set(id,item[id]);
|
||||
}
|
||||
|
|
2
test.js
2
test.js
|
@ -11,7 +11,7 @@ console.log(url_tag);
|
|||
* END testing section
|
||||
*/
|
||||
|
||||
const BUILD_VERSION = "2.8";
|
||||
const BUILD_VERSION = "2.9";
|
||||
|
||||
document.getElementById("header").textContent = "Wynn build calculator "+BUILD_VERSION+" (db version "+DB_VERSION+")";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue