Named the rpsystem cmdset, trying to address #3452

This commit is contained in:
Griatch 2024-04-01 11:16:19 +02:00
parent 7cce317da0
commit 6f00c8cfc0
3 changed files with 16 additions and 25 deletions

View file

@ -1277,6 +1277,8 @@ class RPSystemCmdSet(CmdSet):
Mix-in for adding rp-commands to default cmdset. Mix-in for adding rp-commands to default cmdset.
""" """
key = "rpsystem_cmdset"
def at_cmdset_creation(self): def at_cmdset_creation(self):
self.add(CmdEmote()) self.add(CmdEmote())
self.add(CmdSay()) self.add(CmdSay())

View file

@ -26,15 +26,9 @@ from evennia import AttributeProperty, CmdSet, Command, EvMenu
from evennia.utils import inherits_from, list_to_string from evennia.utils import inherits_from, list_to_string
from .characters import EvAdventureCharacter from .characters import EvAdventureCharacter
from .combat_base import ( from .combat_base import (CombatAction, CombatActionAttack, CombatActionHold,
CombatAction, CombatActionStunt, CombatActionUseItem,
CombatActionAttack, CombatActionWield, EvAdventureCombatBaseHandler)
CombatActionHold,
CombatActionStunt,
CombatActionUseItem,
CombatActionWield,
EvAdventureCombatBaseHandler,
)
from .enums import Ability from .enums import Ability
@ -843,5 +837,7 @@ class TurnCombatCmdSet(CmdSet):
CmdSet for the turn-based combat. CmdSet for the turn-based combat.
""" """
key = "turncombat_cmdset"
def at_cmdset_creation(self): def at_cmdset_creation(self):
self.add(CmdTurnAttack()) self.add(CmdTurnAttack())

View file

@ -8,24 +8,13 @@ This implements a 'twitch' (aka DIKU or other traditional muds) style of MUD com
""" """
from evennia import AttributeProperty, CmdSet, default_cmds from evennia import AttributeProperty, CmdSet, default_cmds
from evennia.commands.command import Command, InterruptCommand from evennia.commands.command import Command, InterruptCommand
from evennia.utils.utils import ( from evennia.utils.utils import (display_len, inherits_from, list_to_string,
display_len, pad, repeat, unrepeat)
inherits_from,
list_to_string,
pad,
repeat,
unrepeat,
)
from .characters import EvAdventureCharacter from .characters import EvAdventureCharacter
from .combat_base import ( from .combat_base import (CombatActionAttack, CombatActionHold,
CombatActionAttack, CombatActionStunt, CombatActionUseItem,
CombatActionHold, CombatActionWield, EvAdventureCombatBaseHandler)
CombatActionStunt,
CombatActionUseItem,
CombatActionWield,
EvAdventureCombatBaseHandler,
)
from .enums import ABILITY_REVERSE_MAP from .enums import ABILITY_REVERSE_MAP
@ -560,6 +549,8 @@ class TwitchCombatCmdSet(CmdSet):
Add to character, to be able to attack others in a twitch-style way. Add to character, to be able to attack others in a twitch-style way.
""" """
key = "twitch_combat_cmdset"
def at_cmdset_creation(self): def at_cmdset_creation(self):
self.add(CmdAttack()) self.add(CmdAttack())
self.add(CmdHold()) self.add(CmdHold())
@ -573,5 +564,7 @@ class TwitchLookCmdSet(CmdSet):
This will be added/removed dynamically when in combat. This will be added/removed dynamically when in combat.
""" """
key = "twitch_look_cmdset"
def at_cmdset_creation(self): def at_cmdset_creation(self):
self.add(CmdLook()) self.add(CmdLook())