Prev: CB81 Up: Map Next: CBAB
CB89: Decide whether things may fall from the sky in this room
Used by the routine at START.
Sets DROP_BAN to 1 if any of the room's 48 records holds the well (graphic 120), a quest item (112 to 119) or a piece of the pentagram (128 to 135), and to 0 otherwise. SKY_DROP drops nothing while it is 1.
BAN_DROPS CB89 CALL ROOM_OBJECT_LOOP IY, B, DE: the room's 48 records (ROOM_OBJECT_LOOP)
CB8C LD C,$70
BAN_DROPS_0 CB8E LD A,(IY+$00) The well
CB91 CP $78
CB93 JR Z,BAN_DROPS_2
CB95 AND $F8 A quest item, done or not
CB97 CP C
CB98 JR Z,BAN_DROPS_2
CB9A CP $80 A piece of the pentagram
CB9C JR Z,BAN_DROPS_2
CB9E ADD IY,DE None of them: things may fall
CBA0 DJNZ BAN_DROPS_0
CBA2 XOR A
BAN_DROPS_1 CBA3 LD (DROP_BAN),A
CBA6 RET
BAN_DROPS_2 CBA7 LD A,$01 One of them: nothing falls
CBA9 JR BAN_DROPS_1
Prev: CB81 Up: Map Next: CBAB