Don't show dbrefs in get/drop notifications. May add a show_dbrefs flag down the road.
This commit is contained in:
parent
c622632654
commit
8b89a4db2f
1 changed files with 6 additions and 6 deletions
|
|
@ -169,10 +169,10 @@ def cmd_get(command):
|
||||||
return
|
return
|
||||||
|
|
||||||
target_obj.move_to(pobject, quiet=True)
|
target_obj.move_to(pobject, quiet=True)
|
||||||
session.msg("You pick up %s." % (target_obj.get_name(),))
|
session.msg("You pick up %s." % (target_obj.get_name(show_dbref=False),))
|
||||||
pobject.get_location().emit_to_contents("%s picks up %s." %
|
pobject.get_location().emit_to_contents("%s picks up %s." %
|
||||||
(pobject.get_name(),
|
(pobject.get_name(show_dbref=False),
|
||||||
target_obj.get_name()),
|
target_obj.get_name(show_dbref=False)),
|
||||||
exclude=pobject)
|
exclude=pobject)
|
||||||
|
|
||||||
# SCRIPT: Call the object's script's a_get() method.
|
# SCRIPT: Call the object's script's a_get() method.
|
||||||
|
|
@ -204,10 +204,10 @@ def cmd_drop(command):
|
||||||
return
|
return
|
||||||
|
|
||||||
target_obj.move_to(pobject.get_location(), quiet=True)
|
target_obj.move_to(pobject.get_location(), quiet=True)
|
||||||
session.msg("You drop %s." % (target_obj.get_name(),))
|
session.msg("You drop %s." % (target_obj.get_name(show_dbref=False),))
|
||||||
pobject.get_location().emit_to_contents("%s drops %s." %
|
pobject.get_location().emit_to_contents("%s drops %s." %
|
||||||
(pobject.get_name(),
|
(pobject.get_name(show_dbref=False),
|
||||||
target_obj.get_name()),
|
target_obj.get_name(show_dbref=False)),
|
||||||
exclude=pobject)
|
exclude=pobject)
|
||||||
|
|
||||||
# SCRIPT: Call the object's script's a_drop() method.
|
# SCRIPT: Call the object's script's a_drop() method.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue