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:
parent
214534a86f
commit
a7a3a33334
2 changed files with 13 additions and 1 deletions
|
|
@ -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:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue