You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do_look uses (eventually) get_obj_here(). That delegates to get_obj_list, then get_obj_carry, then get_obj_wear.
That means it looks in the room, then the player's non-worn inventory, then their worn inventory.
However, each of those functions starts counting from 1 again: so if there is a "bob" in the room, and you're also holding and wearing a bob: get_obj_here(ch, "bob") will only ever find the room one.
get_obj_here is used directly by look in XX. that is look in bob will look in the room, as will look in 1.bob.
look in 2.bob will fail on the room, but then will also fail in the inventory and worn!
regular look XX has custom code to handle this. We should probably unify this. Low priority though.
The text was updated successfully, but these errors were encountered:
do_look
uses (eventually)get_obj_here()
. That delegates toget_obj_list
, thenget_obj_carry
, thenget_obj_wear
.That means it looks in the room, then the player's non-worn inventory, then their worn inventory.
However, each of those functions starts counting from 1 again: so if there is a "bob" in the room, and you're also holding and wearing a bob:
get_obj_here(ch, "bob")
will only ever find the room one.get_obj_here
is used directly bylook in XX
. that islook in bob
will look in the room, as willlook in 1.bob
.look in 2.bob
will fail on the room, but then will also fail in the inventory and worn!regular
look XX
has custom code to handle this. We should probably unify this. Low priority though.The text was updated successfully, but these errors were encountered: