Rename atk## constants and states
This commit is contained in:
@@ -479,7 +479,7 @@ struct BattleScripting
|
||||
u8 animArg1;
|
||||
u8 animArg2;
|
||||
u16 tripleKickPower;
|
||||
u8 atk49_state;
|
||||
u8 moveendState;
|
||||
u8 battlerWithAbility;
|
||||
u8 multihitMoveEffect;
|
||||
u8 battler;
|
||||
@@ -487,9 +487,9 @@ struct BattleScripting
|
||||
u8 animTargetsHit;
|
||||
u8 statChanger;
|
||||
bool8 statAnimPlayed;
|
||||
u8 atk23_state;
|
||||
u8 getexpState;
|
||||
u8 battleStyle;
|
||||
u8 atk6C_state;
|
||||
u8 drawlvlupboxState;
|
||||
u8 learnMoveState;
|
||||
u8 field_20;
|
||||
u8 reshowMainState;
|
||||
|
||||
@@ -84,43 +84,43 @@
|
||||
#define VARIOUS_SET_TELEPORT_OUTCOME 25
|
||||
#define VARIOUS_PLAY_TRAINER_DEFEATED_MUSIC 26
|
||||
|
||||
// atk80, dmg manipulation
|
||||
#define ATK80_DMG_CHANGE_SIGN 0
|
||||
#define ATK80_DMG_HALF_BY_TWO_NOT_MORE_THAN_HALF_MAX_HP 1
|
||||
#define ATK80_DMG_DOUBLED 2
|
||||
// manipulatedmg
|
||||
#define DMG_CHANGE_SIGN 0
|
||||
#define DMG_HALF_BY_TWO_NOT_MORE_THAN_HALF_MAX_HP 1
|
||||
#define DMG_DOUBLED 2
|
||||
|
||||
// atk4F, a flag used for the jumpifcantswitch command
|
||||
#define ATK4F_DONT_CHECK_STATUSES 0x80
|
||||
// flag used for the jumpifcantswitch command
|
||||
#define DONT_CHECK_STATUSES 0x80
|
||||
|
||||
// statchange defines
|
||||
#define STAT_CHANGE_BS_PTR 0x1
|
||||
#define STAT_CHANGE_NOT_PROTECT_AFFECTED 0x20
|
||||
|
||||
// atk48
|
||||
#define ATK48_STAT_NEGATIVE 0x1
|
||||
#define ATK48_STAT_BY_TWO 0x2
|
||||
#define ATK48_ONLY_MULTIPLE 0x4
|
||||
#define ATK48_DONT_CHECK_LOWER 0x8
|
||||
// playstatchangeanimation
|
||||
#define STAT_CHANGE_NEGATIVE 0x1
|
||||
#define STAT_CHANGE_BY_TWO 0x2
|
||||
#define STAT_CHANGE_ONLY_MULTIPLE 0x4
|
||||
#define STAT_CHANGE_DONT_CHECK_LOWER 0x8
|
||||
|
||||
// atk49, moveend cases
|
||||
#define ATK49_RAGE 0
|
||||
#define ATK49_DEFROST 1
|
||||
#define ATK49_SYNCHRONIZE_TARGET 2
|
||||
#define ATK49_MOVE_END_ABILITIES 3
|
||||
#define ATK49_STATUS_IMMUNITY_ABILITIES 4
|
||||
#define ATK49_SYNCHRONIZE_ATTACKER 5
|
||||
#define ATK49_CHOICE_MOVE 6
|
||||
#define ATK49_CHANGED_ITEMS 7
|
||||
#define ATK49_ATTACKER_INVISIBLE 8
|
||||
#define ATK49_ATTACKER_VISIBLE 9
|
||||
#define ATK49_TARGET_VISIBLE 10
|
||||
#define ATK49_ITEM_EFFECTS_ALL 11
|
||||
#define ATK49_KINGSROCK_SHELLBELL 12
|
||||
#define ATK49_SUBSTITUTE 13
|
||||
#define ATK49_UPDATE_LAST_MOVES 14
|
||||
#define ATK49_MIRROR_MOVE 15
|
||||
#define ATK49_NEXT_TARGET 16
|
||||
#define ATK49_COUNT 17
|
||||
// moveend cases
|
||||
#define MOVEEND_RAGE 0
|
||||
#define MOVEEND_DEFROST 1
|
||||
#define MOVEEND_SYNCHRONIZE_TARGET 2
|
||||
#define MOVEEND_MOVE_END_ABILITIES 3
|
||||
#define MOVEEND_STATUS_IMMUNITY_ABILITIES 4
|
||||
#define MOVEEND_SYNCHRONIZE_ATTACKER 5
|
||||
#define MOVEEND_CHOICE_MOVE 6
|
||||
#define MOVEEND_CHANGED_ITEMS 7
|
||||
#define MOVEEND_ATTACKER_INVISIBLE 8
|
||||
#define MOVEEND_ATTACKER_VISIBLE 9
|
||||
#define MOVEEND_TARGET_VISIBLE 10
|
||||
#define MOVEEND_ITEM_EFFECTS_ALL 11
|
||||
#define MOVEEND_KINGSROCK_SHELLBELL 12
|
||||
#define MOVEEND_SUBSTITUTE 13
|
||||
#define MOVEEND_UPDATE_LAST_MOVES 14
|
||||
#define MOVEEND_MIRROR_MOVE 15
|
||||
#define MOVEEND_NEXT_TARGET 16
|
||||
#define MOVEEND_COUNT 17
|
||||
|
||||
#define BIT_HP 0x1
|
||||
#define BIT_ATK 0x2
|
||||
|
||||
Reference in New Issue
Block a user