I'm trying to implement this currently on an up-to-date pokeemerald decomp, but line 640 of src/field_player_avatar.c actually contains just a {, and as best I can tell the line closest to this is line 634, which is inside a surfing check.
However, instead of a numeric value, line 634 uses the...