i suspect that if there's multiple shadow sprites you could use tags and then in the code have tags change y things accordingly? i did consider trying that in RCR but it'd be too inconsistent in that considering how sprites got split up in that compared to maybe this. plus this seems like there's less sprites to tag here if you were to try that approach anyway.
edit: by this i mean multiple shadow sprite tags like maybe "shadowground" and "shadowair", then taking slightly different action from ramps by using the said tags.