Add all needed evadventure commands

This commit is contained in:
Griatch 2022-08-04 20:22:42 +02:00
parent e1439104e0
commit 2848e31f4b
8 changed files with 490 additions and 61 deletions

View file

@ -2,9 +2,10 @@
General Character commands usually available to all characters
"""
import re
from django.conf import settings
from evennia.utils import utils
from evennia.typeclasses.attributes import NickTemplateInvalid
from evennia.utils import utils
COMMAND_DEFAULT_CLASS = utils.class_from_module(settings.COMMAND_DEFAULT_CLASS)
@ -501,7 +502,7 @@ class CmdGive(COMMAND_DEFAULT_CLASS):
Usage:
give <inventory obj> <to||=> <target>
Gives an items from your inventory to another character,
Gives an item from your inventory to another person,
placing it in their inventory.
"""
@ -538,7 +539,7 @@ class CmdGive(COMMAND_DEFAULT_CLASS):
return
# give object
success = to_give.move_to(target, quiet=True, move_type="get")
success = to_give.move_to(target, quiet=True, move_type="give")
if not success:
caller.msg("This could not be given.")
else: