From 2a3dc6695d3c3d3149ba79b50e8102182b6b9594 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 28 Feb 2018 17:22:54 -0500 Subject: [PATCH] Added menu options for victim types; removed location chooser --- game.js | 24 ++++++------------------ stroll.html | 46 ++++++++++++++++++++++++++++++++-------------- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/game.js b/game.js index dbc0fda..d32f6c7 100644 --- a/game.js +++ b/game.js @@ -1,6 +1,7 @@ "use strict"; /*jshint browser: true*/ +/*jshint devel: true*/ let errored = false; @@ -12,7 +13,7 @@ window.onerror = function(msg, source, lineno, colno, error) { console.log(navigator.userAgent); } -} +}; // do da dark mode @@ -48,7 +49,7 @@ let numbers = "full"; let verbose = true; -let biome = "suburb"; +let biome = "city"; let newline = " "; @@ -116,7 +117,7 @@ let macro = break; case "avian": result = plural ? "talons" : "talon"; - breka; + break; } return capital ? result.charAt(0).toUpperCase() + result.slice(1) : result; }, @@ -969,18 +970,6 @@ function toggle_auto() update(["You stop walking.",newline]); } -function change_location() -{ - switch(biome) { - case "suburb": biome = "city"; break; - case "city": biome = "downtown"; break; - case "downtown": biome = "rural"; break; - case "rural": biome = "suburb"; break; - } - - document.getElementById("button-location").innerHTML = "Location: " + biome.charAt(0).toUpperCase() + biome.slice(1); -} - function toggle_units() { switch(unit) { @@ -2190,7 +2179,7 @@ function pouch_rub() let line = describe("pouch-rub", prey, macro, verbose); let linesummary = summarize(prey.sum(), false); - update([line,linesummary,newline]) + update([line,linesummary,newline]); } function pouch_eat() @@ -2569,7 +2558,7 @@ function saveSettings() { let form = document.forms.namedItem("custom-species-form"); for (let i=0; i
Brutality
-
    -
  • - - -
  • +
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    +
+ +
+
Victims
+
  • - - + +
  • - - + +
  • - - + +
  • - -
    +
    Misc
  • - +
  • @@ -241,6 +258,7 @@ +