Prev: 32876 Up: Map Next: 32982
32903: Cast Armouris Photonicus if possible, otherwise display failure message
Used by the routine at 32655.
32903 LD A,(23467) If Armouris-Photonicus-cast flag is set...
32906 BIT 2,A ...
32908 JP NZ,34676 ...then display "YOUR ARMOUR IS ALREADY GLOWING" message and return to game
32911 LD A,(65529) Else load Magic Knight's current room into B...
32914 LD B,A ...
32915 LD A,(25566) Load current room of Strange Liquid into A
32918 CP B If the rooms are different...
32919 JP NZ,34634 ...then display "THAT SPELL CANNOT YET BE CAST..." message and return to game
32922 CALL 34385 Load Magic Knight's coordinates (in characters) into DE
32925 LD A,(25568) Compare y-coordinates of Magic Knight and Strange Liquid...
32928 CP D ...
32929 JP NZ,34634 ...and if they are different then display "THAT SPELL CANNOT YET BE CAST..." message and return to game
32932 LD A,(25567) Compare x-coordinates of Magic Knight and Strange Liquid...
32935 DEC A ...
32936 CP E ...
32937 JR Z,32950 ...and if x-coordinate of Strange Liquid is one more than Magic Knight's x-coordinate then skip ahead to 32950
32939 INC A If x-coordinate of Strange Liquid is the same as Magic Knight's x-coordinate...
32940 CP E ...
32941 JR Z,32950 ...then skip ahead to 32950
32943 INC A If x-coordinate of Strange Liquid is one less than Magic Knight's x-coordinate...
32944 CP E ...
32945 JR Z,32950 ...then skip ahead to 32950
32947 JP 34634 Display "THAT SPELL CANNOT YET BE CAST..." message and return to game
32950 LD HL,23467 Set Armouris-Photonicus-cast flag...
32953 SET 2,(HL) ...
32955 CALL 33278 Flash border and screen (as in cast a spell)
32958 LD A,(23378) Set bit 2 of score progress flags...
32961 OR 4 ...
32963 LD (23378),A ...
32966 LD A,99 Set room of Strange Liquid to 99 (i.e. remove it from the game)...
32968 LD (25566),A ...
32971 LD A,71 Load A with 71 (white INK, black PAPER, BRIGHT)...
32973 LD (42360),A ...and apply this attribute to Broken Glass...
32976 LD (42640),A ...and Teleport Pad
32979 JP 34658 Display "THE LIQUID TURNED INTO A VAPOUR..." window and return to game
Prev: 32876 Up: Map Next: 32982