mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Named the rpsystem cmdset, trying to address #3452
This commit is contained in:
parent
7cce317da0
commit
6f00c8cfc0
3 changed files with 16 additions and 25 deletions
|
|
@ -1277,6 +1277,8 @@ class RPSystemCmdSet(CmdSet):
|
|||
Mix-in for adding rp-commands to default cmdset.
|
||||
"""
|
||||
|
||||
key = "rpsystem_cmdset"
|
||||
|
||||
def at_cmdset_creation(self):
|
||||
self.add(CmdEmote())
|
||||
self.add(CmdSay())
|
||||
|
|
|
|||
|
|
@ -26,15 +26,9 @@ from evennia import AttributeProperty, CmdSet, Command, EvMenu
|
|||
from evennia.utils import inherits_from, list_to_string
|
||||
|
||||
from .characters import EvAdventureCharacter
|
||||
from .combat_base import (
|
||||
CombatAction,
|
||||
CombatActionAttack,
|
||||
CombatActionHold,
|
||||
CombatActionStunt,
|
||||
CombatActionUseItem,
|
||||
CombatActionWield,
|
||||
EvAdventureCombatBaseHandler,
|
||||
)
|
||||
from .combat_base import (CombatAction, CombatActionAttack, CombatActionHold,
|
||||
CombatActionStunt, CombatActionUseItem,
|
||||
CombatActionWield, EvAdventureCombatBaseHandler)
|
||||
from .enums import Ability
|
||||
|
||||
|
||||
|
|
@ -843,5 +837,7 @@ class TurnCombatCmdSet(CmdSet):
|
|||
CmdSet for the turn-based combat.
|
||||
"""
|
||||
|
||||
key = "turncombat_cmdset"
|
||||
|
||||
def at_cmdset_creation(self):
|
||||
self.add(CmdTurnAttack())
|
||||
|
|
|
|||
|
|
@ -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.commands.command import Command, InterruptCommand
|
||||
from evennia.utils.utils import (
|
||||
display_len,
|
||||
inherits_from,
|
||||
list_to_string,
|
||||
pad,
|
||||
repeat,
|
||||
unrepeat,
|
||||
)
|
||||
from evennia.utils.utils import (display_len, inherits_from, list_to_string,
|
||||
pad, repeat, unrepeat)
|
||||
|
||||
from .characters import EvAdventureCharacter
|
||||
from .combat_base import (
|
||||
CombatActionAttack,
|
||||
CombatActionHold,
|
||||
CombatActionStunt,
|
||||
CombatActionUseItem,
|
||||
CombatActionWield,
|
||||
EvAdventureCombatBaseHandler,
|
||||
)
|
||||
from .combat_base import (CombatActionAttack, CombatActionHold,
|
||||
CombatActionStunt, CombatActionUseItem,
|
||||
CombatActionWield, EvAdventureCombatBaseHandler)
|
||||
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.
|
||||
"""
|
||||
|
||||
key = "twitch_combat_cmdset"
|
||||
|
||||
def at_cmdset_creation(self):
|
||||
self.add(CmdAttack())
|
||||
self.add(CmdHold())
|
||||
|
|
@ -573,5 +564,7 @@ class TwitchLookCmdSet(CmdSet):
|
|||
This will be added/removed dynamically when in combat.
|
||||
"""
|
||||
|
||||
key = "twitch_look_cmdset"
|
||||
|
||||
def at_cmdset_creation(self):
|
||||
self.add(CmdLook())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue