mirror of
https://github.com/FireEmblemUniverse/fireemblem8u.git
synced 2024-11-27 07:00:21 +00:00
tab to spaces
This commit is contained in:
parent
6371d1f58e
commit
6cc3b7f9fa
146
include/bmunit.h
146
include/bmunit.h
@ -162,36 +162,36 @@ struct Unit {
|
||||
};
|
||||
|
||||
struct UnitDefinition {
|
||||
/* 00 */ u8 charIndex;
|
||||
/* 01 */ u8 classIndex;
|
||||
/* 02 */ u8 leaderCharIndex;
|
||||
/* 00 */ u8 charIndex;
|
||||
/* 01 */ u8 classIndex;
|
||||
/* 02 */ u8 leaderCharIndex;
|
||||
|
||||
/* 03 */ u8 autolevel : 1;
|
||||
/* 03 */ u8 allegiance : 2;
|
||||
/* 03 */ u8 level : 5;
|
||||
/* 03 */ u8 autolevel : 1;
|
||||
/* 03 */ u8 allegiance : 2;
|
||||
/* 03 */ u8 level : 5;
|
||||
|
||||
/* 04 */ u16 xPosition : 6; /* 04:0 to 04:5 */
|
||||
/* 04 */ u16 yPosition : 6; /* 04:6 to 05:3 */
|
||||
/* 05 */ u16 genMonster : 1; /* 05:4 */
|
||||
/* 05 */ u16 itemDrop : 1; /* 05:5 */
|
||||
/* 05 */ u16 sumFlag : 1; /* 05:6 */
|
||||
/* 05 */ u16 extraData : 9; /* 05:7 to 06:7 */
|
||||
/* 07 */ u16 redaCount : 8;
|
||||
/* 04 */ u16 xPosition : 6; /* 04:0 to 04:5 */
|
||||
/* 04 */ u16 yPosition : 6; /* 04:6 to 05:3 */
|
||||
/* 05 */ u16 genMonster : 1; /* 05:4 */
|
||||
/* 05 */ u16 itemDrop : 1; /* 05:5 */
|
||||
/* 05 */ u16 sumFlag : 1; /* 05:6 */
|
||||
/* 05 */ u16 extraData : 9; /* 05:7 to 06:7 */
|
||||
/* 07 */ u16 redaCount : 8;
|
||||
|
||||
/* 08 */ const void* redas;
|
||||
/* 08 */ const void* redas;
|
||||
|
||||
/* 0C */ u8 items[UNIT_DEFINITION_ITEM_COUNT];
|
||||
/* 0C */ u8 items[UNIT_DEFINITION_ITEM_COUNT];
|
||||
|
||||
struct {
|
||||
/* 10 */ u8 ai1;
|
||||
/* 11 */ u8 ai2;
|
||||
/* 12 */ u8 ai3;
|
||||
/* 13 */ u8 ai4;
|
||||
} ai;
|
||||
struct {
|
||||
/* 10 */ u8 ai1;
|
||||
/* 11 */ u8 ai2;
|
||||
/* 12 */ u8 ai3;
|
||||
/* 13 */ u8 ai4;
|
||||
} ai;
|
||||
};
|
||||
|
||||
enum {
|
||||
// Unit state constant masks
|
||||
// Unit state constant masks
|
||||
|
||||
US_NONE = 0,
|
||||
|
||||
@ -234,7 +234,7 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
// Unit status identifiers
|
||||
// Unit status identifiers
|
||||
|
||||
UNIT_STATUS_NONE = 0,
|
||||
|
||||
@ -257,14 +257,14 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
FACTION_BLUE = 0x00, // player units
|
||||
FACTION_GREEN = 0x40, // ally npc units
|
||||
FACTION_RED = 0x80, // enemy units
|
||||
FACTION_PURPLE = 0xC0, // link arena 4th team
|
||||
FACTION_BLUE = 0x00, // player units
|
||||
FACTION_GREEN = 0x40, // ally npc units
|
||||
FACTION_RED = 0x80, // enemy units
|
||||
FACTION_PURPLE = 0xC0, // link arena 4th team
|
||||
};
|
||||
|
||||
enum {
|
||||
// Character/Class attributes
|
||||
// Character/Class attributes
|
||||
|
||||
CA_NONE = 0,
|
||||
|
||||
@ -306,66 +306,66 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
// To check result of GetUnit[Item]UseBits
|
||||
// To check result of GetUnit[Item]UseBits
|
||||
|
||||
UNIT_USEBIT_WEAPON = (1 << 0),
|
||||
UNIT_USEBIT_STAFF = (1 << 1),
|
||||
UNIT_USEBIT_WEAPON = (1 << 0),
|
||||
UNIT_USEBIT_STAFF = (1 << 1),
|
||||
};
|
||||
|
||||
// TODO: MOVE ELSEWHERE (bmbattle?)
|
||||
struct BattleUnit {
|
||||
/* 00 */ struct Unit unit;
|
||||
/* 00 */ struct Unit unit;
|
||||
|
||||
/* 48 */ u16 weaponAfter;
|
||||
/* 4A */ u16 weaponBefore;
|
||||
/* 4C */ u32 weaponAttributes;
|
||||
/* 50 */ u8 weaponType;
|
||||
/* 51 */ u8 weaponSlotIndex;
|
||||
/* 48 */ u16 weaponAfter;
|
||||
/* 4A */ u16 weaponBefore;
|
||||
/* 4C */ u32 weaponAttributes;
|
||||
/* 50 */ u8 weaponType;
|
||||
/* 51 */ u8 weaponSlotIndex;
|
||||
|
||||
/* 52 */ u8 canCounter;
|
||||
/* 52 */ u8 canCounter;
|
||||
|
||||
/* 53 */ s8 WTHitModifier;
|
||||
/* 54 */ s8 WTAtkModifier;
|
||||
/* 53 */ s8 WTHitModifier;
|
||||
/* 54 */ s8 WTAtkModifier;
|
||||
|
||||
/* 55 */ u8 terrainIndex;
|
||||
/* 56 */ u8 terrainDefense;
|
||||
/* 57 */ u8 terrainAvoid;
|
||||
/* 58 */ u8 terrainResistance;
|
||||
/* 59 */ u8 _u59;
|
||||
/* 55 */ u8 terrainIndex;
|
||||
/* 56 */ u8 terrainDefense;
|
||||
/* 57 */ u8 terrainAvoid;
|
||||
/* 58 */ u8 terrainResistance;
|
||||
/* 59 */ u8 _u59;
|
||||
|
||||
/* 5A */ u16 battleAttack;
|
||||
/* 5C */ u16 battleDefense;
|
||||
/* 5E */ u16 battleAttackSpeed;
|
||||
/* 60 */ u16 battleHit;
|
||||
/* 62 */ u16 battleAvoid;
|
||||
/* 64 */ u16 battleEffectiveHit;
|
||||
/* 66 */ u16 battleCrit;
|
||||
/* 68 */ u16 battleDodge;
|
||||
/* 6A */ u16 battleEffectiveCrit;
|
||||
/* 6C */ u16 battleSilencerRate;
|
||||
/* 5A */ u16 battleAttack;
|
||||
/* 5C */ u16 battleDefense;
|
||||
/* 5E */ u16 battleAttackSpeed;
|
||||
/* 60 */ u16 battleHit;
|
||||
/* 62 */ u16 battleAvoid;
|
||||
/* 64 */ u16 battleEffectiveHit;
|
||||
/* 66 */ u16 battleCrit;
|
||||
/* 68 */ u16 battleDodge;
|
||||
/* 6A */ u16 battleEffectiveCrit;
|
||||
/* 6C */ u16 battleSilencerRate;
|
||||
|
||||
/* 6E */ u8 expGain;
|
||||
/* 6F */ u8 statusOut;
|
||||
/* 70 */ u8 levelPrevious;
|
||||
/* 71 */ u8 expPrevious;
|
||||
/* 6E */ u8 expGain;
|
||||
/* 6F */ u8 statusOut;
|
||||
/* 70 */ u8 levelPrevious;
|
||||
/* 71 */ u8 expPrevious;
|
||||
|
||||
/* 72 */ u8 currentHP;
|
||||
/* 72 */ u8 currentHP;
|
||||
|
||||
/* 73 */ s8 changeHP;
|
||||
/* 74 */ s8 changePow;
|
||||
/* 75 */ s8 changeSkl;
|
||||
/* 76 */ s8 changeSpd;
|
||||
/* 77 */ s8 changeDef;
|
||||
/* 78 */ s8 changeRes;
|
||||
/* 79 */ s8 changeLck;
|
||||
/* 7A */ s8 changeCon;
|
||||
/* 73 */ s8 changeHP;
|
||||
/* 74 */ s8 changePow;
|
||||
/* 75 */ s8 changeSkl;
|
||||
/* 76 */ s8 changeSpd;
|
||||
/* 77 */ s8 changeDef;
|
||||
/* 78 */ s8 changeRes;
|
||||
/* 79 */ s8 changeLck;
|
||||
/* 7A */ s8 changeCon;
|
||||
|
||||
/* 7B */ s8 wexpMultiplier;
|
||||
/* 7C */ u8 nonZeroDamage;
|
||||
/* 7D */ u8 weaponBroke;
|
||||
/* 7B */ s8 wexpMultiplier;
|
||||
/* 7C */ u8 nonZeroDamage;
|
||||
/* 7D */ u8 weaponBroke;
|
||||
|
||||
/* 7E */ u8 _u7E;
|
||||
/* 7F */ u8 _u7F;
|
||||
/* 7E */ u8 _u7E;
|
||||
/* 7F */ u8 _u7F;
|
||||
};
|
||||
|
||||
// TODO: MOVE ELSEWHERE
|
||||
|
@ -2,99 +2,99 @@
|
||||
#define GUARD_CONSTANTS_CHARACTERS_H
|
||||
|
||||
enum {
|
||||
CHARACTER_NONE = 0x00,
|
||||
CHARACTER_NONE = 0x00,
|
||||
|
||||
// Player Characters
|
||||
CHARACTER_EIRIKA = 0x01,
|
||||
CHARACTER_SETH = 0x02,
|
||||
CHARACTER_GILLIAM = 0x03,
|
||||
CHARACTER_FRANZ = 0x04,
|
||||
CHARACTER_MOULDER = 0x05,
|
||||
CHARACTER_VANESSA = 0x06,
|
||||
CHARACTER_ROSS = 0x07,
|
||||
CHARACTER_NEIMI = 0x08,
|
||||
CHARACTER_COLM = 0x09,
|
||||
CHARACTER_GARCIA = 0x0A,
|
||||
CHARACTER_INNES = 0x0B,
|
||||
CHARACTER_LUTE = 0x0C,
|
||||
CHARACTER_NATASHA = 0x0D,
|
||||
CHARACTER_CORMAG = 0x0E,
|
||||
CHARACTER_EPHRAIM = 0x0F,
|
||||
CHARACTER_FORDE = 0x10,
|
||||
CHARACTER_KYLE = 0x11,
|
||||
CHARACTER_AMELIA = 0x12,
|
||||
CHARACTER_ARTUR = 0x13,
|
||||
CHARACTER_GERIK = 0x14,
|
||||
CHARACTER_TETHYS = 0x15,
|
||||
CHARACTER_MARISA = 0x16,
|
||||
CHARACTER_SALEH = 0x17,
|
||||
CHARACTER_EWAN = 0x18,
|
||||
CHARACTER_LARACHEL = 0x19,
|
||||
CHARACTER_DOZLA = 0x1A,
|
||||
CHARACTER_RENNAC = 0x1C,
|
||||
CHARACTER_DUESSEL = 0x1D,
|
||||
CHARACTER_MYRRH = 0x1E,
|
||||
CHARACTER_KNOLL = 0x1F,
|
||||
CHARACTER_JOSHUA = 0x20,
|
||||
CHARACTER_SYRENE = 0x21,
|
||||
CHARACTER_TANA = 0x22,
|
||||
CHARACTER_LYON_CC = 0x23,
|
||||
CHARACTER_ORSON_CC = 0x24,
|
||||
CHARACTER_GLEN_CC = 0x25,
|
||||
CHARACTER_SELENA_CC = 0x26,
|
||||
CHARACTER_VALTER_CC = 0x27,
|
||||
CHARACTER_RIEV_CC = 0x28,
|
||||
CHARACTER_CAELLACH_CC = 0x29,
|
||||
CHARACTER_FADO_CC = 0x2A,
|
||||
CHARACTER_ISMAIRE_CC = 0x2B,
|
||||
CHARACTER_HAYDEN_CC = 0x2C,
|
||||
// Player Characters
|
||||
CHARACTER_EIRIKA = 0x01,
|
||||
CHARACTER_SETH = 0x02,
|
||||
CHARACTER_GILLIAM = 0x03,
|
||||
CHARACTER_FRANZ = 0x04,
|
||||
CHARACTER_MOULDER = 0x05,
|
||||
CHARACTER_VANESSA = 0x06,
|
||||
CHARACTER_ROSS = 0x07,
|
||||
CHARACTER_NEIMI = 0x08,
|
||||
CHARACTER_COLM = 0x09,
|
||||
CHARACTER_GARCIA = 0x0A,
|
||||
CHARACTER_INNES = 0x0B,
|
||||
CHARACTER_LUTE = 0x0C,
|
||||
CHARACTER_NATASHA = 0x0D,
|
||||
CHARACTER_CORMAG = 0x0E,
|
||||
CHARACTER_EPHRAIM = 0x0F,
|
||||
CHARACTER_FORDE = 0x10,
|
||||
CHARACTER_KYLE = 0x11,
|
||||
CHARACTER_AMELIA = 0x12,
|
||||
CHARACTER_ARTUR = 0x13,
|
||||
CHARACTER_GERIK = 0x14,
|
||||
CHARACTER_TETHYS = 0x15,
|
||||
CHARACTER_MARISA = 0x16,
|
||||
CHARACTER_SALEH = 0x17,
|
||||
CHARACTER_EWAN = 0x18,
|
||||
CHARACTER_LARACHEL = 0x19,
|
||||
CHARACTER_DOZLA = 0x1A,
|
||||
CHARACTER_RENNAC = 0x1C,
|
||||
CHARACTER_DUESSEL = 0x1D,
|
||||
CHARACTER_MYRRH = 0x1E,
|
||||
CHARACTER_KNOLL = 0x1F,
|
||||
CHARACTER_JOSHUA = 0x20,
|
||||
CHARACTER_SYRENE = 0x21,
|
||||
CHARACTER_TANA = 0x22,
|
||||
CHARACTER_LYON_CC = 0x23,
|
||||
CHARACTER_ORSON_CC = 0x24,
|
||||
CHARACTER_GLEN_CC = 0x25,
|
||||
CHARACTER_SELENA_CC = 0x26,
|
||||
CHARACTER_VALTER_CC = 0x27,
|
||||
CHARACTER_RIEV_CC = 0x28,
|
||||
CHARACTER_CAELLACH_CC = 0x29,
|
||||
CHARACTER_FADO_CC = 0x2A,
|
||||
CHARACTER_ISMAIRE_CC = 0x2B,
|
||||
CHARACTER_HAYDEN_CC = 0x2C,
|
||||
|
||||
// Summoned Characters
|
||||
CHARACTER_SUMMON_LYON = 0x3B,
|
||||
CHARACTER_SUMMON_KNOLL = 0x3E,
|
||||
CHARACTER_SUMMON_EWAN = 0x3F,
|
||||
// Summoned Characters
|
||||
CHARACTER_SUMMON_LYON = 0x3B,
|
||||
CHARACTER_SUMMON_KNOLL = 0x3E,
|
||||
CHARACTER_SUMMON_EWAN = 0x3F,
|
||||
|
||||
// Boss/Unique Enemy Characters
|
||||
CHARACTER_LYON = 0x40,
|
||||
CHARACTER_MORVA = 0x41,
|
||||
CHARACTER_ORSON_CH5X = 0x42,
|
||||
CHARACTER_VALER = 0x43,
|
||||
CHARACTER_SELENA = 0x44,
|
||||
CHARACTER_VALTER_PROLOGUE = 0x45,
|
||||
CHARACTER_BREGUET = 0x46,
|
||||
CHARACTER_BONE = 0x47,
|
||||
CHARACTER_BAZBA = 0x48,
|
||||
CHARACTER_ENTOUMBED_CH4 = 0x49,
|
||||
CHARACTER_SAAR = 0x4A,
|
||||
CHARACTER_NOVALA = 0x4B,
|
||||
CHARACTER_MURRAY = 0x4C,
|
||||
CHARACTER_TIRADO = 0x4D,
|
||||
CHARACTER_BINKS = 0x4E,
|
||||
CHARACTER_PABLO = 0x4F,
|
||||
CHARACTER_MAELDUIN_CHUnk = 0x50, // TODO: which chapter?
|
||||
CHARACTER_AIAS = 0x51,
|
||||
CHARACTER_CARLYLE = 0x52,
|
||||
CHARACTER_CAELLACH = 0x53,
|
||||
CHARACTER_PABLO_2 = 0x54, // TODO: which chapter?
|
||||
CHARACTER_GORGON_CHUnk = 0x56, // TODO: which chapter?
|
||||
CHARACTER_RIEV = 0x57,
|
||||
CHARACTER_GHEB = 0x5A,
|
||||
CHARACTER_BERAN = 0x5B,
|
||||
CHARACTER_CYCLOPS_CHUnk = 0x5C,
|
||||
CHARACTER_WIGHT_CHUnk = 0x5D,
|
||||
CHARACTER_DEATHGOYLE_CHUnk = 0x5E,
|
||||
CHARACTER_BANDIT_CH5 = 0x66,
|
||||
CHARACTER_ONEILL = 0x68,
|
||||
CHARACTER_GLEN = 0x69,
|
||||
CHARACTER_ZONTA = 0x6A,
|
||||
CHARACTER_VIGARDE = 0x6B,
|
||||
CHARACTER_LYON_FINAL = 0x6C,
|
||||
CHARACTER_ORSON = 0x6D,
|
||||
// Boss/Unique Enemy Characters
|
||||
CHARACTER_LYON = 0x40,
|
||||
CHARACTER_MORVA = 0x41,
|
||||
CHARACTER_ORSON_CH5X = 0x42,
|
||||
CHARACTER_VALER = 0x43,
|
||||
CHARACTER_SELENA = 0x44,
|
||||
CHARACTER_VALTER_PROLOGUE = 0x45,
|
||||
CHARACTER_BREGUET = 0x46,
|
||||
CHARACTER_BONE = 0x47,
|
||||
CHARACTER_BAZBA = 0x48,
|
||||
CHARACTER_ENTOUMBED_CH4 = 0x49,
|
||||
CHARACTER_SAAR = 0x4A,
|
||||
CHARACTER_NOVALA = 0x4B,
|
||||
CHARACTER_MURRAY = 0x4C,
|
||||
CHARACTER_TIRADO = 0x4D,
|
||||
CHARACTER_BINKS = 0x4E,
|
||||
CHARACTER_PABLO = 0x4F,
|
||||
CHARACTER_MAELDUIN_CHUnk = 0x50, // TODO: which chapter?
|
||||
CHARACTER_AIAS = 0x51,
|
||||
CHARACTER_CARLYLE = 0x52,
|
||||
CHARACTER_CAELLACH = 0x53,
|
||||
CHARACTER_PABLO_2 = 0x54, // TODO: which chapter?
|
||||
CHARACTER_GORGON_CHUnk = 0x56, // TODO: which chapter?
|
||||
CHARACTER_RIEV = 0x57,
|
||||
CHARACTER_GHEB = 0x5A,
|
||||
CHARACTER_BERAN = 0x5B,
|
||||
CHARACTER_CYCLOPS_CHUnk = 0x5C,
|
||||
CHARACTER_WIGHT_CHUnk = 0x5D,
|
||||
CHARACTER_DEATHGOYLE_CHUnk = 0x5E,
|
||||
CHARACTER_BANDIT_CH5 = 0x66,
|
||||
CHARACTER_ONEILL = 0x68,
|
||||
CHARACTER_GLEN = 0x69,
|
||||
CHARACTER_ZONTA = 0x6A,
|
||||
CHARACTER_VIGARDE = 0x6B,
|
||||
CHARACTER_LYON_FINAL = 0x6C,
|
||||
CHARACTER_ORSON = 0x6D,
|
||||
|
||||
CHARACTER_FOMORTIIS = 0xBE,
|
||||
CHARACTER_FOMORTIIS = 0xBE,
|
||||
|
||||
CHARACTER_WALL = 0xFE,
|
||||
CHARACTER_SNAG = 0xFF,
|
||||
CHARACTER_WALL = 0xFE,
|
||||
CHARACTER_SNAG = 0xFF,
|
||||
};
|
||||
|
||||
#endif // GUARD_CONSTANTS_CHARACTERS_H
|
||||
|
@ -2,139 +2,139 @@
|
||||
#define GUARD_CONSTANTS_CLASSES_H
|
||||
|
||||
enum {
|
||||
CLASS_NONE = 0x00,
|
||||
CLASS_NONE = 0x00,
|
||||
|
||||
CLASS_EPHRAIM_LORD = 0x01,
|
||||
CLASS_EIRIKA_LORD = 0x02,
|
||||
CLASS_EPHRAIM_MASTER_LORD = 0x03,
|
||||
CLASS_EIRIKA_MASTER_LORD = 0x04,
|
||||
CLASS_CAVALIER = 0x05,
|
||||
CLASS_CAVALIER_F = 0x06,
|
||||
CLASS_PALADIN = 0x07,
|
||||
CLASS_PALADIN_F = 0x08,
|
||||
CLASS_ARMOR_KNIGHT = 0x09,
|
||||
CLASS_ARMOR_KNIGHT_F = 0x0A,
|
||||
CLASS_GENERAL = 0x0B,
|
||||
CLASS_GENERAL_F = 0x0C,
|
||||
CLASS_THIEF = 0x0D,
|
||||
CLASS_MANAKETE = 0x0E, // TODO: which one?
|
||||
CLASS_MERCENARY = 0x0F,
|
||||
CLASS_MERCENARY_F = 0x10,
|
||||
CLASS_HERO = 0x11,
|
||||
CLASS_HERO_F = 0x12,
|
||||
CLASS_MYRMIDON = 0x13,
|
||||
CLASS_MYRMIDON_F = 0x14,
|
||||
CLASS_SWORDMASTER = 0x15,
|
||||
CLASS_SWORDMASTER_F = 0x16,
|
||||
CLASS_ASSASSIN = 0x17,
|
||||
CLASS_ASSASSIN_F = 0x18,
|
||||
CLASS_ARCHER = 0x19,
|
||||
CLASS_ARCHER_F = 0x1A,
|
||||
CLASS_SNIPER = 0x1B,
|
||||
CLASS_SNIPER_F = 0x1C,
|
||||
CLASS_RANGER = 0x1D,
|
||||
CLASS_RANGER_F = 0x1E,
|
||||
CLASS_WYVERN_RIDER = 0x1F,
|
||||
CLASS_WYVERN_RIDER_F = 0x20,
|
||||
CLASS_WYVERN_LORD = 0x21,
|
||||
CLASS_WYVERN_LORD_F = 0x22,
|
||||
CLASS_WYVERN_KNIGHT = 0x23,
|
||||
CLASS_WYVERN_KNIGHT_F = 0x24,
|
||||
CLASS_MAGE = 0x25,
|
||||
CLASS_MAGE_F = 0x26,
|
||||
CLASS_SAGE = 0x27,
|
||||
CLASS_SAGE_F = 0x28,
|
||||
CLASS_MAGE_KNIGHT = 0x29,
|
||||
CLASS_MAGE_KNIGHT_F = 0x2A,
|
||||
CLASS_BISHOP = 0x2B,
|
||||
CLASS_BISHOP_F = 0x2C,
|
||||
CLASS_SHAMAN = 0x2D,
|
||||
CLASS_SHAMAN_F = 0x2E,
|
||||
CLASS_DRUID = 0x2F,
|
||||
CLASS_DRUID_F = 0x30,
|
||||
CLASS_SUMMONER = 0x31,
|
||||
CLASS_SUMMONER_F = 0x32,
|
||||
CLASS_ROGUE = 0x33,
|
||||
CLASS_GORGONEGG2 = 0x34,
|
||||
CLASS_GREAT_KNIGHT = 0x35,
|
||||
CLASS_GREAT_KNIGHT_F = 0x36,
|
||||
CLASS_RECRUIT_T1 = 0x37,
|
||||
CLASS_JOURNEYMAN_T2 = 0x38,
|
||||
CLASS_PUPIL_T2 = 0x39,
|
||||
CLASS_RECRUIT_T2 = 0x3A,
|
||||
CLASS_MANAKETE_2 = 0x3B, // TODO: which one?
|
||||
CLASS_MANAKETE_MYRRH = 0x3C,
|
||||
CLASS_JOURNEYMAN = 0x3D,
|
||||
CLASS_PUPIL = 0x3E,
|
||||
CLASS_FIGHTER = 0x3F,
|
||||
CLASS_WARRIOR = 0x40,
|
||||
CLASS_BRIGAND = 0x41,
|
||||
CLASS_PIRATE = 0x42,
|
||||
CLASS_BERSERKER = 0x43,
|
||||
CLASS_MONK = 0x44,
|
||||
CLASS_PRIEST = 0x45,
|
||||
CLASS_BARD = 0x46,
|
||||
CLASS_RECRUIT = 0x47,
|
||||
CLASS_PEGASUS_KNIGHT = 0x48,
|
||||
CLASS_FALCON_KNIGHT = 0x49,
|
||||
CLASS_CLERIC = 0x4A,
|
||||
CLASS_TROUBADOUR = 0x4B,
|
||||
CLASS_VALKYRIE = 0x4C,
|
||||
CLASS_DANCER = 0x4D,
|
||||
CLASS_SOLDIER = 0x4E,
|
||||
CLASS_NECROMANCER = 0x4F,
|
||||
CLASS_FLEET = 0x50,
|
||||
CLASS_EPHRAIM_LORD = 0x01,
|
||||
CLASS_EIRIKA_LORD = 0x02,
|
||||
CLASS_EPHRAIM_MASTER_LORD = 0x03,
|
||||
CLASS_EIRIKA_MASTER_LORD = 0x04,
|
||||
CLASS_CAVALIER = 0x05,
|
||||
CLASS_CAVALIER_F = 0x06,
|
||||
CLASS_PALADIN = 0x07,
|
||||
CLASS_PALADIN_F = 0x08,
|
||||
CLASS_ARMOR_KNIGHT = 0x09,
|
||||
CLASS_ARMOR_KNIGHT_F = 0x0A,
|
||||
CLASS_GENERAL = 0x0B,
|
||||
CLASS_GENERAL_F = 0x0C,
|
||||
CLASS_THIEF = 0x0D,
|
||||
CLASS_MANAKETE = 0x0E, // TODO: which one?
|
||||
CLASS_MERCENARY = 0x0F,
|
||||
CLASS_MERCENARY_F = 0x10,
|
||||
CLASS_HERO = 0x11,
|
||||
CLASS_HERO_F = 0x12,
|
||||
CLASS_MYRMIDON = 0x13,
|
||||
CLASS_MYRMIDON_F = 0x14,
|
||||
CLASS_SWORDMASTER = 0x15,
|
||||
CLASS_SWORDMASTER_F = 0x16,
|
||||
CLASS_ASSASSIN = 0x17,
|
||||
CLASS_ASSASSIN_F = 0x18,
|
||||
CLASS_ARCHER = 0x19,
|
||||
CLASS_ARCHER_F = 0x1A,
|
||||
CLASS_SNIPER = 0x1B,
|
||||
CLASS_SNIPER_F = 0x1C,
|
||||
CLASS_RANGER = 0x1D,
|
||||
CLASS_RANGER_F = 0x1E,
|
||||
CLASS_WYVERN_RIDER = 0x1F,
|
||||
CLASS_WYVERN_RIDER_F = 0x20,
|
||||
CLASS_WYVERN_LORD = 0x21,
|
||||
CLASS_WYVERN_LORD_F = 0x22,
|
||||
CLASS_WYVERN_KNIGHT = 0x23,
|
||||
CLASS_WYVERN_KNIGHT_F = 0x24,
|
||||
CLASS_MAGE = 0x25,
|
||||
CLASS_MAGE_F = 0x26,
|
||||
CLASS_SAGE = 0x27,
|
||||
CLASS_SAGE_F = 0x28,
|
||||
CLASS_MAGE_KNIGHT = 0x29,
|
||||
CLASS_MAGE_KNIGHT_F = 0x2A,
|
||||
CLASS_BISHOP = 0x2B,
|
||||
CLASS_BISHOP_F = 0x2C,
|
||||
CLASS_SHAMAN = 0x2D,
|
||||
CLASS_SHAMAN_F = 0x2E,
|
||||
CLASS_DRUID = 0x2F,
|
||||
CLASS_DRUID_F = 0x30,
|
||||
CLASS_SUMMONER = 0x31,
|
||||
CLASS_SUMMONER_F = 0x32,
|
||||
CLASS_ROGUE = 0x33,
|
||||
CLASS_GORGONEGG2 = 0x34,
|
||||
CLASS_GREAT_KNIGHT = 0x35,
|
||||
CLASS_GREAT_KNIGHT_F = 0x36,
|
||||
CLASS_RECRUIT_T1 = 0x37,
|
||||
CLASS_JOURNEYMAN_T2 = 0x38,
|
||||
CLASS_PUPIL_T2 = 0x39,
|
||||
CLASS_RECRUIT_T2 = 0x3A,
|
||||
CLASS_MANAKETE_2 = 0x3B, // TODO: which one?
|
||||
CLASS_MANAKETE_MYRRH = 0x3C,
|
||||
CLASS_JOURNEYMAN = 0x3D,
|
||||
CLASS_PUPIL = 0x3E,
|
||||
CLASS_FIGHTER = 0x3F,
|
||||
CLASS_WARRIOR = 0x40,
|
||||
CLASS_BRIGAND = 0x41,
|
||||
CLASS_PIRATE = 0x42,
|
||||
CLASS_BERSERKER = 0x43,
|
||||
CLASS_MONK = 0x44,
|
||||
CLASS_PRIEST = 0x45,
|
||||
CLASS_BARD = 0x46,
|
||||
CLASS_RECRUIT = 0x47,
|
||||
CLASS_PEGASUS_KNIGHT = 0x48,
|
||||
CLASS_FALCON_KNIGHT = 0x49,
|
||||
CLASS_CLERIC = 0x4A,
|
||||
CLASS_TROUBADOUR = 0x4B,
|
||||
CLASS_VALKYRIE = 0x4C,
|
||||
CLASS_DANCER = 0x4D,
|
||||
CLASS_SOLDIER = 0x4E,
|
||||
CLASS_NECROMANCER = 0x4F,
|
||||
CLASS_FLEET = 0x50,
|
||||
CLASS_PHANTOM = 0x51,
|
||||
CLASS_REVENANT = 0x52,
|
||||
CLASS_ENTOUMBED = 0x53,
|
||||
CLASS_BONEWALKER = 0x54,
|
||||
CLASS_BONEWALKER_BOW = 0x55,
|
||||
CLASS_WIGHT = 0x56,
|
||||
CLASS_WIGHT_BOW = 0x57,
|
||||
CLASS_BAEL = 0x58,
|
||||
CLASS_ELDER_BAEL = 0x59,
|
||||
CLASS_CYCLOPS = 0x5A,
|
||||
CLASS_MAUTHEDOOG = 0x5B,
|
||||
CLASS_GWYLLGI = 0x5C,
|
||||
CLASS_TARVOS = 0x5D,
|
||||
CLASS_MAELDUIN = 0x5E,
|
||||
CLASS_MOGALL = 0x5F,
|
||||
CLASS_ARCH_MOGALL = 0x60,
|
||||
CLASS_GORGON = 0x61,
|
||||
CLASS_GORGONEGG = 0x62,
|
||||
CLASS_GARGOYLE = 0x63,
|
||||
CLASS_DEATHGOYLE = 0x64,
|
||||
CLASS_DRACO_ZOMBIE = 0x65,
|
||||
CLASS_DEMON_KING = 0x66,
|
||||
CLASS_BLST_REGULAR_USED = 0x67,
|
||||
CLASS_BLST_LONG_USED = 0x68,
|
||||
CLASS_BLST_KILLER_USED = 0x69,
|
||||
CLASS_BLST_REGULAR_EMPTY = 0x6A,
|
||||
CLASS_BLST_LONG_EMPTY = 0x6B,
|
||||
CLASS_BLST_KILLER_EMPTY = 0x6C,
|
||||
CLASS_CIVILIAN_M1 = 0x6D,
|
||||
CLASS_CIVILIAN_F1 = 0x6E,
|
||||
CLASS_CIVILIAN_M2 = 0x6F,
|
||||
CLASS_CIVILIAN_F2 = 0x70,
|
||||
CLASS_CIVILIAN_M3 = 0x71,
|
||||
CLASS_CIVILIAN_F3 = 0x72,
|
||||
CLASS_PEER = 0x73,
|
||||
CLASS_QUEEN = 0x74,
|
||||
CLASS_PRINCE = 0x75,
|
||||
CLASS_QUEEN_2 = 0x76,
|
||||
CLASS_UNK78 = 0x78, // TODO: figure out
|
||||
CLASS_FALLEN_PRINCE = 0x78,
|
||||
CLASS_TENT = 0x79,
|
||||
CLASS_PONTIFEX = 0x7A,
|
||||
CLASS_FALLEN_PEER = 0x7B,
|
||||
CLASS_CYCLOPS_2 = 0x7C,
|
||||
CLASS_ELDER_BAEL_2 = 0x7D,
|
||||
CLASS_JOURNEYMAN_T1 = 0x7E,
|
||||
CLASS_PUPIL_T1 = 0x7F,
|
||||
CLASS_REVENANT = 0x52,
|
||||
CLASS_ENTOUMBED = 0x53,
|
||||
CLASS_BONEWALKER = 0x54,
|
||||
CLASS_BONEWALKER_BOW = 0x55,
|
||||
CLASS_WIGHT = 0x56,
|
||||
CLASS_WIGHT_BOW = 0x57,
|
||||
CLASS_BAEL = 0x58,
|
||||
CLASS_ELDER_BAEL = 0x59,
|
||||
CLASS_CYCLOPS = 0x5A,
|
||||
CLASS_MAUTHEDOOG = 0x5B,
|
||||
CLASS_GWYLLGI = 0x5C,
|
||||
CLASS_TARVOS = 0x5D,
|
||||
CLASS_MAELDUIN = 0x5E,
|
||||
CLASS_MOGALL = 0x5F,
|
||||
CLASS_ARCH_MOGALL = 0x60,
|
||||
CLASS_GORGON = 0x61,
|
||||
CLASS_GORGONEGG = 0x62,
|
||||
CLASS_GARGOYLE = 0x63,
|
||||
CLASS_DEATHGOYLE = 0x64,
|
||||
CLASS_DRACO_ZOMBIE = 0x65,
|
||||
CLASS_DEMON_KING = 0x66,
|
||||
CLASS_BLST_REGULAR_USED = 0x67,
|
||||
CLASS_BLST_LONG_USED = 0x68,
|
||||
CLASS_BLST_KILLER_USED = 0x69,
|
||||
CLASS_BLST_REGULAR_EMPTY = 0x6A,
|
||||
CLASS_BLST_LONG_EMPTY = 0x6B,
|
||||
CLASS_BLST_KILLER_EMPTY = 0x6C,
|
||||
CLASS_CIVILIAN_M1 = 0x6D,
|
||||
CLASS_CIVILIAN_F1 = 0x6E,
|
||||
CLASS_CIVILIAN_M2 = 0x6F,
|
||||
CLASS_CIVILIAN_F2 = 0x70,
|
||||
CLASS_CIVILIAN_M3 = 0x71,
|
||||
CLASS_CIVILIAN_F3 = 0x72,
|
||||
CLASS_PEER = 0x73,
|
||||
CLASS_QUEEN = 0x74,
|
||||
CLASS_PRINCE = 0x75,
|
||||
CLASS_QUEEN_2 = 0x76,
|
||||
CLASS_UNK78 = 0x78, // TODO: figure out
|
||||
CLASS_FALLEN_PRINCE = 0x78,
|
||||
CLASS_TENT = 0x79,
|
||||
CLASS_PONTIFEX = 0x7A,
|
||||
CLASS_FALLEN_PEER = 0x7B,
|
||||
CLASS_CYCLOPS_2 = 0x7C,
|
||||
CLASS_ELDER_BAEL_2 = 0x7D,
|
||||
CLASS_JOURNEYMAN_T1 = 0x7E,
|
||||
CLASS_PUPIL_T1 = 0x7F,
|
||||
|
||||
// Hiding the game's misery
|
||||
CLASS_SNAG = CLASS_EPHRAIM_LORD,
|
||||
CLASS_WALL = CLASS_EPHRAIM_LORD,
|
||||
// Hiding the game's misery
|
||||
CLASS_SNAG = CLASS_EPHRAIM_LORD,
|
||||
CLASS_WALL = CLASS_EPHRAIM_LORD,
|
||||
};
|
||||
|
||||
#endif // GUARD_CONSTANTS_CLASSES_H
|
||||
|
@ -2,8 +2,8 @@
|
||||
#define GUARD_ICON_H
|
||||
|
||||
struct IconStruct {
|
||||
u8 References; // Seems to count the number of references to that icon ID
|
||||
u8 Index;
|
||||
u8 References; // Seems to count the number of references to that icon ID
|
||||
u8 Index;
|
||||
};
|
||||
|
||||
void ResetIconGraphics_();
|
||||
|
@ -393,31 +393,31 @@ struct Trap {
|
||||
};
|
||||
|
||||
struct MapAnimActorState {
|
||||
/* 00 */ struct Unit* pUnit;
|
||||
/* 04 */ struct BattleUnit* pBattleUnit;
|
||||
/* 08 */ struct MUProc* pMUProc;
|
||||
/* 0C */ u8 u0C;
|
||||
/* 0D */ u8 u0D;
|
||||
/* 0E */ u16 u0E;
|
||||
/* 10 */ u8 u10;
|
||||
/* 11 */ u8 u11;
|
||||
/* 12 */ u8 u12;
|
||||
/* 13 */ u8 u13;
|
||||
/* 00 */ struct Unit* pUnit;
|
||||
/* 04 */ struct BattleUnit* pBattleUnit;
|
||||
/* 08 */ struct MUProc* pMUProc;
|
||||
/* 0C */ u8 u0C;
|
||||
/* 0D */ u8 u0D;
|
||||
/* 0E */ u16 u0E;
|
||||
/* 10 */ u8 u10;
|
||||
/* 11 */ u8 u11;
|
||||
/* 12 */ u8 u12;
|
||||
/* 13 */ u8 u13;
|
||||
};
|
||||
|
||||
struct MapAnimState {
|
||||
/* 00 */ struct MapAnimActorState actors[4];
|
||||
/* 00 */ struct MapAnimActorState actors[4];
|
||||
|
||||
/* 50 */ u32* pCurrentRound;
|
||||
/* 54 */ const struct ProcCmd* pItemMapAnimProcScript;
|
||||
/* 58 */ u8 subjectActorId;
|
||||
/* 59 */ u8 targetActorId;
|
||||
/* 5A */ u16 roundBits;
|
||||
/* 5C */ u16 u5C;
|
||||
/* 5E */ u8 actorCount_maybe;
|
||||
/* 5F */ u8 u5F;
|
||||
/* 60 */ u8 u60;
|
||||
/* 61 */ u8 u61;
|
||||
/* 50 */ u32* pCurrentRound;
|
||||
/* 54 */ const struct ProcCmd* pItemMapAnimProcScript;
|
||||
/* 58 */ u8 subjectActorId;
|
||||
/* 59 */ u8 targetActorId;
|
||||
/* 5A */ u16 roundBits;
|
||||
/* 5C */ u16 u5C;
|
||||
/* 5E */ u8 actorCount_maybe;
|
||||
/* 5F */ u8 u5F;
|
||||
/* 60 */ u8 u60;
|
||||
/* 61 */ u8 u61;
|
||||
};
|
||||
|
||||
struct MMSData {
|
||||
@ -432,8 +432,8 @@ enum { CONVOY_ITEM_COUNT = 100 };
|
||||
enum { MAP_MOVEMENT_MAX = 120 };
|
||||
|
||||
enum {
|
||||
HIDDEN_BIT_UNIT = (1 << 0),
|
||||
HIDDEN_BIT_TRAP = (1 << 1),
|
||||
HIDDEN_BIT_UNIT = (1 << 0),
|
||||
HIDDEN_BIT_TRAP = (1 << 1),
|
||||
};
|
||||
|
||||
#endif // GUARD_TYPES_H
|
||||
|
1976
src/bmunit.c
1976
src/bmunit.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user