Added the combination to the failure message for lockpicking.

This commit is contained in:
raeleus 2025-01-05 23:59:44 -08:00
parent 88f0d3b5fe
commit 336b15fe01
2 changed files with 3 additions and 6 deletions

View file

@ -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 " "
}

View file

@ -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."