Prev: ED2A Up: Map Next: ED36
ED30: Obtain location descriptors for a character standing next to a closed door
Used by the routine at EB13. A location descriptor for the character's current location has been found, and it corresponds to a location that is next to a door that happens to be closed. In this case we process the remaining location descriptors for the character's x-coordinate, one of which may be specific to the character's z-coordinate (1=behind the closed door, or 2=in front of it), and thus provide the appropriate direction descriptors (which are returned in C). For an example of where this can happen, see the three descriptors in the location descriptor table at C320 that correspond to the entrance to the shop at the far left of town.
Input
B Character's y-coordinate (bits 2-6: y-4) and z-coordinate (bit 7: z-1)
E Character's x-coordinate
HL Address of the third byte of the location descriptor just processed
ED30 CALL $EB3E Process the remaining location descriptors for the character's x-coordinate
ED33 LD A,$04 A=4: the character is standing behind or in front of a closed door
ED35 RET
Prev: ED2A Up: Map Next: ED36