Prev: 35709 Up: Map Next: 35789
35749: Set the blow-enabled flag if carrying a blowable object
Used by the routine at 35495.
35749 LD A,(65532) Reset blow-enabled flag (i.e. false)...
35752 RES 6,A ...
35754 LD (65532),A ...
35757 LD B,5 Set counter to 5 (as Magic Knight can carry 5 objects)
35759 LD IX,25395 Point IX to start of Magic Knight's current inventory
35763 LD A,(IX+0) Load index of object carried by Magic Knight into A
35766 LD E,4 Point HL to property 4 ("use status") of this object (in table at 42242)...
35768 CALL 34160 ...
35771 BIT 0,(HL) ...and if can-be-blown flag is set...
35773 JR NZ,35780 ...then skip to 35780...
35775 INC IX ...else advance to next inventory slot...
35777 DJNZ 35763 ...and repeat
35779 RET If this was last slot, then return with blow-enabled flag unset
35780 LD A,(65532) Set blow-enabled flag (i.e. true)...
35783 SET 6,A ...
35785 LD (65532),A ...
35788 RET Return
Prev: 35709 Up: Map Next: 35789