crafted consumable basic duration now affected by material tiers.
This commit is contained in:
parent
baa55fd567
commit
e04ee5134d
1 changed files with 1 additions and 2 deletions
3
craft.js
3
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 )]);
|
||||
|
|
Loading…
Reference in a new issue