Prev: 45352 Up: Map Next: 45476
45423: Convert Object Slots
Turn the object slots at Object_Slot_1 and Object_Slot_3 into craters (type 192) if they are in use. Turn Object_Slot_2 and Object_Slot_4 into small explosions (type 100) if their type is 200-203. Then jump to Copy_Explosion_Template.
Handler_Missile_ConvertExploding 45423 LD A,(24840) Fetch Object_Slot_1.
45426 AND A Jump to Handler_Missile_ClearSlot3 if it is free.
45427 JR Z,Handler_Missile_ClearSlot3
45429 LD A,192 Write 192 to Object_Slot_1.
45431 LD (24840),A
Handler_Missile_ClearSlot3 45434 LD A,(24888) Fetch Object_Slot_3.
45437 AND A Jump to Handler_Missile_TestSlot2 if it is free.
45438 JR Z,Handler_Missile_TestSlot2
45440 LD A,192 Write 192 to Object_Slot_3.
45442 LD (24888),A
Turn the 200-203 slots into small explosions.
Handler_Missile_TestSlot2 45445 LD A,(24864) Fetch Object_Slot_2.
45448 SUB 200 Subtract 200.
45450 CP 4 Jump to Handler_Missile_TestSlot4 if that is at least 4.
45452 JR NC,Handler_Missile_TestSlot4
45454 LD A,100 Write 100 to Object_Slot_2.
45456 LD (24864),A
Handler_Missile_TestSlot4 45459 LD A,(24912) Fetch Object_Slot_4.
45462 SUB 200 Subtract 200.
45464 CP 4 Jump to Handler_Missile_CopyExplosion if that is at least 4.
45466 JR NC,Handler_Missile_CopyExplosion
45468 LD A,100 Write 100 to Object_Slot_4.
45470 LD (24912),A
Handler_Missile_CopyExplosion 45473 JP Copy_Explosion_Template Jump to Copy_Explosion_Template.
Prev: 45352 Up: Map Next: 45476