Skip to content

Commit

Permalink
Bug Fix - Al Kharid Passing Out Task
Browse files Browse the repository at this point in the history
  • Loading branch information
David Busey authored and David Busey committed Dec 25, 2024
1 parent 77b9f90 commit 02cbb67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ suspend fun CharacterContext.dialogue(player: Player, npc: NPC? = getGuard(playe
npc<Talk>("You must pay a toll of 10 gold coins to pass.")
choice {
option<Quiz>("Okay, I'll pay.") {
player["passing_out_task"] = true
if (!player.inventory.contains("coins", 10)) {
player<Upset>("Oh dear I don't actually seem to have enough money.")
} else {
val gate = getGate(player)
player.mode = Interact(player, gate, ObjectOption(player, gate, gate.def, "Pay-toll(10gp)"))
player["passing_out_task"] = true
}
}
option<Uncertain>("Who does my money go to?") {
Expand Down

0 comments on commit 02cbb67

Please sign in to comment.