mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 14:07:16 +02:00
Clean up some of the methods on the script parent system. I have no idea why I was being silly and passing things around through dictionaries. Yick. Also added a at_player_creation method to basicplayer.py that is triggered after player objects are created and ready to go, but before they are logged in.
This commit is contained in:
parent
4af854271a
commit
b3c386a2c3
5 changed files with 43 additions and 42 deletions
|
|
@ -340,6 +340,10 @@ class ObjectManager(models.Manager):
|
|||
"owner": None}
|
||||
user_object = self.create_object(odat)
|
||||
|
||||
# The User and player Object are ready, do anything needed by the
|
||||
# game to further prepare things.
|
||||
user_object.scriptlink.at_player_creation()
|
||||
|
||||
# Activate the player's session and set them loose.
|
||||
command.session.login(user)
|
||||
print 'Registration: %s' % (command.session, user_object.get_name())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue