From 336b15fe0102f3135b51c95060a75b65a88f5de7 Mon Sep 17 00:00:00 2001 From: raeleus Date: Sun, 5 Jan 2025 23:59:44 -0800 Subject: [PATCH] Added the combination to the failure message for lockpicking. --- Input.js | 2 +- Output.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Input.js b/Input.js index d5f5e19..1682770 100644 --- a/Input.js +++ b/Input.js @@ -84,6 +84,7 @@ const blockSynonyms = ["block", "parry", "nullify", "invalidate"] const repeatTurnSynonyms = ["repeatturn", "repeat"] const basicDeckSynonyms = ["basicdeck", "stragedybasicdeck"] const cardShopSynonyms = ["cardshop", "stragedyshop", "cardstore", "stragedystore"] +const spellShopSynonyms = ["spellshop", "spellstore"] const stragedySynonyms = ["stragedy", "playgame", "game", "startgame", "begingame", "playcards", "playstragedy", "startstragedy", "beginstragedy"] const lockpickSynonyms = ["lockpick", "lockpicking", "codebreaker", "pick", "hack", "hacking", "mastermind"] const addCardSynonyms = ["addcard"] @@ -1327,7 +1328,6 @@ function doLockpick(command) { for (let i = 0; i < state.lockpickingSlots; i++) { state.lockpickingCombination += getRandomFromList("r", "y", "w", "g", "o", "b") } - log(state.lockpickingCombination) return " " } diff --git a/Output.js b/Output.js index 848715b..f90ef41 100644 --- a/Output.js +++ b/Output.js @@ -571,10 +571,6 @@ function mapReplace(map, x, y, character) { } function handleLockpicking() { - var character = getCharacter() - var haveWord = character.name == "You" ? "have" : "has" - var possessiveName = getPossessiveName(character.name) - var text = " " switch (state.lockpickingTurn) { case "intro": @@ -599,7 +595,8 @@ Enter your guess below by typing the letter for each color. Type "q" to quit: text = `You solved the combination with ${state.lockpickingGuesses} ${state.lockpickingGuesses == 1 ? "guess" : "guesses"}!` break case "lose": - text = `After ${state.lockpickingGuesses} ${state.lockpickingGuesses == 1 ? "guess" : "guesses"}, you were unable to solve the combination...` + text = `After ${state.lockpickingGuesses} ${state.lockpickingGuesses == 1 ? "guess" : "guesses"}, you were unable to solve the combination... +The combination was ${state.lockpickingCombination}` break case "forfeit": text = "You decided to give up on solving the combination."