Prev: 46819 Up: Map Next: 46836
46824: Check Weapon Hit
Used by the routines at Handle_Flying_Creature and Handle_Guardian.
Checks whether either of the two weapon records is touching an object.
See Check_Weapon_Record_Hit for the details.
Input
IX Object record
Output
D 255 if a weapon has hit the object, otherwise 0
E Type of the weapon that has hit the object
Check_Weapon_Hit 46824 LD HL,36602 Point HL at the first weapon record.
46827 CALL Check_Weapon_Record_Hit Check whether the weapon hits the object.
46830 LD A,D Return if it does.
46831 AND A
46832 RET NZ
46833 LD HL,36618 Point HL at Second_Weapon_Record.
Prev: 46819 Up: Map Next: 46836