armor material tier affect on health hotfix
This commit is contained in:
parent
1baf242602
commit
f5c0a13749
2 changed files with 3 additions and 4 deletions
5
craft.js
5
craft.js
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue