auto-look when quitting mid chargen

This commit is contained in:
InspectorCaracal 2024-04-22 11:08:08 -06:00 committed by GitHub
parent 7f41e5a649
commit 7589aaf760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))