mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 00:06:30 +01:00
Get does not search for things in the inventory.
This commit is contained in:
parent
ac73b82db9
commit
df3943a996
1 changed files with 1 additions and 5 deletions
|
|
@ -234,10 +234,6 @@ class CmdGet(MuxCommand):
|
|||
if caller == obj:
|
||||
caller.msg("You can't get yourself.")
|
||||
return
|
||||
#print obj, obj.location, caller, caller==obj.location
|
||||
if caller == obj.location:
|
||||
caller.msg("You already hold that.")
|
||||
return
|
||||
if not obj.access(caller, 'get'):
|
||||
if obj.db.get_err_msg:
|
||||
caller.msg(obj.db.get_err_msg)
|
||||
|
|
@ -250,7 +246,7 @@ class CmdGet(MuxCommand):
|
|||
caller.location.msg_contents("%s picks up %s." %
|
||||
(caller.name,
|
||||
obj.name),
|
||||
exclude=caller)
|
||||
exclude=caller)
|
||||
# calling hook method
|
||||
obj.at_get(caller)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue