From 7589aaf760c2090f52012944df2607a2e3ff5eea Mon Sep 17 00:00:00 2001 From: InspectorCaracal <51038201+InspectorCaracal@users.noreply.github.com> Date: Mon, 22 Apr 2024 11:08:08 -0600 Subject: [PATCH] auto-look when quitting mid chargen --- evennia/contrib/rpg/character_creator/character_creator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/evennia/contrib/rpg/character_creator/character_creator.py b/evennia/contrib/rpg/character_creator/character_creator.py index 994093b427..7fae70332d 100644 --- a/evennia/contrib/rpg/character_creator/character_creator.py +++ b/evennia/contrib/rpg/character_creator/character_creator.py @@ -85,7 +85,10 @@ class ContribCmdCharCreate(MuxAccountCommand): # this gets called every time the player exits the chargen menu def finish_char_callback(session, menu): char = session.new_char - if not char.db.chargen_step: + if char.db.chargen_step: + # this means the character creation process was exited in the middle + account.execute_cmd("look") + else: # this means character creation was completed - start playing! # execute the ic command to start puppeting the character account.execute_cmd("ic {}".format(char.key))