X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Fcommand.py;h=2318024eff27156cc3c7c65695e525ca641cd5b1;hp=5ee7ce8833edc086d7dae0aac77c4e91f97f0f03;hb=HEAD;hpb=d1362ea83d4d7eae9dd786109c02224928b2bf01 diff --git a/mudpy/command.py b/mudpy/command.py index 5ee7ce8..2318024 100644 --- a/mudpy/command.py +++ b/mudpy/command.py @@ -1,6 +1,6 @@ """User command functions for the mudpy engine.""" -# Copyright (c) 2004-2020 mudpy authors. Permission to use, copy, +# Copyright (c) 2004-2022 mudpy authors. Permission to use, copy, # modify, and distribute this software is granted under terms # provided in the LICENSE file distributed with this software. @@ -162,6 +162,26 @@ def evaluate(actor, parameters): return True +def c_get(actor, parameters): + """Move a prop into inventory.""" + if not parameters: + message = "What do you wish to get?" + else: + message = ('Not yet implemented.') + actor.send(message) + return True + + +def drop(actor, parameters): + """Move a prop out of inventory.""" + if not parameters: + message = "What do you wish to drop?" + else: + message = ('Not yet implemented.') + actor.send(message) + return True + + def halt(actor, parameters): """Halt the world.""" if actor.owner: @@ -290,6 +310,13 @@ def help(actor, parameters): return True +def inventory(actor, parameters): + """List the inventory.""" + message = ('Not yet implemented.') + actor.send(message) + return True + + def look(actor, parameters): """Look around.""" if parameters: @@ -305,7 +332,7 @@ def move(actor, parameters): actor.universe.contents[actor.get("location")].portals()): if portal.startswith(parameters): actor.move_direction(portal) - return(portal) + return portal actor.send("You cannot go that way.") return True