From b10c2e5c7bd70c5b628b8a2e2b33c1db26d4c0c7 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 28 Dec 2018 19:36:49 -0600 Subject: [PATCH] Added more shoes and socks. Note: remove this duplicated code later. --- features.js | 12 ++++++++++++ game.js | 29 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/features.js b/features.js index 063a257..843216e 100644 --- a/features.js +++ b/features.js @@ -739,6 +739,10 @@ options = [ { "name": "Socks", "value": "sock" + }, + { + "name": "Stockings", + "value": "stocking" } ] } @@ -772,6 +776,14 @@ options = [ "name": "Sandals", "value": "sandal" }, + { + "name": "High Heels", + "value": "heel", + }, + { + "name": "Crocs", + "value": "croc" + } ] } ] diff --git a/game.js b/game.js index 28ddb33..2a20db7 100644 --- a/game.js +++ b/game.js @@ -116,11 +116,21 @@ let macro = case "sandal": result = plural ? "sandals" : "sandal"; break; + case "heel": + return plural ? "high heels" : "high heel"; + break; + case "croc": + return plural ? "crocs" : "croc"; + break; } } else if (this.footSockWorn) { switch(this.footSock) { case "sock": result = "socked " + this.footOnlyDesc(plural,false); + break; + case "stocking": + result = "stocking-wrapped " + this.footOnlyDesc(plural, false); + break; } } @@ -186,11 +196,21 @@ let macro = case "sandal": result = plural ? "treads" : "tread"; break; + case "heel": + return plural ? "high heels" : "high heel"; + break; + case "croc": + return plural ? "crocs" : "croc"; + break; } } else if (this.footSockWorn) { switch(this.footSock) { case "sock": result = "socked " + this.toeOnlyDesc(plural,false); + break; + case "stocking": + result = "stocking-wrapped " + this.footOnlyDesc(plural, false); + break; } } @@ -215,6 +235,12 @@ let macro = case "sandal": result = plural ? "sandals" : "sandal"; break; + case "heel": + return plural ? "high heels" : "high heel"; + break; + case "croc": + return plural ? "crocs" : "croc"; + break; } return capital ? result.charAt(0).toUpperCase() + result.slice(1) : result; }, @@ -225,6 +251,9 @@ let macro = case "sock": result = plural ? "socks" : "sock"; break; + case "stocking": + result = plural ? "stockings" : "stocking"; + break; } return capital ? result.charAt(0).toUpperCase() + result.slice(1) : result; },