Merge pull request #823 from GriffinRichards/constants-strconv
Use STR_CONV constants
This commit is contained in:
+5
-5
@@ -1743,7 +1743,7 @@ static void PopulateBattleFrontierStreak(int matchCallId, u8 *destStr)
|
||||
i++;
|
||||
}
|
||||
|
||||
ConvertIntToDecimalStringN(destStr, gBattleFrontierStreakInfo.streak, 0, i);
|
||||
ConvertIntToDecimalStringN(destStr, gBattleFrontierStreakInfo.streak, STR_CONV_MODE_LEFT_ALIGN, i);
|
||||
}
|
||||
|
||||
static const u16 sBadgeFlags[] =
|
||||
@@ -1976,8 +1976,8 @@ void sub_8197080(u8 *destStr)
|
||||
|
||||
numSeen = GetHoennPokedexCount(FLAG_GET_SEEN);
|
||||
numCaught = GetHoennPokedexCount(FLAG_GET_CAUGHT);
|
||||
ConvertIntToDecimalStringN(gStringVar1, numSeen, 0, 3);
|
||||
ConvertIntToDecimalStringN(gStringVar2, numCaught, 0, 3);
|
||||
ConvertIntToDecimalStringN(gStringVar1, numSeen, STR_CONV_MODE_LEFT_ALIGN, 3);
|
||||
ConvertIntToDecimalStringN(gStringVar2, numCaught, STR_CONV_MODE_LEFT_ALIGN, 3);
|
||||
dexRatingLevel = GetPokedexRatingLevel(numCaught);
|
||||
str = StringCopy(buffer, gBirchDexRatingText_AreYouCurious);
|
||||
str[0] = CHAR_PROMPT_CLEAR;
|
||||
@@ -1994,8 +1994,8 @@ void sub_8197080(u8 *destStr)
|
||||
str++;
|
||||
numSeen = GetNationalPokedexCount(FLAG_GET_SEEN);
|
||||
numCaught = GetNationalPokedexCount(FLAG_GET_CAUGHT);
|
||||
ConvertIntToDecimalStringN(gStringVar1, numSeen, 0, 3);
|
||||
ConvertIntToDecimalStringN(gStringVar2, numCaught, 0, 3);
|
||||
ConvertIntToDecimalStringN(gStringVar1, numSeen, STR_CONV_MODE_LEFT_ALIGN, 3);
|
||||
ConvertIntToDecimalStringN(gStringVar2, numCaught, STR_CONV_MODE_LEFT_ALIGN, 3);
|
||||
StringExpandPlaceholders(str, gBirchDexRatingText_OnANationwideBasis);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user