![]() |
Routines |
| Prev: C238 | Up: Map | Next: C265 |
|
Used by the routine at centre_of_room.
If the charm's kind (type AND 7) is the one the wizard wants next, the count at $5BBB goes up and the screen's colours cycle; the fourteenth starts the ending. Either way the charm is used up: its entry in the special-object table is cleared and it vanishes. So the wrong charm is not given back -- it is lost.
|
||||
| add_obj_to_cauldron | C245 | LD (IX+$03),$80 | ||
| C249 | CALL ret_next_obj_required | the kind wanted next, from objects_required | ||
| C24C | LD A,(IX+$00) | |||
| C24F | AND $07 | |||
| C251 | CP (HL) | |||
| C252 | JR NZ,cauldron_consume | |||
| C254 | LD HL,$5BBB | right one: count it and flash the screen | ||
| C257 | INC (HL) | |||
| C258 | CALL cycle_colours_with_sound | |||
| C25B | LD A,($5BBB) | fourteen: the quest is done | ||
| C25E | CP $0E | |||
| C260 | JR NZ,cauldron_consume | |||
| C262 | CALL prepare_final_animation | |||
| Prev: C238 | Up: Map | Next: C265 |