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:
parent
922a7d5064
commit
9459178c43
8 changed files with 107 additions and 56 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue