Add prettyprint to long copy
This commit is contained in:
parent
4b4bb1ccf9
commit
e96cd3c9ce
2 changed files with 11 additions and 11 deletions
|
@ -1002,8 +1002,8 @@ function displaySpellDamage(parent_elem, overallparent_elem, build, spell, spell
|
|||
}
|
||||
save_damages.push(averageDamage);
|
||||
}
|
||||
else if (part.type == "heal") {
|
||||
let heal_amount = (part.strength * build.getDefenseStats()[0] * Math.max(0, Math.min(1.75, 1 + 0.5 * stats.get("wDamPct")/100))).toFixed(2);
|
||||
else if (part.type === "heal") {
|
||||
let heal_amount = (part.strength * build.getDefenseStats()[0] * Math.max(0.5,Math.min(1.75, 1 + 0.5 * stats.get("wDamPct")/100)).toFixed(2));
|
||||
let healLabel = document.createElement("p");
|
||||
healLabel.textContent = heal_amount;
|
||||
healLabel.classList.add("damagep");
|
||||
|
|
18
test.js
18
test.js
|
@ -592,15 +592,15 @@ function shareBuild() {
|
|||
if (player_build) {
|
||||
let text = url_base+location.hash+"\n"+
|
||||
"WynnBuilder build:\n"+
|
||||
player_build.helmet.get("displayName")+"\n"+
|
||||
player_build.chestplate.get("displayName")+"\n"+
|
||||
player_build.leggings.get("displayName")+"\n"+
|
||||
player_build.boots.get("displayName")+"\n"+
|
||||
player_build.ring1.get("displayName")+"\n"+
|
||||
player_build.ring2.get("displayName")+"\n"+
|
||||
player_build.bracelet.get("displayName")+"\n"+
|
||||
player_build.necklace.get("displayName")+"\n"+
|
||||
player_build.weapon.get("displayName");
|
||||
"> "+player_build.helmet.get("displayName")+"\n"+
|
||||
"> "+player_build.chestplate.get("displayName")+"\n"+
|
||||
"> "+player_build.leggings.get("displayName")+"\n"+
|
||||
"> "+player_build.boots.get("displayName")+"\n"+
|
||||
"> "+player_build.ring1.get("displayName")+"\n"+
|
||||
"> "+player_build.ring2.get("displayName")+"\n"+
|
||||
"> "+player_build.bracelet.get("displayName")+"\n"+
|
||||
"> "+player_build.necklace.get("displayName")+"\n"+
|
||||
"> "+player_build.weapon.get("displayName")+" ["+player_build.weapon.get("powders").map(x => powderNames.get(x)).join("")+"]";
|
||||
copyTextToClipboard(text);
|
||||
document.getElementById("share-button").textContent = "Copied!";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue