From ce87d110c597fa52bdd398a63a09ed48c9258a7b Mon Sep 17 00:00:00 2001 From: ferricles Date: Sun, 22 May 2022 22:33:37 -0700 Subject: [PATCH] changed base dps display to be an icon --- builder/index.html | 4 ++-- css/wynnstyles.css | 5 +++++ js/sq2display.js | 8 +++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/builder/index.html b/builder/index.html index 2569df8..a95c665 100644 --- a/builder/index.html +++ b/builder/index.html @@ -276,8 +276,8 @@
-
- base dps: 0 +
+ 0
0 diff --git a/css/wynnstyles.css b/css/wynnstyles.css index 1a87e2f..f1fb62a 100644 --- a/css/wynnstyles.css +++ b/css/wynnstyles.css @@ -34,6 +34,7 @@ Wynn-Related CSS } + /* Tier Colors */ .Normal { @@ -132,6 +133,10 @@ Wynn-Related CSS /* Damages */ +.Damage:before { + content: "\1F5E1"; +} + .Damage { color: rgb(255, 198, 85) } diff --git a/js/sq2display.js b/js/sq2display.js index 07715d5..d825b84 100644 --- a/js/sq2display.js +++ b/js/sq2display.js @@ -495,11 +495,12 @@ function displaysq2ExpandedItem(item, parent_id){ let base_dps_min = total_damages[0] * damage_mult; let base_dps_max = total_damages[1] * damage_mult; - base_dps_elem.textContent = "Base DPS: "+base_dps_min.toFixed(3)+"\u279c"+base_dps_max.toFixed(3); + // base_dps_elem.textContent = "Base DPS: "+base_dps_min.toFixed(3)+"\u279c"+base_dps_max.toFixed(3); + base_dps_elem.textContent = base_dps_min.toFixed(3)+"\u279c"+base_dps_max.toFixed(3); } else { let bdps = total_damages * damage_mult; - base_dps_elem.textContent = "Base DPS: " + (bdps ? bdps : 0); + base_dps_elem.textContent = (bdps ? bdps : 0); } parent_div.appendChild(document.createElement("p")); parent_div.appendChild(base_dps_elem); @@ -589,7 +590,8 @@ function displaysq2WeaponStats(build) { tot /= 2; let dps = Math.max(0, Math.round(tot * baseDamageMultiplier[attackSpeeds.indexOf(item.get("atkSpd"))] )); //atkspeeds - document.getElementById("weapon-dps").textContent = "base dps: " + (isNaN(dps) ? 0 : dps); + // document.getElementById("weapon-dps").textContent = "base dps: " + (isNaN(dps) ? 0 : dps); + document.getElementById("weapon-dps").textContent = (isNaN(dps) ? 0 : dps); document.getElementById("weapon-lv").textContent = item.get("lvl"); if (item.get("type")) {