summaryrefslogtreecommitdiff
path: root/src/battle_anim_effects_3.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-06-29 14:31:37 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-06-29 14:31:37 -0400
commit4b9835fbdf223072589325f4273275c55072d72c (patch)
tree73ac0abae00d7b09902536eaee635e905a6b3aa6 /src/battle_anim_effects_3.c
parent4052af2e024fa1cd5a821b3818b9aacd3c6605ce (diff)
Merge transform status struct into gBattleSpriteInfo
Diffstat (limited to 'src/battle_anim_effects_3.c')
-rw-r--r--src/battle_anim_effects_3.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/battle_anim_effects_3.c b/src/battle_anim_effects_3.c
index ab2e7aeca..a8a5b1a35 100644
--- a/src/battle_anim_effects_3.c
+++ b/src/battle_anim_effects_3.c
@@ -2362,7 +2362,7 @@ void sub_812D7E8(u8 taskId)
if (GetBattlerSide(gBattleAnimAttacker) == B_SIDE_OPPONENT)
{
if (gTasks[taskId].data[10] == 0)
- sub_8032984(gBattleAnimAttacker, eTransformStatuses[gBattleAnimAttacker].species);
+ sub_8032984(gBattleAnimAttacker, gBattleSpriteInfo[gBattleAnimAttacker].transformedSpecies);
}
}
@@ -3202,7 +3202,7 @@ void AnimTask_RolePlaySilhouette(u8 taskId)
isBackPic = 0;
personality = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gBattleAnimTarget]], MON_DATA_PERSONALITY);
otId = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gBattleAnimTarget]], MON_DATA_OT_ID);
- if (eTransformStatuses[gBattleAnimTarget].species == SPECIES_NONE)
+ if (gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies == SPECIES_NONE)
{
if (GetBattlerSide(gBattleAnimTarget) == B_SIDE_PLAYER)
species = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gBattleAnimTarget]], MON_DATA_SPECIES);
@@ -3211,7 +3211,7 @@ void AnimTask_RolePlaySilhouette(u8 taskId)
}
else
{
- species = eTransformStatuses[gBattleAnimTarget].species;
+ species = gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies;
}
xOffset = 20;
@@ -3222,7 +3222,7 @@ void AnimTask_RolePlaySilhouette(u8 taskId)
isBackPic = 1;
personality = GetMonData(&gEnemyParty[gBattlerPartyIndexes[gBattleAnimTarget]], MON_DATA_PERSONALITY);
otId = GetMonData(&gEnemyParty[gBattlerPartyIndexes[gBattleAnimTarget]], MON_DATA_OT_ID);
- if (eTransformStatuses[gBattleAnimTarget].species == SPECIES_NONE)
+ if (gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies == SPECIES_NONE)
{
if (GetBattlerSide(gBattleAnimTarget) == B_SIDE_PLAYER)
species = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gBattleAnimTarget]], MON_DATA_SPECIES);
@@ -3231,7 +3231,7 @@ void AnimTask_RolePlaySilhouette(u8 taskId)
}
else
{
- species = eTransformStatuses[gBattleAnimTarget].species;
+ species = gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies;
}
xOffset = -20;
@@ -4964,10 +4964,10 @@ void AnimTask_SnatchOpposingMonMove(u8 taskId)
{
personality = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gBattleAnimAttacker]], MON_DATA_PERSONALITY);
otId = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gBattleAnimAttacker]], MON_DATA_OT_ID);
- if (eTransformStatuses[gBattleAnimTarget].species == SPECIES_NONE)
+ if (gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies == SPECIES_NONE)
species = GetMonData(&gPlayerParty[gBattlerPartyIndexes[gBattleAnimAttacker]], MON_DATA_SPECIES);
else
- species = eTransformStatuses[gBattleAnimTarget].species;
+ species = gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies;
subpriority = gSprites[GetAnimBattlerSpriteId(ANIM_BATTLER_TARGET)].subpriority + 1;
isBackPic = 0;
@@ -4977,10 +4977,10 @@ void AnimTask_SnatchOpposingMonMove(u8 taskId)
{
personality = GetMonData(&gEnemyParty[gBattlerPartyIndexes[gBattleAnimAttacker]], MON_DATA_PERSONALITY);
otId = GetMonData(&gEnemyParty[gBattlerPartyIndexes[gBattleAnimAttacker]], MON_DATA_OT_ID);
- if (eTransformStatuses[gBattleAnimTarget].species == SPECIES_NONE)
+ if (gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies == SPECIES_NONE)
species = GetMonData(&gEnemyParty[gBattlerPartyIndexes[gBattleAnimAttacker]], MON_DATA_SPECIES);
else
- species = eTransformStatuses[gBattleAnimTarget].species;
+ species = gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies;
subpriority = gSprites[GetAnimBattlerSpriteId(ANIM_BATTLER_TARGET)].subpriority - 1;
isBackPic = 1;
@@ -4989,7 +4989,7 @@ void AnimTask_SnatchOpposingMonMove(u8 taskId)
}
spriteId2 = sub_8079F44(species, isBackPic, 0, x, GetBattlerSpriteCoord(gBattleAnimTarget, BATTLER_COORD_Y), subpriority, personality, otId);
- if (eTransformStatuses[gBattleAnimTarget].species != SPECIES_NONE)
+ if (gBattleSpriteInfo[gBattleAnimTarget].transformedSpecies != SPECIES_NONE)
BlendPalette((gSprites[spriteId2].oam.paletteNum * 16) | 0x100, 16, 6, RGB_WHITE);
gTasks[taskId].data[15] = spriteId2;