diff options
author | scnorton <scnorton@biociphers.org> | 2017-08-30 17:43:31 -0400 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-08-30 17:43:31 -0400 |
commit | d73bd667323a309c3a38d380bcb0c644a101a251 (patch) | |
tree | 2de0b40d8369ab5e37797c52aa409f0170978881 /src | |
parent | 3d0ed365b41a5be040bee12bab3bcb502ad44eee (diff) |
DaycareLevelMenuGetLevelText
Diffstat (limited to 'src')
-rw-r--r-- | src/daycare.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/daycare.c b/src/daycare.c index e39c39f71..e4dc2cc45 100644 --- a/src/daycare.c +++ b/src/daycare.c @@ -1599,3 +1599,24 @@ void DaycareLevelMenuGetText(struct DayCareData *dayCareData, u8 *dest) StringAppend(dest, gOtherText_NewLine2); StringAppend(dest, gOtherText_CancelAndLv); } + +void DaycareLevelMenuGetLevelText(struct DayCareData *dayCareData, u8 *dest) +{ + u8 i; + u8 level; + *dest = EOS; + for (i = 0; i < 2; i ++) + { + level = Daycare_GetLevelAfterSteps(&dayCareData->mons[i], dayCareData->mail.extra.egg.steps[i]); + dest[0] = 0x34; + dest[1] = 0xFC; + dest[2] = 0x14; + dest[3] = 0x06; + dest = ConvertIntToDecimalStringN(dest + 4, level, STR_CONV_MODE_RIGHT_ALIGN, 3); + dest[0] = 0xFC; + dest[1] = 0x14; + dest[2] = 0x00; + dest = StringCopy(dest + 3, gOtherText_NewLine2); + } + *dest = EOS; +} |