Fix bug in parentobject class inheritance. Update objects docs

This commit is contained in:
Griatch 2022-03-05 00:44:32 +01:00
parent 919bf1a907
commit efb5682449
7 changed files with 81 additions and 20 deletions

View file

@ -11,7 +11,7 @@ from evennia.objects.objects import DefaultCharacter
from .objects import ObjectParent
class Character(DefaultCharacter, ObjectParent):
class Character(ObjectParent, DefaultCharacter):
"""
The Character defaults to reimplementing some of base Object's hook methods with the
following functionality:

View file

@ -10,7 +10,7 @@ from evennia.objects.objects import DefaultExit
from .objects import ObjectParent
class Exit(DefaultExit, ObjectParent):
class Exit(ObjectParent, DefaultExit):
"""
Exits are connectors between rooms. Exits are normal Objects except
they defines the `destination` property. It also does work in the

View file

@ -25,7 +25,7 @@ class ObjectParent:
"""
class Object(DefaultObject, ObjectParent):
class Object(ObjectParent, DefaultObject):
"""
This is the root typeclass object, implementing an in-game Evennia
game object, such as having a location, being able to be

View file

@ -9,7 +9,7 @@ from evennia.objects.objects import DefaultRoom
from .objects import ObjectParent
class Room(DefaultRoom, ObjectParent):
class Room(ObjectParent, DefaultRoom):
"""
Rooms are like any Object, except their location is None
(which is default). They also use basetype_setup() to