Routines |
Prev: D67B | Up: Map | Next: D6B0 |
Used by the routine at D651.
|
||||
Warlocks materialize in levels 1-7 (see table at C6A4). On level 9 (High Temple of Chaos), DEMONS materialize in the rooms instead.
|
||||
D6A4 | LD A,($EAF2) | Flag indicating a warlock, or demon, has been generated in the room (1 = generated/present, 0 = not generated/present) | ||
D6A7 | CP $00 | |||
D6A9 | JR NZ,$D6CF | If a demon has already been generated, don't generate a new one, though if Maroc leaves and re-enters a room one can be generated again. | ||
D6AB | LD A,$0C | Creature type = 12 (demon) | ||
D6AD | CALL $E16A | Set up creature data (e.g. screen position) in data buffer at EB43 |
Prev: D67B | Up: Map | Next: D6B0 |