1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-24 03:54:20 +00:00
royalnet/rpgpack/commands/dndextra.py

17 lines
434 B
Python
Raw Normal View History

2020-03-04 18:29:33 +00:00
from typing import *
from ..tables import DndBattleUnit
from .abstract import DndBattleTargetCommand
2020-03-04 18:29:33 +00:00
class DndextraCommand(DndBattleTargetCommand):
2020-03-04 18:29:33 +00:00
name: str = "dndextra"
description: str = "Change the extras for a target in the current battle."
2020-03-04 18:29:33 +00:00
syntax: str = "{target} {extra}"
2020-03-04 18:29:33 +00:00
aliases = ["extra", "dextra"]
async def _change(self, unit: DndBattleUnit, args: List[str]):
unit.extra = " ".join(args)