Implemented clothing system

This commit is contained in:
Hazel Nova 2024-01-10 06:43:33 +00:00
parent 831b10deca
commit b20aebf260
4 changed files with 5 additions and 10 deletions

View File

@ -14,6 +14,7 @@ own cmdsets by inheriting from them or directly from `evennia.CmdSet`.
"""
from evennia.contrib.game_systems.clothing import ClothedCharacterCmdSet
from evennia import default_cmds
from .encounter_cmdset import CmdEngage
@ -32,10 +33,8 @@ class CharacterCmdSet(default_cmds.CharacterCmdSet):
Populates the cmdset
"""
super().at_cmdset_creation()
#
# any commands you add below will overload the default ones.
#
self.add(CmdEngage)
self.add(ClothedCharacterCmdSet)
class AccountCmdSet(default_cmds.AccountCmdSet):

View File

@ -1,14 +1,13 @@
from evennia.objects.objects import DefaultCharacter
from evennia.contrib.game_systems.clothing import ClothedCharacter
from evennia.contrib.rpg.traits import TraitHandler
from commands.encounter_cmdset import SetEncounterSpecial
from world.species import SPECIES_CMDSET
from .objects import ObjectParent
CURRENT_VERSION = 1
class Character(ObjectParent, DefaultCharacter):
class Character(ClothedCharacter):
def at_object_creation(self):
self.db.version = 1
self.db.species = 0

View File

@ -12,7 +12,6 @@ inheritance.
"""
from evennia.objects.objects import DefaultObject
class ObjectParent:
pass

View File

@ -4,12 +4,10 @@ Room
Rooms are simple containers that has no location of their own.
"""
from evennia.objects.objects import DefaultRoom
from .objects import ObjectParent
class Room(ObjectParent, DefaultRoom):
"""
Rooms are like any Object, except their location is None