mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 04:27:16 +02:00
Give should only look in the inventory and could use a custom message.
This commit is contained in:
parent
df3943a996
commit
62a13a94a4
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue