From 70be7d0b8cc4f2bba92941a0427dfc800e7b417c Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sat, 26 May 2018 15:13:58 -0400 Subject: [PATCH] Fixed flexing toes with shoes only --- game.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/game.js b/game.js index 1de5b18..dfcc1c2 100644 --- a/game.js +++ b/game.js @@ -122,7 +122,7 @@ let macro = "toeNoShoeDesc": function(plural=false,capital=false) { let result = ""; - if (!this.footSockWorn && !this.footShoeWorn) { + if (!this.footSockWorn) { return this.toeOnlyDesc(plural,capital); } else if (this.footSockWorn) { switch(this.footSock) { @@ -130,6 +130,7 @@ let macro = result = "socked " + this.toeOnlyDesc(plural,false); } } + return capital ? result.charAt(0).toUpperCase() + result.slice(1) : result; }, @@ -1844,7 +1845,7 @@ function flex_toes() { } else if (macro.footShoeWorn) { prey = macro.shoe.container; if (macro.brutality > 0) { - macro.sock.container = new Container(); + macro.shoe.container = new Container(); } }