start pokemon3 decomp

This commit is contained in:
DizzyEggg
2017-09-11 11:35:41 +02:00
parent 6292b82503
commit 154a70e228
44 changed files with 1571 additions and 3153 deletions
+12 -3
View File
@@ -187,8 +187,7 @@ struct Trainer
{
/*0x00*/ u8 partyFlags;
/*0x01*/ u8 trainerClass;
/*0x02*/ u8 encounterMusic:7;
/*0x02*/ u8 gender:1;
/*0x02*/ u8 encounterMusic_gender; // last bit is gender
/*0x03*/ u8 trainerPic;
/*0x04*/ u8 trainerName[12];
/*0x10*/ u16 items[4];
@@ -200,6 +199,8 @@ struct Trainer
extern const struct Trainer gTrainers[];
#define TRAINER_ENCOUNTER_MUSIC(trainer)((gTrainers[trainer].encounterMusic_gender & 0x7F))
struct UnknownFlags
{
u32 flags[4];
@@ -412,4 +413,12 @@ struct BattleScripting
extern struct BattleScripting gBattleScripting;
#endif
struct BattleDecompressedSprites
{
void* firstDecompressed; // ptr to the decompressed sprite of the first pokemon
void* sprites[4];
};
extern struct BattleDecompressedSprites* gBattleDecompressedSprites;
#endif // GUARD_BATTLE_H