projects
/
mudpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Relocate choose_gender menu function
[mudpy.git]
/
mudpy
/
menu.py
diff --git
a/mudpy/menu.py
b/mudpy/menu.py
index
e67dd04
..
b385198
100644
(file)
--- 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 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])