dev update

This commit is contained in:
Nick Walton
2019-11-25 18:16:12 -07:00
parent e2703e535c
commit ce78610ce0
+5 -3
View File
@@ -53,7 +53,8 @@ def select_game():
def instructions():
text = "\nAI Dungeon 2 Instructions:"
text += '\n* Enter actions starting with a verb ex. "go to the tavern" or "attack the orc."'
text += '\n* If you want to say something then enter \'say "(thing you want to say)"\''
text += '\n* To speak enter \'say "(thing you want to say)"\' or just "(thing you want to say)" '
text += '\n* Enter "revert" for any action if you want to undo the last action and result."
text += '\n* Finally if you want to end your game and start a new one just enter "restart" for any action. '
return text
@@ -99,9 +100,10 @@ def play_aidungeon_2():
story_manager.story.results = story_manager.story.results[:-1]
print("Last action reverted. ")
print(story_manager.story.results[-1])
elif action[0] == '"':
action = "You say " + action
if action != "":
elif action != "":
action = action.strip()
action = action[0].lower() + action[1:]