Prev: B128 Up: Map Next: B1A4
B16F: Convert Object Slots
Turn the object slots at Object_Slot_1 and Object_Slot_3 into craters (type C0) if they are in use. Turn Object_Slot_2 and Object_Slot_4 into small explosions (type 64) if their type is C8-CB. Then jump to Copy_Explosion_Template.
Handler_Missile_ConvertExploding B16F LD A,($6108) Fetch Object_Slot_1.
B172 AND A Jump to Handler_Missile_ClearSlot3 if it is free.
B173 JR Z,Handler_Missile_ClearSlot3
B175 LD A,$C0 Write C0 to Object_Slot_1.
B177 LD ($6108),A
Handler_Missile_ClearSlot3 B17A LD A,($6138) Fetch Object_Slot_3.
B17D AND A Jump to Handler_Missile_TestSlot2 if it is free.
B17E JR Z,Handler_Missile_TestSlot2
B180 LD A,$C0 Write C0 to Object_Slot_3.
B182 LD ($6138),A
Turn the C8-CB slots into small explosions.
Handler_Missile_TestSlot2 B185 LD A,($6120) Fetch Object_Slot_2.
B188 SUB $C8 Subtract C8.
B18A CP $04 Jump to Handler_Missile_TestSlot4 if that is at least 04.
B18C JR NC,Handler_Missile_TestSlot4
B18E LD A,$64 Write 64 to Object_Slot_2.
B190 LD ($6120),A
Handler_Missile_TestSlot4 B193 LD A,($6150) Fetch Object_Slot_4.
B196 SUB $C8 Subtract C8.
B198 CP $04 Jump to Handler_Missile_CopyExplosion if that is at least 04.
B19A JR NC,Handler_Missile_CopyExplosion
B19C LD A,$64 Write 64 to Object_Slot_4.
B19E LD ($6150),A
Handler_Missile_CopyExplosion B1A1 JP Copy_Explosion_Template Jump to Copy_Explosion_Template.
Prev: B128 Up: Map Next: B1A4