diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-04-08 12:59:08 -0700 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2018-04-08 12:59:08 -0700 |
commit | 0a3b052bdc89eacddd1152049983c89dde37e7e4 (patch) | |
tree | 0af462596f61ad10ca49febeae3aa508c9a906c9 /src/field_control_avatar.c | |
parent | 562dcc4bcdc14d5b6c0bb2a638410156945cdd41 (diff) |
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++; } } } |