Merge pull request 'Clothing module' (#2) from oreolek/vantaMOO:clothing into vanta

Reviewed-on: vantablack/vantaMOO#2
This commit is contained in:
vanta black 2023-01-06 19:06:20 +00:00
commit 486326bced
4 changed files with 12 additions and 2 deletions

2
.gitignore vendored
View File

@ -52,3 +52,5 @@ nosetests.xml
# PyCharm config
.idea
# Virtualenv
evenv

View File

@ -22,6 +22,7 @@ from evennia.contrib.game_systems.multidescer import CmdMultiDesc
from evennia.contrib.grid.ingame_map_display import MapDisplayCmdSet
from evennia.contrib.grid import simpledoor
from evennia.contrib.rpg.rpsystem import RPSystemCmdSet
from evennia.contrib.game_systems.clothing import ClothedCharacterCmdSet
class CharacterCmdSet(default_cmds.CharacterCmdSet):
@ -61,6 +62,9 @@ class CharacterCmdSet(default_cmds.CharacterCmdSet):
# rpsystem
self.add(RPSystemCmdSet())
# Clothing: wear
self.add(ClothedCharacterCmdSet())
class AccountCmdSet(default_cmds.AccountCmdSet):
"""
This is the cmdset available to the Account at all times. It is

View File

@ -8,7 +8,8 @@ creation commands.
"""
from evennia.contrib.rpg.rpsystem import ContribRPCharacter
from evennia.contrib.game_systems.clothing import ClothedCharacter
# rpsystem
class Character(ContribRPCharacter):
class Character(ContribRPCharacter, ClothedCharacter):
pass

View File

@ -11,7 +11,7 @@ inheritance.
"""
from evennia.contrib.rpg.rpsystem import ContribRPObject
from evennia.contrib.game_systems.clothing import ContribClothing as Clothes
class ObjectParent:
"""
@ -27,3 +27,6 @@ class ObjectParent:
# rpsystem
class Object(ContribRPObject):
pass
class Clothing(Clothes):
pass