X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fmenu.py;fp=mudpy%2Fmenu.py;h=b3851986e61bf83db8a24373e9bb46ce4775c15a;hp=e67dd04285be82f7d1a846ca81facd5c8df3e567;hb=9dc3f8de8d178b629852c6a6cdbbfc81214e09b8;hpb=3241aeff1158a0c517bcc213f876b6b10ca03f41 diff --git a/mudpy/menu.py b/mudpy/menu.py index e67dd04..b385198 100644 --- a/mudpy/menu.py +++ b/mudpy/menu.py @@ -29,3 +29,8 @@ def checking_new_account_name_action_d(user): def checking_new_account_name_action_g(user): """Destroy the new account, the user asked to go back to name entry.""" return user.account.destroy() + + +def choose_gender_action(user): + """Set the avatar's gender to the selected value.""" + return user.avatar.set("gender", user.menu_choices[user.choice])