diff options
author | scnorton <scnorton@biociphers.org> | 2017-08-30 09:52:16 -0400 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-08-30 09:52:16 -0400 |
commit | c8ceacec344b229a56ec44bf1835345a7a7f5f54 (patch) | |
tree | d5ec27a7e7c85c4280ac2bcbbc7a7555279eeaf5 /src | |
parent | 7755869cd2b521cb0a608f5f71c8a272e81cb214 (diff) |
Through sub_8041960
Diffstat (limited to 'src')
-rw-r--r-- | src/daycare.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/daycare.c b/src/daycare.c index 8096904b0..922d1fd45 100644 --- a/src/daycare.c +++ b/src/daycare.c @@ -307,3 +307,32 @@ void sub_80418F0(struct DayCareData *dayCareData) dayCareData->unk_118 = (Random() % 0xfffe) + 1; FlagSet(0x86); } + +void sub_804191C(struct DayCareData *dayCareData) +{ + dayCareData->unk_118 = Random() | 0x8000; + FlagSet(0x86); +} + +void sub_8041940(void) +{ + sub_80418F0(&gSaveBlock1.daycareData); +} + +void sub_8041950(void) +{ + sub_804191C(&gSaveBlock1.daycareData); +} + +void sub_8041960(u8 *data, u8 idx) +{ + int i, j; + u8 temp[6]; + data[idx] = 0xff; + for (i = 0; i < 6; i ++) + temp[i] = data[i]; + j = 0; + for (i = 0; i < 6; i ++) + if (temp[i] != 0xff) + data[j++] = temp[i]; +} |