Prev: 9E25 Up: Map Next: 9E40
9E34: Is an object within the acting character's reach?
Used by the routines at TOO_DARK, FIND_NAMED_OBJECT, LIST_HELD and DO_CLIMB_INTO.
The actor from ACTOR, then IN_REACH_OF. Called directly with the player at Bag End, it says yes to the wooden chest, the map the player holds, Gandalf, Thorin, and the round green door -- which is in Bag End and the Lonelands at once -- and no to the large key the troll is holding in the clearing, the heavy rock door, and the short strong sword, which is lying in the trolls' cave, where Bilbo finds Sting in the book.
Input
A The object's number
IY Its record
Output
F NZ if it is within reach
IN_REACH 9E34 PUSH IX
9E36 LD IX,(ACTOR) The acting character
9E3A CALL IN_REACH_OF
9E3D POP IX
9E3F RET
Prev: 9E25 Up: Map Next: 9E40