crafted consumable basic duration now affected by material tiers.

This commit is contained in:
ferricles 2021-03-24 00:24:52 -07:00
parent baa55fd567
commit e04ee5134d

View file

@ -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 )]);