Prev: A325 Up: Map Next: A39C
A378: Release Carried Item
Clear the carried-item bits, store the throw speed and play SoundsDropItem.
Input
IX Actor slot
Clear the carried-item bits and store the throw speed.
ReleaseCarriedItem A378 RES 0,(IX+$08) Reset bit 0 of *IX+08.
A37C SET 1,(IX+$08) Set bit 1 of *IX+08.
A380 LD HL,$6080 HL=Jetman_Flags.
A383 RES 0,(HL) Reset bit 0 of *HL.
Set the throw speed from Jetman's speed, then play the drop sound.
A385 LD A,($607D) Fetch Jetman_Speed.
A388 SRA A Divide A by 10.
A38A SRA A
A38C SRA A
A38E SRA A
A390 LD (IX+$05),A Write A to *IX+05.
A393 LD (IX+$06),$01 Write 01 to *IX+06.
A397 CALL SoundsDropItem Call SoundsDropItem.
A39A JR Handler_WorldObject_Loop Jump to Handler_WorldObject_Loop.
Prev: A325 Up: Map Next: A39C