mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 13:37:17 +02:00
Contrib: Added chargen module, showing a simple example of creating a character from inside the game.
This commit is contained in:
parent
703accdd60
commit
86f76d0d08
3 changed files with 200 additions and 4 deletions
|
|
@ -69,11 +69,11 @@ class ObjectManager(TypedObjectManager):
|
|||
return self.get_object_with_user(dbref)
|
||||
|
||||
@returns_typeclass_list
|
||||
def get_objs_with_key_and_typeclass(oname, otypeclass_path):
|
||||
def get_objs_with_key_and_typeclass(self, oname, otypeclass_path):
|
||||
"""
|
||||
Returns objects based on simultaneous key and typeclass match.
|
||||
"""
|
||||
return self.filter(db_key__iexact=oname).filter(db_typeclass_path_exact=otypeclass_path)
|
||||
return self.filter(db_key__iexact=oname).filter(db_typeclass_path__exact=otypeclass_path)
|
||||
|
||||
# attr/property related
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue