diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-04-09 16:25:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 16:25:52 -0700 |
commit | 1f60ac0f857da06bd8a678f7150c42cc94940f3f (patch) | |
tree | 067e6d9ced922b6abc98c473656afec09d2daf5e /src/field_control_avatar.c | |
parent | 84c5825c8ecc9804313ec3b1a8dcc0271ee4c2cc (diff) | |
parent | d26de1d236c7f3358e56733955460078e07712c7 (diff) |
Merge pull request #591 from huderlem/misc_doc
Document friendship events, primary status ailments, and misc cleanup
Diffstat (limited to 'src/field_control_avatar.c')
-rw-r--r-- | src/field_control_avatar.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/field_control_avatar.c b/src/field_control_avatar.c index 3ae422512..918ab0e21 100644 --- a/src/field_control_avatar.c +++ b/src/field_control_avatar.c @@ -587,12 +587,11 @@ static void happiness_algorithm_step(void) (*ptr) %= 128; if (*ptr == 0) { - struct Pokemon *pkmn = gPlayerParty; - - for (i = 0; i < 6; i++) + struct Pokemon *mon = gPlayerParty; + for (i = 0; i < PARTY_SIZE; i++) { - AdjustFriendship(pkmn, 5); - pkmn++; + AdjustFriendship(mon, FRIENDSHIP_EVENT_WALKING); + mon++; } } } |