Routines |
Prev: 32764 | Up: Map | Next: 32876 |
Used by the routine at 32655.
|
||||
32823 | LD A,(23467) | If Engraved Candle is lit (i.e. Candelium Illuminatus has been cast)... | ||
32826 | BIT 1,A | ... | ||
32828 | JP NZ,34670 | ...then display "THE CANDLE IS ALREADY ALIGHT" message and exit | ||
32831 | LD A,(25545) | Load A with the current room containing the Four Leaf Clover | ||
32834 | LD C,A | Copy into C | ||
32835 | LD A,(65529) | Load A with Magic Knight's current room... | ||
32838 | CP C | ...and if Magic Knight is not in the same room as the Four Leaf Clover... | ||
32839 | JP NZ,34634 | ...then display "THAT SPELL CANNOT YET BE CAST..." window and exit | ||
32842 | LD A,33 | Load A with index of object 33 (Engraved Candle) | ||
32844 | CALL 34256 | Check whether Magic Knight is carrying the Engraved Candle... | ||
32847 | JP NZ,34634 | ...and if not, display "THAT SPELL CANNOT YET BE CAST..." window and exit | ||
32850 | CALL 33278 | Flash border and screen (as in cast a spell) | ||
32853 | LD A,47 | Load A with index of object 47 (Shield) | ||
32855 | CALL 34256 | Check whether Magic Knight is carrying the Shield... | ||
32858 | JR NZ,32876 | ...and if not then kill Magic Knight with exploding candle, exiting to game over routine... | ||
32860 | LD HL,23467 | ...else... | ||
32863 | SET 1,(HL) | ...set the Engraved-Candle-lit flag | ||
32865 | LD A,(23378) | Set bit 1 of score progress flags... | ||
32868 | OR 2 | ... | ||
32870 | LD (23378),A | ... | ||
32873 | JP 34652 | Display "WELL DONE, THE CANDLE IS NOW GLOWING..." window and return to game |
Prev: 32764 | Up: Map | Next: 32876 |