From 41a5459ef95d3ee3960e39b58d5515082b296ac2 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 1 Jun 2018 09:09:14 -0400 Subject: [PATCH 1/6] Making some names more consistent --- stroll.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/stroll.html b/stroll.html index 7f952f0..95722b1 100644 --- a/stroll.html +++ b/stroll.html @@ -686,7 +686,7 @@
  • - +
  • @@ -696,7 +696,7 @@
  • - +
  • @@ -724,7 +724,7 @@
  • - +
  • @@ -760,7 +760,7 @@
  • - +
  • @@ -817,7 +817,7 @@
  • - +
  • @@ -827,7 +827,7 @@
  • - +
  • @@ -851,7 +851,7 @@
  • - +
  • @@ -867,19 +867,19 @@
    Areas are ratios; 1 means stomping 100 people catches 100 in stench
  • - +
  • - +
  • - +
  • - +
  • @@ -903,7 +903,7 @@
  • - +
  • @@ -948,12 +948,12 @@
  • - +
  • - +
  • @@ -1009,7 +1009,7 @@
  • - +
  • From 733329447bbcd15a112c6dcd464bb08b39caca16 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 1 Jun 2018 09:16:52 -0400 Subject: [PATCH 2/6] Fixed inner list elements being too wide --- style.css | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index ee89e80..15c1885 100644 --- a/style.css +++ b/style.css @@ -326,8 +326,7 @@ body.dark input[type="checkbox"]:checked+ display: none; } -.flex-outer li, -.flex-inner { +.flex-outer li { display: flex; flex-wrap: wrap; align-items: center; @@ -392,7 +391,7 @@ body.light .flex-outer input[type="checkbox"]:checked + label:not(.custom-header display: flex; flex-wrap: wrap; align-items: center; - width: 80%; + width: 400px; } body.light .has-tooltip { From b541cfcaf6cabab459dce9be4cee73b5adf9e135 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 1 Jun 2018 09:32:34 -0400 Subject: [PATCH 3/6] Fixed soldiers not counting as living --- recursive-macro.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recursive-macro.js b/recursive-macro.js index 4387946..d78d89a 100644 --- a/recursive-macro.js +++ b/recursive-macro.js @@ -227,11 +227,12 @@ function initContents(name,count) { return result; } + function get_living_prey(sum) { let total = 0; for (let key in sum) { if (sum.hasOwnProperty(key)) { - if (key == "Micro" || key == "Macro" || key == "Person" || key == "Cow") + if (key == "Micro" || key == "Macro" || key == "Person" || key == "Cow" || key == 'Soldier') total += sum[key]; } } From 339f0192f4085668c500a9a94f2678de5c31afff Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 1 Jun 2018 09:47:20 -0400 Subject: [PATCH 4/6] Fixed stomps ignoring footwear when molten --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index 98f31db..09c6898 100644 --- a/game.js +++ b/game.js @@ -1913,7 +1913,7 @@ function chew() function stomp() { - if (macro.gooMolten) { + if (macro.gooMolten && !macro.footShoeWorn && !macro.footSockWorn) { stomp_goo(); return; } From 302db782d2712aaad9545475630944771da1eeb5 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 1 Jun 2018 09:50:37 -0400 Subject: [PATCH 5/6] Fixed flooding showing too few prey --- recursive-desc.js | 2 +- units.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/recursive-desc.js b/recursive-desc.js index 7f35d2b..9b866d0 100644 --- a/recursive-desc.js +++ b/recursive-desc.js @@ -874,7 +874,7 @@ function defaultFlood(container, macro, verbose) { if (container.count == 0) { return "Your gooey body melts and floods outward..but doesn't catch anything."; } else { - return "Your gooey body melts and floods outward, burying " + container.describe(verbose) + " in your thick, slimy self. You slowly reform, grinning as you feel the " + numberRough(container.count, "of") + " prey sloshing about within."; + return "Your gooey body melts and floods outward, burying " + container.describe(verbose) + " in your thick, slimy self. You slowly reform, grinning as you feel " + numberRough(get_living_prey(container.sum()), "of") + " prey sloshing about within."; } } diff --git a/units.js b/units.js index 46afcd3..ea7faf7 100644 --- a/units.js +++ b/units.js @@ -33,6 +33,8 @@ function numberRough(value,suffix="") { case 2: return prefix + "millions " + suffix; case 3: return prefix + "billions " + suffix; case 4: return prefix + "trillions " + suffix; + case 5: return prefix + "quadrillions " + suffix; + case 6: return prefix + "quintillions " + suffix; default: return "uncountably many"; } } From fc7ba45b45c6c4e27477cae9d7f282f1d7a46aa9 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 1 Jun 2018 10:00:38 -0400 Subject: [PATCH 6/6] Full numbers still go to scientific once they get sufficiently large --- units.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/units.js b/units.js index ea7faf7..ba55251 100644 --- a/units.js +++ b/units.js @@ -43,7 +43,11 @@ function numberRough(value,suffix="") { function number(value, type="full", precision=3) { var val = parseFloat(value); switch(type) { - case "full": return val.toString(); + case "full": + if (Math.log(value) / Math.log(10) < 10) { + return val.toString(); + } + case "scientific": return val.toExponential(precision).toString(); case "words": return number_words_repeated(val); case "prefix": return number_prefix(val);