forked from vantablack/vantaMOO
Merge pull request 'Clothing module' (#2) from oreolek/vantaMOO:clothing into vanta
Reviewed-on: vantablack/vantaMOO#2
This commit is contained in:
commit
486326bced
|
@ -52,3 +52,5 @@ nosetests.xml
|
|||
# PyCharm config
|
||||
.idea
|
||||
|
||||
# Virtualenv
|
||||
evenv
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue