Fixed character swap mechanisms. Created an example command @puppet for switching control between characters (note that it does not currently check permissions, nor make sure the target has the appropriate cmdsets).

This commit is contained in:
Griatch 2010-10-18 21:07:26 +00:00
parent 922a7d5064
commit 9459178c43
8 changed files with 107 additions and 56 deletions

View file

@ -271,3 +271,10 @@ class PlayerDB(TypedObject):
"""
self.msg(message, from_obj)
def swap_character(self, new_character, delete_old_character=False):
"""
Swaps character, if possible
"""
return self.__class__.objects.swap_character(self, new_character, delete_old_character=delete_old_character)