Browse Source

let's call it v1.01

alaah 6 years ago
parent
commit
ca485f5363
3 changed files with 12 additions and 2 deletions
  1. 6 2
      public/index.html
  2. 1 0
      public/script.js
  3. 5 0
      public/style.css

+ 6 - 2
public/index.html

@@ -11,6 +11,7 @@
       <a href="https://docs.google.com/spreadsheets/d/1TxHlmb7zKaXEcbKbqoPMMUzOEdp_LLM-RMcdqH7-mpM">stat spreadsheet</a>
       <a href="https://discord.gg/deadcells">discord</a>
       <a href="https://steamcommunity.com/workshop/filedetails/?id=1424703267">alaahmods</a>
+      <a href="https://gitlab.com/alaah/calc">source</a>
     </div>
 
     <div class="content">
@@ -101,10 +102,10 @@
 
         <button style="margin-top: 5px;" onclick="reset();">Reset</button>
 
-        <div class="yay">HP: <span id="result">-</span></div>
+        <div class="yay">HP: <span id="result"></span></div>
         <div class="yay" id="capdiv" style="display: none;">Damage cap: <span id="hardcap">-</span></div>
 
-        <h2 style="margin-top: 120px;">What am I looking at?</h2>
+        <h2 style="margin-top: 50px;">What am I looking at?</h2>
         <div class="walloftext">A calculator for hidden HP scaling of Dead Cells mobs.</div>
 
         <h2>How accurate is this?</h2>
@@ -115,5 +116,8 @@
         <h2>Why is HP a range?</h2>
         <div class="walloftext">Mob HP/damage values are calculated according to your stats once you enter a level. When you collect new scrolls in the level, mob values aren't updated but the player's getting stronger. To counteract this, the game strengthens the mobs relatively to the room's distance from the level entrance. Longer levels are more affected (Ancient Sewers the most), while boss rooms aren't.
     </div>
+    <footer>
+        v1.01
+    </footer>
   </body>
 </html>

+ 1 - 0
public/script.js

@@ -167,6 +167,7 @@ function init() {
 
 function reset() {
     document.getElementById('frm').reset();
+    document.getElementById('result').innerHTML = '—';
     stats = [1, 1, 1];
     diff = 0;
     mob = -1;

+ 5 - 0
public/style.css

@@ -6,6 +6,11 @@ body {
     max-width: 1280px;
 }
 
+footer {
+    margin-top: 10px;
+    font-size: 7px;
+}
+
 .navbar {
     max-width: 1280px;
 }