vantaMOO/typeclasses/characters.py

25 lines
723 B
Python
Raw Permalink Normal View History

2023-01-06 04:50:33 +01:00
"""
Characters
Characters are (by default) Objects setup to be puppeted by Accounts.
They are what you "see" in game. The Character class in this module
is setup to be the "default" character type created by the default
creation commands.
"""
2023-01-09 04:03:29 +01:00
from lib.rpsystem import ContribRPCharacter
2023-01-17 23:51:04 +01:00
from lib.pronounsub import character as pronounsub
2023-01-06 04:50:33 +01:00
# rpsystem
2023-01-17 23:51:04 +01:00
class Character(ContribRPCharacter):
2023-01-11 11:14:04 +01:00
def at_object_creation(self):
2023-01-17 23:51:04 +01:00
pronounsub.object_init(self)
super().at_object_creation()
2023-01-11 11:14:04 +01:00
def msg(self, text=None, from_obj=None, session=None, **kwargs):
2023-01-17 23:51:04 +01:00
text, from_obj, session, kwargs = pronounsub.msg(self, text, from_obj, session, **kwargs)
super().msg(text, from_obj, session, **kwargs)