Merge pull request #1492 from LOuroboros/battle_debug
Tweaked src/battle_debug.c to comply with the PE
This commit is contained in:
commit
9584b8539f
1 changed files with 28 additions and 0 deletions
|
@ -746,9 +746,15 @@ static void Task_ShowAiPoints(u8 taskId)
|
|||
{
|
||||
if (i != data->aiBattlerId && IsBattlerAlive(i))
|
||||
{
|
||||
#ifndef POKEMON_EXPANSION
|
||||
data->aiIconSpriteIds[i] = CreateMonIcon(gBattleMons[i].species,
|
||||
SpriteCallbackDummy,
|
||||
95 + (count * 60), 17, 0, 0, FALSE);
|
||||
#else
|
||||
data->aiIconSpriteIds[i] = CreateMonIcon(gBattleMons[i].species,
|
||||
SpriteCallbackDummy,
|
||||
95 + (count * 60), 17, 0, 0);
|
||||
#endif
|
||||
gSprites[data->aiIconSpriteIds[i]].data[0] = i; // battler id
|
||||
count++;
|
||||
}
|
||||
|
@ -757,11 +763,19 @@ static void Task_ShowAiPoints(u8 taskId)
|
|||
data->aiIconSpriteIds[i] = 0xFF;
|
||||
}
|
||||
}
|
||||
#ifndef POKEMON_EXPANSION
|
||||
data->aiMonSpriteId = CreateMonPicSprite_HandleDeoxys(gBattleMons[data->aiBattlerId].species,
|
||||
gBattleMons[data->aiBattlerId].otId,
|
||||
gBattleMons[data->aiBattlerId].personality,
|
||||
TRUE,
|
||||
39, 130, 15, 0xFFFF);
|
||||
#else
|
||||
data->aiMonSpriteId = CreateMonPicSprite(gBattleMons[data->aiBattlerId].species,
|
||||
gBattleMons[data->aiBattlerId].otId,
|
||||
gBattleMons[data->aiBattlerId].personality,
|
||||
TRUE,
|
||||
39, 130, 15, 0xFFFF);
|
||||
#endif
|
||||
data->aiViewState++;
|
||||
break;
|
||||
// Put text
|
||||
|
@ -855,9 +869,15 @@ static void Task_ShowAiKnowledge(u8 taskId)
|
|||
{
|
||||
if (GET_BATTLER_SIDE(i) == B_SIDE_PLAYER && IsBattlerAlive(i))
|
||||
{
|
||||
#ifndef POKEMON_EXPANSION
|
||||
data->aiIconSpriteIds[i] = CreateMonIcon(gBattleMons[i].species,
|
||||
SpriteCallbackDummy,
|
||||
95 + (count * 80), 17, 0, 0, FALSE);
|
||||
#else
|
||||
data->aiIconSpriteIds[i] = CreateMonIcon(gBattleMons[i].species,
|
||||
SpriteCallbackDummy,
|
||||
95 + (count * 80), 17, 0, 0);
|
||||
#endif
|
||||
gSprites[data->aiIconSpriteIds[i]].data[0] = i; // battler id
|
||||
count++;
|
||||
}
|
||||
|
@ -866,11 +886,19 @@ static void Task_ShowAiKnowledge(u8 taskId)
|
|||
data->aiIconSpriteIds[i] = 0xFF;
|
||||
}
|
||||
}
|
||||
#ifndef POKEMON_EXPANSION
|
||||
data->aiMonSpriteId = CreateMonPicSprite_HandleDeoxys(gBattleMons[data->aiBattlerId].species,
|
||||
gBattleMons[data->aiBattlerId].otId,
|
||||
gBattleMons[data->aiBattlerId].personality,
|
||||
TRUE,
|
||||
39, 130, 15, 0xFFFF);
|
||||
#else
|
||||
data->aiMonSpriteId = CreateMonPicSprite(gBattleMons[data->aiBattlerId].species,
|
||||
gBattleMons[data->aiBattlerId].otId,
|
||||
gBattleMons[data->aiBattlerId].personality,
|
||||
TRUE,
|
||||
39, 130, 15, 0xFFFF);
|
||||
#endif
|
||||
data->aiViewState++;
|
||||
break;
|
||||
// Put text
|
||||
|
|
Loading…
Reference in a new issue