Prev: 27736 Up: Map Next: 27784
27770: Catch Actor
Used by the routine at CatchHitActor.
Called when an actor has fallen into the mixing bowl (see MoveHitActor). If it is one of the ingredients (an ID below 24) the rising notes are started and one ingredient is taken away from the number which is needed. Otherwise it is one of the nasties, so the falling notes are started and five is added to the number of ingredients which is needed (up to a maximum of 153).
Input
IX Actor
CatchActor 27770 LD A,(IX+0) Fetch the actor ID.
27773 AND %00111111 Keep only bits 0-5.
27775 CP 24 Jump to CatchNasty if the actor is not an ingredient.
27777 JR NC,CatchNasty
27779 CALL StartRisingNotes Start the rising notes using StartRisingNotes.
27782 LD B,1 Take one ingredient (B=1).
Prev: 27736 Up: Map Next: 27784