![]() |
Routines |
| Prev: 48491 | Up: Map | Next: 48815 |
|
Used by the routine at HandlePickupAndDrop.
Tests whether an object is one of the four valves (objects 96 to 99) that the player is on or close to.
|
||||||||||||||
|
Return unless the object is a valve.
|
||||||||||||||
| TestObjectCanBePickedUp | 48807 | LD A,(IY+0) | Fetch the object number of the object. | |||||||||||
| 48810 | SUB 96 | Subtract 96. | ||||||||||||
| 48812 | CP 4 | Return if it is not a valve. | ||||||||||||
| 48814 | RET NC | |||||||||||||
|
Continue on to TestNearObject.
View the equivalent code in;
|
||||||||||||||
| Prev: 48491 | Up: Map | Next: 48815 |