You are not logged in.
I'm porting party-wide Happiness/Friendship into Red/Blue. So far it's been quite successful, though I'm running into an issue with Friendship via an item.
In Yellow, you could get Friendship by giving Pika healing items. In later gens, it was certain foods. I wanted to apply this by way of the vending drinks. Here is what I've got in my HPRestore code
.notUsingSoftboiled2 ld a, [wcf91] ld b, 20 ; Potion heal amount cp POTION jr z, .addHealAmount ld b, 50 ; Super Potion heal amount cp SUPER_POTION jr z, .addHealAmount ld b, 120 ; Hyper Potion heal amount cp HYPER_POTION jr z, .addHealAmount ld b, 50 ; Fresh Water heal amount cp FRESH_WATER jr z, .addFriendship ld b, 60 ; Soda Pop heal amount cp SODA_POP jr z, .addFriendship ld b, 80 ; Lemonade heal amount cp LEMONADE jr z, .addFriendship ld b, 100 ; MooMoo Milk heal amount ; BUG - Supposed to work for vending drinks... but it doesn't .addFriendship push hl push de push bc callabd_ModifyFriendship FRIENDSHIP_USEDITEM pop bc pop de pop hl ; fallthrough. Heal afterward .addHealAmount ...
The '.addFriendship block adds friendship, obviously. If I set any potions to jump to this, they add friendship and heal properly. But with the non-potion drinks, no matter what I do, they never affect friendship. I've even gone into the debugger and it shows that the drinks properly jump to this block of code first, but it's just not working.
Has anyone tried doing something like this before? any ideas off-hand?