Bump version, fix bug with nonexistent ids
This commit is contained in:
parent
9332d6575b
commit
b1f01b83a2
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue