armor material tier affect on health hotfix

This commit is contained in:
ferricles 2021-01-28 00:01:34 -08:00
parent 1baf242602
commit f5c0a13749
2 changed files with 3 additions and 4 deletions

View file

@ -22,9 +22,7 @@ class Craft{
setHash(hash) {
this.hash = hash;
console.log(hash);
this.statMap.set("displayName", "CR-" + this.hash);
console.log(this.statMap.get("displayName"));
}
/* Get all stats for this build. Stores in this.statMap.
@pre The craft itself should be valid. No checking of validity of pieces is done here.
@ -206,6 +204,9 @@ class Craft{
statMap.set(skp_elements[(skp_elements.indexOf(name.charAt(0)) + 4 )% 5] + "Def", (statMap.get(skp_elements[(skp_elements.indexOf(name.charAt(0)) + 4 )% 5]+"Def") || 0) - powder["defMinus"]);
}
}
low = Math.floor(low * matmult);
high = Math.floor(high * matmult);
statMap.set("hp",low+"-"+high);
}
/* END SECTION */

View file

@ -244,7 +244,6 @@ function encodeCraft() {
}
function decodeCraft(url_tag) {
if (url_tag) {
console.log(url_tag);
let info = url_tag.split("_");
let version = info[0];
let tag = info[1];
@ -264,7 +263,6 @@ function decodeCraft(url_tag) {
toggleMaterial("mat-1-"+mat_tiers[0]);
toggleMaterial("mat-2-"+mat_tiers[1]);
atkSpd = Base64.toInt(tag.substring(15));
console.log(atkSpd);
let atkSpdButtons = ["slow-atk-button", "normal-atk-button", "fast-atk-button"];
toggleAtkSpd(atkSpdButtons[atkSpd]);