Merge pull request #3516 from InspectorCaracal/patch-22

Auto-look when quitting the chargen contrib menu
This commit is contained in:
Griatch 2024-04-27 20:42:55 +02:00 committed by GitHub
commit ab2e519f05
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))