Add a builder override to object.controls_other function. Also refine what is shown when examining based on ownership and permissions.

This commit is contained in:
Greg Taylor 2009-01-22 04:20:55 +00:00
parent 214534a86f
commit a7a3a33334
2 changed files with 13 additions and 1 deletions

View file

@ -253,6 +253,12 @@ def cmd_examine(command):
# Use standard_plr_objsearch to handle duplicate/nonexistant results.
if not target_obj:
return
# If the user doesn't control the object, just look at it instead.
if not pobject.controls_other(target_obj, builder_override=True):
command.command_string = 'look'
cmd_look(command)
return
if attr_search:
"""