mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-05 05:00:26 -04:00
Added the combination to the failure message for lockpicking.
This commit is contained in:
parent
88f0d3b5fe
commit
336b15fe01
2 changed files with 3 additions and 6 deletions
2
Input.js
2
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 " "
|
||||
}
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue