Update extended_room.py
Small QOL improvement to looking at details, tell the room contents (including the player) what they are looking closely at.
This commit is contained in:
parent
0bde1a034b
commit
cd4a6121ea
1 changed files with 4 additions and 1 deletions
|
|
@ -359,7 +359,10 @@ class CmdExtendedRoomLook(default_cmds.CmdLook):
|
||||||
):
|
):
|
||||||
detail = location.return_detail(args)
|
detail = location.return_detail(args)
|
||||||
if detail:
|
if detail:
|
||||||
# we found a detail instead. Show that.
|
# we found a detail
|
||||||
|
# tell all the objects in the room we're looking closely at something
|
||||||
|
caller.location.msg_contents("$You() $conj(look) closely at the $obj(target).\n", from_obj=caller, mapping={"target": args})
|
||||||
|
# show the detail to the player
|
||||||
caller.msg(detail)
|
caller.msg(detail)
|
||||||
return
|
return
|
||||||
# no detail found. Trigger delayed error messages
|
# no detail found. Trigger delayed error messages
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue