|$01A7DC ||93 bytes ||Sprite subroutine (JSL) ||Subroutine that handles interaction between Mario and the sprite slot currently in X. |
If the "Don't use default interaction with player" tweaker bit in $167A,x is not set, the routine checks for contact between Mario and the sprite and handles the default interaction by jumping to the routine at $01A83B, otherwise it just checks for contact.
In both cases, when the routine returns the carry is set if there's contact, and clear if there's not contact.
Note that the routine will return "No contact" and skip interaction every other frame if the "Process interaction with player every frame" tweaker bit in $167A,x is not set, or if the sprite is horizontally offscreen during a frame in which it should be interacted with.
Address updated with more accurate information regarding the return carry.