Add advice to "exit" command by itself for "quit" command to quit the game
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -333,6 +333,10 @@ class GoTrigger(Trigger):
|
||||
if not item_name:
|
||||
otrigger = match["trigger"].lower().capitalize()
|
||||
game.say(f"{otrigger} where?")
|
||||
if otrigger.lower() == "exit":
|
||||
# I really really really hate this hack, but regex can only go so far
|
||||
# perhaps a real parser is in order :I
|
||||
game.say("{{Perhaps you meant ((quit))}}{{ to leave the game?}}")
|
||||
return
|
||||
item = game.room.search_item_name(item_name)
|
||||
if item and GO in item.triggers and item.revealed:
|
||||
|
||||
Reference in New Issue
Block a user