Prev: 52059 Up: Map Next: 52136
52118: Check if servant has moved away from Maroc after retrieving an item
Used by the routine at 51968.
When the servant retrieves objects from Maroc's backpack, the byte at 60337 is set to 2. Once it's moved out of the backpack area, this is set to the 'standard' value of 1 which indicates the servant is carrying an object.
This stops the item collection cycle quickly cycling through all of Maroc's items if the servant hovers over Maroc's backpack.
52118 LD C,0 Type of collision/event check (collision with Maroc)
52120 CALL 57293 Run collision check
52123 CP 0 Is there a collision (A register returned = 1)?
52125 JP NZ,52263 If so, servant is still within Maroc's backpack 'hit box' after collecting the object - take no action and jump to the next routine
52128 LD A,1 Servant has moved out of Maroc's backpack area after picking up an object
52130 LD (60337),A Set servant object status to 1 to indicate that the servant is now carrying an object - OK to swap object again now if it moves back.
52133 JP 52263
Prev: 52059 Up: Map Next: 52136