From 36d099b2256304dadab1bd0f3bc29d5a749e282d Mon Sep 17 00:00:00 2001 From: hppeng-wynn <77039964+hppeng-wynn@users.noreply.github.com> Date: Tue, 15 Nov 2022 13:11:38 -0800 Subject: [PATCH] Fix behavior of -cost and +cost to match ingame rolling (#234) Co-authored-by: hppeng --- js/build_utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/build_utils.js b/js/build_utils.js index a65dc22..ad17293 100644 --- a/js/build_utils.js +++ b/js/build_utils.js @@ -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));