Give should only look in the inventory and could use a custom message.

This commit is contained in:
Ahmed Charles 2015-02-10 17:39:52 +00:00
parent df3943a996
commit 62a13a94a4

View file

@ -312,7 +312,9 @@ class CmdGive(MuxCommand):
if not self.args or not self.rhs:
caller.msg("Usage: give <inventory object> = <target>")
return
to_give = caller.search(self.lhs)
to_give = caller.search(self.lhs, location=caller,
nofound_string="You aren't carrying %s." % self.lhs,
multimatch_string="You carry more than one %s:" % self.lhs)
target = caller.search(self.rhs)
if not (to_give and target):
return