battle file more done and clean up tv

This commit is contained in:
DizzyEggg
2018-02-27 18:13:28 +01:00
parent 8ff9cb0ede
commit a9212eeb66
10 changed files with 719 additions and 1807 deletions

View File

@@ -1612,7 +1612,7 @@ bool8 ScrCmd_buffernumberstring(struct ScriptContext *ctx)
{
u8 stringVarIndex = ScriptReadByte(ctx);
u16 v1 = VarGet(ScriptReadHalfword(ctx));
u8 v2 = sub_80EF370(v1);
u8 v2 = CountDigits(v1);
ConvertIntToDecimalStringN(sScriptStringVars[stringVarIndex], v1, 0, v2);
return FALSE;