ref: 1853f70addb0bfa9164bc2b5134e564f526b2b1a
dir: /engine/pokemon/level_up_happiness.asm/
LevelUpHappinessMod: ld a, [wCurPartyMon] ld hl, wPartyMon1CaughtLocation call GetPartyLocation ld a, [hl] and CAUGHT_LOCATION_MASK ld d, a ld a, [wMapGroup] ld b, a ld a, [wMapNumber] ld c, a call GetWorldMapLocation cp d ld c, HAPPINESS_GAINLEVEL jr nz, .ok ld c, HAPPINESS_GAINLEVELATHOME .ok callfar ChangeHappiness ret