Implemented clothing system
This commit is contained in:
parent
831b10deca
commit
b20aebf260
|
@ -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 evennia import default_cmds
|
||||||
|
|
||||||
from .encounter_cmdset import CmdEngage
|
from .encounter_cmdset import CmdEngage
|
||||||
|
@ -32,10 +33,8 @@ class CharacterCmdSet(default_cmds.CharacterCmdSet):
|
||||||
Populates the cmdset
|
Populates the cmdset
|
||||||
"""
|
"""
|
||||||
super().at_cmdset_creation()
|
super().at_cmdset_creation()
|
||||||
#
|
|
||||||
# any commands you add below will overload the default ones.
|
|
||||||
#
|
|
||||||
self.add(CmdEngage)
|
self.add(CmdEngage)
|
||||||
|
self.add(ClothedCharacterCmdSet)
|
||||||
|
|
||||||
|
|
||||||
class AccountCmdSet(default_cmds.AccountCmdSet):
|
class AccountCmdSet(default_cmds.AccountCmdSet):
|
||||||
|
|
|
@ -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 evennia.contrib.rpg.traits import TraitHandler
|
||||||
|
|
||||||
from commands.encounter_cmdset import SetEncounterSpecial
|
from commands.encounter_cmdset import SetEncounterSpecial
|
||||||
from world.species import SPECIES_CMDSET
|
from world.species import SPECIES_CMDSET
|
||||||
|
|
||||||
from .objects import ObjectParent
|
|
||||||
|
|
||||||
CURRENT_VERSION = 1
|
CURRENT_VERSION = 1
|
||||||
|
|
||||||
class Character(ObjectParent, DefaultCharacter):
|
class Character(ClothedCharacter):
|
||||||
def at_object_creation(self):
|
def at_object_creation(self):
|
||||||
self.db.version = 1
|
self.db.version = 1
|
||||||
self.db.species = 0
|
self.db.species = 0
|
||||||
|
|
|
@ -12,7 +12,6 @@ inheritance.
|
||||||
"""
|
"""
|
||||||
from evennia.objects.objects import DefaultObject
|
from evennia.objects.objects import DefaultObject
|
||||||
|
|
||||||
|
|
||||||
class ObjectParent:
|
class ObjectParent:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -4,12 +4,10 @@ Room
|
||||||
Rooms are simple containers that has no location of their own.
|
Rooms are simple containers that has no location of their own.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from evennia.objects.objects import DefaultRoom
|
from evennia.objects.objects import DefaultRoom
|
||||||
|
|
||||||
from .objects import ObjectParent
|
from .objects import ObjectParent
|
||||||
|
|
||||||
|
|
||||||
class Room(ObjectParent, DefaultRoom):
|
class Room(ObjectParent, DefaultRoom):
|
||||||
"""
|
"""
|
||||||
Rooms are like any Object, except their location is None
|
Rooms are like any Object, except their location is None
|
||||||
|
|
Loading…
Reference in New Issue