summaryrefslogtreecommitdiff
path: root/src/battle_2.c
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-05-23 21:21:59 -0400
committerGitHub <noreply@github.com>2017-05-23 21:21:59 -0400
commit9640df02dd8651d5b05cf3767f6c7e16a697db3b (patch)
treedf7fed98e02c4113507f6994e615b8f8074dd69e /src/battle_2.c
parent21ffe2fa910ede21f0f18a3013ed8ba29c70011e (diff)
parent3f7d0a195afd90c182cd631e14f5acb5d29be34b (diff)
Merge pull request #303 from marijnvdwerf/clean/includes
Clean/includes
Diffstat (limited to 'src/battle_2.c')
-rw-r--r--src/battle_2.c28
1 files changed, 5 insertions, 23 deletions
diff --git a/src/battle_2.c b/src/battle_2.c
index 12fd4182d..6bcccbaf9 100644
--- a/src/battle_2.c
+++ b/src/battle_2.c
@@ -1,6 +1,7 @@
#include "global.h"
#include "asm.h"
#include "battle.h"
+#include "data2.h"
#include "main.h"
#include "text.h"
#include "palette.h"
@@ -17,18 +18,6 @@
#include "trig.h"
#include "abilities.h"
-struct MonCoords
-{
- u8 x, y;
-};
-
-struct UnknownStruct5
-{
- u32 unk0;
- u32 unk4;
- u32 unk8;
-};
-
struct UnknownStruct6
{
u16 unk0[0xA0];
@@ -138,14 +127,7 @@ struct UnknownStruct13
u8 filler4[12];
};
-extern const struct UnknownStruct5 gUnknown_081F9674;
-extern const u8 gUnknown_081F96C8[];
-extern void *const gUnknown_081FAF4C[];
extern const u16 gUnknown_08D004E0[];
-extern const struct Trainer gTrainers[];
-extern const u8 gSpeciesNames[][11];
-extern const struct BattleMove gBattleMoves[];
-extern const struct MonCoords gMonFrontPicCoords[];
extern const struct MonCoords gCastformFrontSpriteCoords[];
extern const struct BaseStats gBaseStats[];
extern const u32 gBitTable[];
@@ -1524,19 +1506,19 @@ void sub_8010384(struct Sprite *sprite)
else
unownSpecies = NUM_SPECIES + unownForm; // Use one of the other Unown letters
- yOffset = gMonFrontPicCoords[unownSpecies].y;
+ yOffset = gMonFrontPicCoords[unownSpecies].y_offset;
}
else if (species == SPECIES_CASTFORM)
{
- yOffset = gCastformFrontSpriteCoords[gBattleMonForms[r6]].y;
+ yOffset = gCastformFrontSpriteCoords[gBattleMonForms[r6]].y_offset;
}
else if (species > NUM_SPECIES)
{
- yOffset = gMonFrontPicCoords[SPECIES_NONE].y;
+ yOffset = gMonFrontPicCoords[SPECIES_NONE].y_offset;
}
else
{
- yOffset = gMonFrontPicCoords[species].y;
+ yOffset = gMonFrontPicCoords[species].y_offset;
}
sprite->data3 = 8 - yOffset / 8;