From e04ee5134d57e915e3ec41b25a226dd4b27aed4a Mon Sep 17 00:00:00 2001 From: ferricles Date: Wed, 24 Mar 2021 00:24:52 -0700 Subject: [PATCH] crafted consumable basic duration now affected by material tiers. --- craft.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/craft.js b/craft.js index 1f65c59..6ff3331 100644 --- a/craft.js +++ b/craft.js @@ -179,9 +179,8 @@ class Craft{ if (statMap.get("category") === "consumable") { if(allNone) { statMap.set("hp", Math.floor( low * matmult )+ "-" + Math.floor( high * matmult )); - } else { - statMap.set("duration", [Math.floor( statMap.get("duration")[0] * matmult ), Math.floor( statMap.get("duration")[1] * matmult )]); } + statMap.set("duration", [Math.floor( statMap.get("duration")[0] * matmult ), Math.floor( statMap.get("duration")[1] * matmult )]); } else { //durability modifier statMap.set("durability", [Math.floor( statMap.get("durability")[0] * matmult ), Math.floor( statMap.get("durability")[1] * matmult )]);