Fix behavior of -cost and +cost to match ingame rolling (#234)
Co-authored-by: hppeng <hppeng>
This commit is contained in:
parent
f8c266db8d
commit
36d099b225
1 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,7 @@ function expandItem(item) {
|
|||
let val = (item[id] || 0);
|
||||
if (val > 0) { // positive rolled IDs
|
||||
if (reversedIDs.includes(id)) {
|
||||
maxRolls.set(id,idRound(val*0.3));
|
||||
maxRolls.set(id,idRound(val*0.7));
|
||||
minRolls.set(id,idRound(val*1.3));
|
||||
} else {
|
||||
maxRolls.set(id,idRound(val*1.3));
|
||||
|
@ -206,7 +206,7 @@ function expandItem(item) {
|
|||
} 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));
|
||||
minRolls.set(id,idRound(val*0.3));
|
||||
}
|
||||
else {
|
||||
maxRolls.set(id,idRound(val*0.7));
|
||||
|
|
Loading…
Reference in a new issue