From a07575cc004d17a47e869d1582bbd4584c21df79 Mon Sep 17 00:00:00 2001 From: Macrepeh <63179588+Macrepeh@users.noreply.github.com> Date: Tue, 21 Feb 2023 10:10:03 -0500 Subject: [PATCH] Some Flag Names (#950) * A few flag names * Flag names * Flags two --- include/enums.h | 14 ++++----- src/16F740.c | 4 +-- src/16c8e0.c | 2 +- src/17FEB0.c | 12 ++++---- src/181810.c | 2 +- src/19FAF0.c | 14 ++++----- src/1A5830.c | 6 ++-- src/1AC760.c | 30 +++++++++---------- src/battle/area/arn/actor/hyper_cleft.c | 18 +++++------ src/battle/area/arn/actor/hyper_paragoomba.c | 30 +++++++++---------- src/battle/area/arn/actor/hypergoomba.c | 12 ++++---- src/battle/area/flo2/actor/monty_mole_boss.c | 2 +- src/battle/area/hos/actor/goombario_tutor.c | 2 +- src/battle/area/hos/actor/magikoopa.c | 2 +- src/battle/area/iwa/actor/cleft.c | 4 +-- src/battle/area/jan/actor/spear_guy.c | 2 +- src/battle/area/kpa/actor/bony_beetle.c | 12 ++++---- src/battle/area/kpa2/actor/bowser_phase_1.c | 4 +-- src/battle/area/kpa2/actor/bowser_phase_2.c | 16 +++++----- src/battle/area/kpa2/actor/bowser_phase_3.c | 22 +++++++------- src/battle/area/kpa4/actor/bombshell_bill.c | 2 +- src/battle/area/kzn2/actor/lava_bud.c | 2 +- src/battle/area/kzn2/actor/lava_piranha.c | 12 ++++---- src/battle/area/mac/actor/chan.c | 6 ++-- src/battle/area/omo/actor/sky_guy.c | 2 +- src/battle/area/omo2/actor/general_guy.c | 2 +- src/battle/area/omo2/actor/light_bulb.c | 2 +- src/battle/area/omo2/actor/toy_tank.c | 4 +-- src/battle/area/omo2_2/actor/stilt_guy.c | 2 +- src/battle/area/omo2_6/actor/shy_guy_dup.c | 2 +- src/battle/area/sam/actor/gulpit_rocks.c | 2 +- src/battle/area/tik/actor/dark_koopa.c | 4 +-- src/battle/area/tik/actor/dark_paratroopa.c | 6 ++-- src/battle/area/tik/actor/paragloomba.c | 2 +- src/battle/area/tik2/actor/electro_blooper.c | 2 +- src/battle/area/tik2/actor/super_blooper.c | 4 +-- .../area/trd_part_1/actor/bullet_bill.c | 2 +- .../area/trd_part_2/actor/blue_ninja_koopa.c | 6 ++-- .../area/trd_part_2/actor/fake_bowser.c | 22 +++++++------- .../area/trd_part_2/actor/green_ninja_koopa.c | 6 ++-- .../area/trd_part_2/actor/red_ninja_koopa.c | 6 ++-- .../trd_part_2/actor/yellow_ninja_koopa.c | 6 ++-- src/battle/area/trd_part_3/actor/eldstar.c | 2 +- src/battle/common/actor/buzzy_beetle.inc.c | 6 ++-- src/battle/common/actor/gray_magikoopa.inc.c | 4 +-- src/battle/common/actor/green_magikoopa.inc.c | 4 +-- src/battle/common/actor/koopa_troopa.inc.c | 4 +-- src/battle/common/actor/koopatrol.inc.c | 12 ++++---- src/battle/common/actor/magikoopa.inc.c | 12 ++++---- src/battle/common/actor/monty_mole.inc.c | 2 +- src/battle/common/actor/paragoomba.inc.c | 2 +- src/battle/common/actor/paratroopa.inc.c | 6 ++-- src/battle/common/actor/red_magikoopa.inc.c | 4 +-- src/battle/common/actor/slot_machine.inc.c | 4 +-- src/battle/common/actor/spike_top.inc.c | 6 ++-- src/battle/common/actor/spiny.inc.c | 4 +-- src/battle/common/actor/whacka.inc.c | 2 +- src/battle/common/actor/white_magikoopa.inc.c | 4 +-- .../common/actor/yellow_magikoopa.inc.c | 4 +-- src/battle/common/move/StarBeamSupport.inc.c | 2 +- src/battle/move/star_power/chill_out.c | 2 +- src/common/UnkBowserFunc1.inc.c | 2 +- 62 files changed, 201 insertions(+), 201 deletions(-) diff --git a/include/enums.h b/include/enums.h index 330ced9f6b..7ed2df4374 100644 --- a/include/enums.h +++ b/include/enums.h @@ -3703,15 +3703,15 @@ enum ActorFlags { ACTOR_FLAG_80 = 0x00000080, ACTOR_FLAG_100 = 0x00000100, ACTOR_FLAG_FLYING = 0x00000200, ///< Quake Hammer can't hit. - ACTOR_FLAG_400 = 0x00000400, + ACTOR_FLAG_FLIPPED = 0x00000400, ///< Actor has been flipped over. ACTOR_FLAG_HP_OFFSET_BELOW = 0x00000800, ///< HP bar offset below actor (e.g. Swooper when upside-down). Is this just UPSIDE_DOWN? FLIPPED? TOPPLED? - ACTOR_FLAG_1000 = 0x00001000, + ACTOR_FLAG_TYPE_CHANGED = 0x00001000, ///< Indicates actors type has changed, triggers recheck for if HP bar should be shown based on tattle status. ACTOR_FLAG_2000 = 0x00002000, ACTOR_FLAG_TARGET_ONLY = 0x00004000, ///< Battle ends even if undefeated. No turn. ACTOR_FLAG_8000 = 0x00008000, ACTOR_FLAG_10000 = 0x00010000, ACTOR_FLAG_20000 = 0x00020000, - ACTOR_FLAG_40000 = 0x00040000, + ACTOR_FLAG_HIDE_HP_BAR = 0x00040000, ///< Hide HP bar. ACTOR_FLAG_80000 = 0x00080000, ACTOR_FLAG_100000 = 0x00100000, ACTOR_FLAG_NO_ATTACK = 0x00200000, ///< Skip attack turn. @@ -3774,7 +3774,7 @@ enum ActorEventFlags { ACTOR_EVENT_FLAG_ELECTRIFIED = 0x00000080, ///< Player takes shock damage upon contact. ACTOR_EVENT_FLAG_100 = 0x00000100, ACTOR_EVENT_FLAG_EXPLODE_ON_IGNITION = 0x00000200, ///< Blast and fire attacks trigger an explosion. - ACTOR_EVENT_FLAG_400 = 0x00000400, + ACTOR_EVENT_FLAG_FIRE_EXPLODE = 0x00000400, ///< Fire attacks trigger an explosion, used only by bullet/bombshell bills. ACTOR_EVENT_FLAG_800 = 0x00000800, ACTOR_EVENT_FLAG_FLIPABLE = 0x00001000, ///< Actor can be flipped; triggered by jump and quake attacks. ACTOR_EVENT_FLAG_2000 = 0x00002000, @@ -3783,11 +3783,11 @@ enum ActorEventFlags { ACTOR_EVENT_FLAG_SPIKY_FRONT = 0x00010000, ///< Player takes spike damage from hammer attacks. ACTOR_EVENT_FLAG_20000 = 0x00020000, ACTOR_EVENT_FLAG_ENCHANTED = 0x00040000, ///< Actor glows and listens for the Star Beam event. - ACTOR_EVENT_FLAG_80000 = 0x00080000, + ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED = 0x00080000, ///< Actor glows and listens for Star Beam and Peach Beam events. ACTOR_EVENT_FLAG_POWER_BOUNCE = 0x00100000, ///< Actor listens for Power Bounce events. ACTOR_EVENT_FLAG_200000 = 0x00200000, - ACTOR_EVENT_FLAG_400000 = 0x00400000, - ACTOR_EVENT_FLAG_800000 = 0x00800000, + ACTOR_EVENT_FLAG_ATTACK_CHARGED = 0x00400000, ///< Actor has charged an attack that can be removed with Star Beam. + ACTOR_EVENT_FLAG_RIDING_BROOMSTICK = 0x00800000, ///< Actor is on Magikoopa Broomstick, effect seems to be redundant. ACTOR_EVENT_FLAG_1000000 = 0x01000000, ACTOR_EVENT_FLAG_2000000 = 0x02000000, ACTOR_EVENT_FLAG_4000000 = 0x04000000, diff --git a/src/16F740.c b/src/16F740.c index 7fccfbfe71..9062173b36 100644 --- a/src/16F740.c +++ b/src/16F740.c @@ -46,7 +46,7 @@ void btl_merlee_on_start_turn(void) { s32 temp = rand_int(100); if (currentEncounter->currentEnemy != NULL) { - if (currentEncounter->currentEnemy->flags & ACTOR_FLAG_40000) { + if (currentEncounter->currentEnemy->flags & ACTOR_FLAG_HIDE_HP_BAR) { if (temp <= 45) { playerData->merleeSpellType = MERLEE_SPELL_1; } else if (temp <= 90) { @@ -103,7 +103,7 @@ void btl_merlee_on_first_strike(void) { s32 temp = rand_int(100); if (currentEncounter->currentEnemy != NULL) { - if (currentEncounter->currentEnemy->flags & ACTOR_FLAG_40000) { + if (currentEncounter->currentEnemy->flags & ACTOR_FLAG_HIDE_HP_BAR) { if (temp <= 45) { playerData->merleeSpellType = MERLEE_SPELL_1; } else if (temp <= 90) { diff --git a/src/16c8e0.c b/src/16c8e0.c index da9467d162..c9d766410d 100644 --- a/src/16c8e0.c +++ b/src/16c8e0.c @@ -885,7 +885,7 @@ void btl_draw_enemy_health_bars(void) { } } - if (!(enemy->flags & (ACTOR_FLAG_40000 | ACTOR_FLAG_TARGET_ONLY)) + if (!(enemy->flags & (ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_TARGET_ONLY)) && ((gBattleStatus.flags1 & BS_FLAGS1_MENU_OPEN) || (enemy->flags & ACTOR_FLAG_80000)) && is_actor_hp_bar_visible(enemy) ) { diff --git a/src/17FEB0.c b/src/17FEB0.c index 5a8b22c64e..8f049d609a 100644 --- a/src/17FEB0.c +++ b/src/17FEB0.c @@ -139,7 +139,7 @@ HitResult calc_item_damage_enemy(void) { partImmuneToElement = FALSE; } - if (targetPart->eventFlags & (ACTOR_EVENT_FLAG_ENCHANTED | ACTOR_EVENT_FLAG_80000)) { + if (targetPart->eventFlags & (ACTOR_EVENT_FLAG_ENCHANTED | ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED)) { battleStatus->currentAttackElement &= ~DAMAGE_TYPE_IGNORE_DEFENSE; } @@ -226,11 +226,11 @@ HitResult calc_item_damage_enemy(void) { dispatchEvent = EVENT_STAR_BEAM; wasStatusInflicted = TRUE; } - if (targetPart->eventFlags & ACTOR_EVENT_FLAG_400000) { + if (targetPart->eventFlags & ACTOR_EVENT_FLAG_ATTACK_CHARGED) { dispatchEvent = EVENT_STAR_BEAM; wasStatusInflicted = TRUE; } - if (targetPart->eventFlags & ACTOR_EVENT_FLAG_80000) { + if (targetPart->eventFlags & ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) { dispatchEvent = EVENT_INVUNERABLE_TAUNT; } hitResult = HIT_RESULT_HIT; @@ -269,7 +269,7 @@ HitResult calc_item_damage_enemy(void) { dispatchEvent = EVENT_PEACH_BEAM; wasStatusInflicted = TRUE; } - if (targetPart->eventFlags & ACTOR_EVENT_FLAG_80000) { + if (targetPart->eventFlags & ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) { dispatchEvent = EVENT_PEACH_BEAM; wasStatusInflicted = TRUE; } @@ -301,7 +301,7 @@ HitResult calc_item_damage_enemy(void) { if ((gBattleStatus.flags1 & BS_FLAGS1_SP_EVT_ACTIVE) && (battleStatus->currentAttackElement & DAMAGE_TYPE_POW) - && (targetPart->eventFlags & ACTOR_EVENT_FLAG_800000) + && (targetPart->eventFlags & ACTOR_EVENT_FLAG_RIDING_BROOMSTICK) ) { if (dispatchEvent == EVENT_HIT) { dispatchEvent = EVENT_FALL_TRIGGER; @@ -385,7 +385,7 @@ HitResult calc_item_damage_enemy(void) { && target->debuff != STATUS_SLEEP && target->debuff != STATUS_FROZEN && target->debuff != STATUS_STOP) - && !(target->flags & ACTOR_FLAG_400)) + && !(target->flags & ACTOR_FLAG_FLIPPED)) { dispatchEvent = EVENT_SCARE_AWAY; hitResult = HIT_RESULT_HIT; diff --git a/src/181810.c b/src/181810.c index 4244f5cc8d..e7ec15c012 100644 --- a/src/181810.c +++ b/src/181810.c @@ -506,7 +506,7 @@ s32 is_actor_hp_bar_visible(Actor* actor) { } flags = get_global_byte((actor->actorType >> 3) + 365); - if (actor->flags & ACTOR_FLAG_1000) { + if (actor->flags & ACTOR_FLAG_TYPE_CHANGED) { flags |= battleStatus->tattleFlags[actor->actorType >> 3]; } return (flags >> (actor->actorType & 7)) & 1; diff --git a/src/19FAF0.c b/src/19FAF0.c index 9bb94ff769..a1b8ec3bed 100644 --- a/src/19FAF0.c +++ b/src/19FAF0.c @@ -230,7 +230,7 @@ HitResult calc_player_test_enemy(void) { dispatch_event_actor(target, EVENT_SPIKE_TAUNT); return HIT_RESULT_BACKFIRE; } - + if (player->staticStatus != STATUS_STATIC && target->staticStatus == STATUS_STATIC) { return HIT_RESULT_HIT_STATIC; } @@ -354,7 +354,7 @@ HitResult calc_player_damage_enemy(void) { if (gBattleStatus.flags1 & BS_FLAGS1_SP_EVT_ACTIVE && battleStatus->currentAttackElement & DAMAGE_TYPE_FIRE - && targetPart->eventFlags & (ACTOR_EVENT_FLAG_400 | ACTOR_EVENT_FLAG_EXPLODE_ON_IGNITION) + && targetPart->eventFlags & (ACTOR_EVENT_FLAG_FIRE_EXPLODE | ACTOR_EVENT_FLAG_EXPLODE_ON_IGNITION) ) { sfx_play_sound_at_position(SOUND_HIT_PLAYER_FIRE, SOUND_SPACE_MODE_0, state->goalPos.x, state->goalPos.y, state->goalPos.z); dispatch_event_actor(target, EVENT_EXPLODE_TRIGGER); @@ -432,7 +432,7 @@ HitResult calc_player_damage_enemy(void) { sp20 = TRUE; } - if (targetPart->eventFlags & (ACTOR_EVENT_FLAG_80000 | ACTOR_EVENT_FLAG_ENCHANTED)) { + if (targetPart->eventFlags & (ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED | ACTOR_EVENT_FLAG_ENCHANTED)) { battleStatus->currentAttackElement &= ~DAMAGE_TYPE_IGNORE_DEFENSE; } @@ -662,7 +662,7 @@ HitResult calc_player_damage_enemy(void) { && target->debuff != STATUS_SLEEP && target->debuff != STATUS_FROZEN && target->debuff != STATUS_STOP) - && !(target->flags & ACTOR_FLAG_400) + && !(target->flags & ACTOR_FLAG_FLIPPED) ) { dispatch_event_actor(target, EVENT_SCARE_AWAY); if (gBattleStatus.flags1 & (BS_FLAGS1_40 | BS_FLAGS1_200)) { @@ -763,7 +763,7 @@ HitResult calc_player_damage_enemy(void) { tempBinary = TRUE; } - if ((gBattleStatus.flags1 & BS_FLAGS1_SP_EVT_ACTIVE) + if ((gBattleStatus.flags1 & BS_FLAGS1_SP_EVT_ACTIVE) && (battleStatus->currentAttackElement & (DAMAGE_TYPE_QUAKE | DAMAGE_TYPE_POW | DAMAGE_TYPE_JUMP)) && targetPart->eventFlags & ACTOR_EVENT_FLAG_FLIPABLE ) { @@ -775,7 +775,7 @@ HitResult calc_player_damage_enemy(void) { dispatchEvent = EVENT_FLIP_TRIGGER; } - if (!(target->flags & ACTOR_FLAG_400)) { + if (!(target->flags & ACTOR_FLAG_FLIPPED)) { tempBinary = TRUE; } } @@ -793,7 +793,7 @@ HitResult calc_player_damage_enemy(void) { dispatchEvent = EVENT_FLIP_TRIGGER; } - if (!(target->flags & ACTOR_FLAG_400)) { + if (!(target->flags & ACTOR_FLAG_FLIPPED)) { tempBinary = TRUE; } } diff --git a/src/1A5830.c b/src/1A5830.c index cd074cce33..36f864abc6 100644 --- a/src/1A5830.c +++ b/src/1A5830.c @@ -12,7 +12,7 @@ s32 has_enchanted_part(Actor* actor) { s32 ret = FALSE; while (partIt != NULL) { - if (partIt->eventFlags & (ACTOR_EVENT_FLAG_ENCHANTED | ACTOR_EVENT_FLAG_80000)) { + if (partIt->eventFlags & (ACTOR_EVENT_FLAG_ENCHANTED | ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED)) { ret = TRUE; break; } else { @@ -588,7 +588,7 @@ HitResult calc_enemy_damage_target(Actor* attacker) { if (gBattleStatus.flags1 & BS_FLAGS1_SP_EVT_ACTIVE && battleStatus->lastAttackDamage >= 0 && event != EVENT_DEATH - && event != EVENT_SPIN_SMASH_DEATH + && event != EVENT_SPIN_SMASH_DEATH && event != EVENT_EXPLODE_TRIGGER && !(gBattleStatus.flags1 & BS_FLAGS1_ATK_BLOCKED) && !(gBattleStatus.flags2 & BS_FLAGS2_1000000) @@ -679,7 +679,7 @@ HitResult calc_enemy_damage_target(Actor* attacker) { { inflict_partner_ko(target, STATUS_DAZE, battleStatus->lastAttackDamage); } - + if (!(target->flags & ACTOR_FLAG_NO_DMG_POPUP)) { switch (actorClass) { case ACTOR_CLASS_PLAYER: diff --git a/src/1AC760.c b/src/1AC760.c index 69f1d29e36..cee882d0b3 100644 --- a/src/1AC760.c +++ b/src/1AC760.c @@ -63,7 +63,7 @@ HitResult calc_partner_test_enemy(void) { if (target == NULL) { return HIT_RESULT_HIT; } - + part = get_actor_part(target, currentTargetPart); ASSERT(part != NULL); @@ -234,7 +234,7 @@ HitResult calc_partner_damage_enemy(void) { dispatch_event_actor(target, EVENT_SPIKE_TAUNT); return HIT_RESULT_BACKFIRE; } - + // check explode on contact if (!(battleStatus->currentAttackElement & DAMAGE_TYPE_NO_CONTACT) && targetPart->eventFlags & ACTOR_EVENT_FLAG_EXPLODE_ON_CONTACT @@ -253,7 +253,7 @@ HitResult calc_partner_damage_enemy(void) { } return HIT_RESULT_HIT; } - + // check touching fiery enemy if (!(battleStatus->currentAttackElement & (DAMAGE_TYPE_NO_CONTACT | DAMAGE_TYPE_SMASH)) && targetPart->eventFlags & ACTOR_EVENT_FLAG_FIREY @@ -264,7 +264,7 @@ HitResult calc_partner_damage_enemy(void) { dispatch_event_actor(target, EVENT_BURN_TAUNT); return HIT_RESULT_BACKFIRE; } - + // check touching spiky-front enemy if (!(battleStatus->currentAttackElement & (DAMAGE_TYPE_NO_CONTACT | DAMAGE_TYPE_JUMP)) && targetPart->eventFlags & ACTOR_EVENT_FLAG_SPIKY_FRONT @@ -275,11 +275,11 @@ HitResult calc_partner_damage_enemy(void) { dispatch_event_actor(target, EVENT_SPIKE_TAUNT); return HIT_RESULT_BACKFIRE; } - + // check explode on ignition if (gBattleStatus.flags1 & BS_FLAGS1_SP_EVT_ACTIVE && battleStatus->currentAttackElement & DAMAGE_TYPE_FIRE - && targetPart->eventFlags & (ACTOR_EVENT_FLAG_400 | ACTOR_EVENT_FLAG_EXPLODE_ON_IGNITION) + && targetPart->eventFlags & (ACTOR_EVENT_FLAG_FIRE_EXPLODE | ACTOR_EVENT_FLAG_EXPLODE_ON_IGNITION) ) { sfx_play_sound_at_position(SOUND_HIT_FIRE, SOUND_SPACE_MODE_0, state->goalPos.x, state->goalPos.y, state->goalPos.z); dispatch_event_actor(target, EVENT_EXPLODE_TRIGGER); @@ -288,7 +288,7 @@ HitResult calc_partner_damage_enemy(void) { } return HIT_RESULT_HIT; } - + // unknown alternate spiky #1 if (!(battleStatus->currentAttackElement & DAMAGE_TYPE_NO_CONTACT) && targetPart->eventFlags & ACTOR_EVENT_FLAG_200000 @@ -300,7 +300,7 @@ HitResult calc_partner_damage_enemy(void) { dispatch_event_actor(target, EVENT_SPIKE_TAUNT); return HIT_RESULT_BACKFIRE; } - + // unknown alternate spiky top if (!(battleStatus->currentAttackElement & DAMAGE_TYPE_NO_CONTACT) && targetPart->eventFlags & ACTOR_EVENT_FLAG_SPIKY_TOP @@ -312,11 +312,11 @@ HitResult calc_partner_damage_enemy(void) { dispatch_event_actor(target, EVENT_SPIKE_TAUNT); return HIT_RESULT_BACKFIRE; } - + // check explode on ignition (duplicate of previous check) if (gBattleStatus.flags1 & BS_FLAGS1_SP_EVT_ACTIVE && battleStatus->currentAttackElement & DAMAGE_TYPE_FIRE - && targetPart->eventFlags & (ACTOR_EVENT_FLAG_400 | ACTOR_EVENT_FLAG_EXPLODE_ON_IGNITION) + && targetPart->eventFlags & (ACTOR_EVENT_FLAG_FIRE_EXPLODE | ACTOR_EVENT_FLAG_EXPLODE_ON_IGNITION) ) { sfx_play_sound_at_position(SOUND_HIT_FIRE, SOUND_SPACE_MODE_0, state->goalPos.x, state->goalPos.y, state->goalPos.z); dispatch_event_actor(target, EVENT_EXPLODE_TRIGGER); @@ -369,7 +369,7 @@ HitResult calc_partner_damage_enemy(void) { gBattleStatus.flags1 |= BS_FLAGS1_SP_EVT_ACTIVE; } - if (targetPart->eventFlags & (ACTOR_EVENT_FLAG_80000 | ACTOR_EVENT_FLAG_ENCHANTED)) { + if (targetPart->eventFlags & (ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED | ACTOR_EVENT_FLAG_ENCHANTED)) { battleStatus->currentAttackElement &= ~DAMAGE_TYPE_IGNORE_DEFENSE; } @@ -569,7 +569,7 @@ HitResult calc_partner_damage_enemy(void) { dispatchEvent = EVENT_FLIP_TRIGGER; } - if (!(target->flags & ACTOR_FLAG_400)) { + if (!(target->flags & ACTOR_FLAG_FLIPPED)) { tempBinary = TRUE; } } @@ -590,7 +590,7 @@ HitResult calc_partner_damage_enemy(void) { dispatchEvent = EVENT_FLIP_TRIGGER; } - if (!(target->flags & ACTOR_FLAG_400)) { + if (!(target->flags & ACTOR_FLAG_FLIPPED)) { tempBinary = TRUE; } } @@ -671,7 +671,7 @@ HitResult calc_partner_damage_enemy(void) { || target->debuff == STATUS_SLEEP || target->debuff == STATUS_FROZEN || target->debuff == STATUS_STOP) - && !(target->flags & ACTOR_FLAG_400) + && !(target->flags & ACTOR_FLAG_FLIPPED) ) { dispatchEvent = EVENT_SCARE_AWAY; wasStatusInflicted = TRUE; @@ -713,7 +713,7 @@ HitResult calc_partner_damage_enemy(void) { target->debuff == STATUS_PARALYZE || target->debuff == STATUS_SLEEP || target->debuff == STATUS_FROZEN || - target->debuff == STATUS_STOP) && !(target->flags & ACTOR_FLAG_400)) { + target->debuff == STATUS_STOP) && !(target->flags & ACTOR_FLAG_FLIPPED)) { dispatchEvent = EVENT_SCARE_AWAY; wasStatusInflicted = TRUE; retVal = 0; diff --git a/src/battle/area/arn/actor/hyper_cleft.c b/src/battle/area/arn/actor/hyper_cleft.c index a0e3437eca..6ffa0e0625 100644 --- a/src/battle/area/arn/actor/hyper_cleft.c +++ b/src/battle/area/arn/actor/hyper_cleft.c @@ -164,7 +164,7 @@ EvtScript N(80220DC0) = { EVT_CALL(SetActorVar, ACTOR_SELF, 0, 2) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80220C60))) EVT_CALL(EnableActorGlow, ACTOR_SELF, TRUE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) EVT_RETURN @@ -218,7 +218,7 @@ EvtScript N(80220DC0) = { EVT_CALL(RunToGoal, ACTOR_SELF, 0, FALSE) EVT_WAIT(15) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(YieldTurn) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(SetActorPos, ACTOR_SELF, 300, 0, 0) @@ -280,7 +280,7 @@ EvtScript N(80220DC0) = { EVT_WAIT(20) EVT_CALL(YieldTurn) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorYaw, ACTOR_SELF, 180) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Cleft_Hyper_Anim07) EVT_CALL(SetActorSpeed, ACTOR_SELF, EVT_FLOAT(8.0)) @@ -424,11 +424,11 @@ EvtScript N(80221DE0) = { EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, 0, -7) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, FALSE) EVT_CALL(N(SetSpinSmashable), 0) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_RETURN EVT_END }; @@ -527,7 +527,7 @@ EvtScript N(handleEvent_80222140) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80221CD4))) EVT_SET_CONST(LVar0, 1) @@ -546,7 +546,7 @@ EvtScript N(handleEvent_80222140) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80221CD4))) EVT_SET_CONST(LVar0, 1) @@ -562,7 +562,7 @@ EvtScript N(handleEvent_80222140) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80221CD4))) EVT_END_IF @@ -712,7 +712,7 @@ EvtScript N(80222F1C) = { EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, TRUE) EVT_WAIT(1) EVT_CALL(N(SetSpinSmashable), 1) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) diff --git a/src/battle/area/arn/actor/hyper_paragoomba.c b/src/battle/area/arn/actor/hyper_paragoomba.c index 7c5d8fbd01..9428613fb8 100644 --- a/src/battle/area/arn/actor/hyper_paragoomba.c +++ b/src/battle/area/arn/actor/hyper_paragoomba.c @@ -222,7 +222,7 @@ EvtScript N(8021B678) = { EVT_CALL(SetActorVar, ACTOR_SELF, 0, 1) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_PTR(N(idleAnimations_8021B518))) EVT_CALL(EnableActorGlow, ACTOR_SELF, TRUE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) EVT_RETURN @@ -285,7 +285,7 @@ EvtScript N(8021B678) = { EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C) EVT_CALL(YieldTurn) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_THREAD EVT_SET(LVar0, 0) EVT_LOOP(30) @@ -352,7 +352,7 @@ EvtScript N(8021B678) = { EVT_WAIT(20) EVT_CALL(YieldTurn) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorYaw, ACTOR_SELF, 180) EVT_CALL(SetAnimation, ACTOR_SELF, 2, ANIM_Paragoomba_Hyper_Run) EVT_EXEC_WAIT(N(8021C94C)) @@ -560,7 +560,7 @@ EvtScript N(handleEvent_8021C9C4) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_PTR(N(idleAnimations_8021C594))) EVT_SET_CONST(LVar0, 2) @@ -575,7 +575,7 @@ EvtScript N(handleEvent_8021C9C4) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_PTR(N(idleAnimations_8021C594))) EVT_SET_CONST(LVar0, 2) @@ -591,7 +591,7 @@ EvtScript N(handleEvent_8021C9C4) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 2, EVT_PTR(N(idleAnimations_8021C594))) EVT_END_IF @@ -823,7 +823,7 @@ EvtScript N(8021D9F4) = { EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_8021B308))) EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_HYPER_GOOMBA) EVT_EXEC_WAIT(N(8021E058)) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(HPBarToHome, ACTOR_SELF) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_RETURN @@ -865,8 +865,8 @@ EvtScript N(8021E058) = { EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CASE_EQ(1) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 1) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, TRUE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_END_SWITCH EVT_CALL(GetActorVar, ACTOR_SELF, 1, LVar0) EVT_CALL(SetActorVar, ACTOR_SELF, 1, LVar0) @@ -919,7 +919,7 @@ EvtScript N(8021E218) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8021DF7C))) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Goomba_Hyper_Idle) EVT_CALL(EnableActorGlow, ACTOR_SELF, TRUE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) EVT_WAIT(2) EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) @@ -972,7 +972,7 @@ EvtScript N(8021E218) = { EVT_CALL(SetActorPos, ACTOR_SELF, LVar0, 0, LVar2) EVT_WAIT(20) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(YieldTurn) EVT_CALL(SetActorPos, ACTOR_SELF, 300, 0, 0) EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, ACTOR_DECORATION_SWEAT) @@ -1028,7 +1028,7 @@ EvtScript N(8021E218) = { EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_WAIT(10) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(YieldTurn) EVT_CALL(SetActorYaw, ACTOR_SELF, 180) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Goomba_Hyper_Run) @@ -1217,7 +1217,7 @@ EvtScript N(handleEvent_8021F41C) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8021F05C))) EVT_SET_CONST(LVar0, 1) @@ -1241,7 +1241,7 @@ EvtScript N(handleEvent_8021F41C) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8021F05C))) EVT_SET_CONST(LVar0, 1) @@ -1257,7 +1257,7 @@ EvtScript N(handleEvent_8021F41C) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8021F05C))) EVT_END_IF diff --git a/src/battle/area/arn/actor/hypergoomba.c b/src/battle/area/arn/actor/hypergoomba.c index f340b4d89e..f82da12bb8 100644 --- a/src/battle/area/arn/actor/hypergoomba.c +++ b/src/battle/area/arn/actor/hypergoomba.c @@ -153,7 +153,7 @@ EvtScript N(802189D4) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80218874))) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Goomba_Hyper_Idle) EVT_CALL(EnableActorGlow, ACTOR_SELF, TRUE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) EVT_WAIT(2) EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) @@ -206,7 +206,7 @@ EvtScript N(802189D4) = { EVT_CALL(SetActorPos, ACTOR_SELF, LVar0, 0, LVar2) EVT_WAIT(20) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(YieldTurn) EVT_CALL(SetActorPos, ACTOR_SELF, 300, 0, 0) EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, ACTOR_DECORATION_SWEAT) @@ -262,7 +262,7 @@ EvtScript N(802189D4) = { EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_WAIT(10) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(YieldTurn) EVT_CALL(SetActorYaw, ACTOR_SELF, 180) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Goomba_Hyper_Run) @@ -451,7 +451,7 @@ EvtScript N(handleEvent_80219BD8) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80219818))) EVT_SET_CONST(LVar0, 1) @@ -475,7 +475,7 @@ EvtScript N(handleEvent_80219BD8) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80219818))) EVT_SET_CONST(LVar0, 1) @@ -491,7 +491,7 @@ EvtScript N(handleEvent_80219BD8) = { EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 0, 0) EVT_CALL(SetActorRotation, ACTOR_SELF, 0, 0, 0) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80219818))) EVT_END_IF diff --git a/src/battle/area/flo2/actor/monty_mole_boss.c b/src/battle/area/flo2/actor/monty_mole_boss.c index 01f8409389..58ef506661 100644 --- a/src/battle/area/flo2/actor/monty_mole_boss.c +++ b/src/battle/area/flo2/actor/monty_mole_boss.c @@ -160,7 +160,7 @@ EvtScript N(init_hole) = { }; ActorBlueprint N(hole) = { - .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK | ACTOR_FLAG_NO_DMG_APPLY, + .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK | ACTOR_FLAG_NO_DMG_APPLY, .type = ACTOR_TYPE_MONTY_HOLE, .level = 9, .maxHP = 5, diff --git a/src/battle/area/hos/actor/goombario_tutor.c b/src/battle/area/hos/actor/goombario_tutor.c index 26d726c1f4..aabc11c710 100644 --- a/src/battle/area/hos/actor/goombario_tutor.c +++ b/src/battle/area/hos/actor/goombario_tutor.c @@ -69,7 +69,7 @@ ActorPartBlueprint N(partsTable_80219114)[] = { extern EvtScript N(init_80219160); ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_40000, + .flags = ACTOR_FLAG_HIDE_HP_BAR, .type = ACTOR_TYPE_GOOMBARIO_TUTOR1, .level = 99, .maxHP = 99, diff --git a/src/battle/area/hos/actor/magikoopa.c b/src/battle/area/hos/actor/magikoopa.c index 48d832115f..8d0023e963 100644 --- a/src/battle/area/hos/actor/magikoopa.c +++ b/src/battle/area/hos/actor/magikoopa.c @@ -307,7 +307,7 @@ EvtScript N(8021D890) = { EVT_CALL(SetActorType, ACTOR_SELF, 149) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_8021D498))) EVT_CALL(N(UnkBattleFunc1), -10, 20, 10, 32) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(GetIndexFromPos, ACTOR_SELF, LVar0) EVT_MOD(LVar0, 4) diff --git a/src/battle/area/iwa/actor/cleft.c b/src/battle/area/iwa/actor/cleft.c index 2ed7ba7ace..a6663ae278 100644 --- a/src/battle/area/iwa/actor/cleft.c +++ b/src/battle/area/iwa/actor/cleft.c @@ -165,7 +165,7 @@ EvtScript N(80218944) = { EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, 0, -7) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, FALSE) EVT_CALL(N(SetSpinSmashable), 0) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_RETURN EVT_END }; @@ -420,7 +420,7 @@ EvtScript N(802197AC) = { EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, TRUE) EVT_WAIT(1) EVT_CALL(N(SetSpinSmashable), 1) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) diff --git a/src/battle/area/jan/actor/spear_guy.c b/src/battle/area/jan/actor/spear_guy.c index 70454b0e20..8ab8f282ff 100644 --- a/src/battle/area/jan/actor/spear_guy.c +++ b/src/battle/area/jan/actor/spear_guy.c @@ -776,7 +776,7 @@ EvtScript N(becomeShyGuy) = { EVT_CALL(SetPartFlags, ACTOR_SELF, 4, ACTOR_PART_FLAG_INVISIBLE | ACTOR_PART_FLAG_4 | ACTOR_PART_FLAG_2000 | ACTOR_PART_FLAG_NO_TARGET) EVT_EXEC_WAIT(N(8021BF8C)) EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_SHY_GUY) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_80218744))) EVT_CALL(HPBarToHome, ACTOR_SELF) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) diff --git a/src/battle/area/kpa/actor/bony_beetle.c b/src/battle/area/kpa/actor/bony_beetle.c index eb06f8a4b3..aede94bb7c 100644 --- a/src/battle/area/kpa/actor/bony_beetle.c +++ b/src/battle/area/kpa/actor/bony_beetle.c @@ -335,7 +335,7 @@ EvtScript N(handleEvent_normal) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_flipped))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_flipped))) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BonyBeetle_Anim08) EVT_USE_BUF(N(bounceTable)) EVT_LOOP(20) @@ -557,7 +557,7 @@ EvtScript N(handleEvent_spiky) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_flipped))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_spiky_flipped))) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BonyBeetle_Anim09) EVT_USE_BUF(N(bounceTable)) EVT_LOOP(20) @@ -934,7 +934,7 @@ EvtScript N(handleEvent_flipped) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_flipped))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_flipped))) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BonyBeetle_Anim1A) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_USE_BUF(N(bounceTable)) EVT_LOOP(20) EVT_BUF_READ1(LVar0) @@ -1013,7 +1013,7 @@ EvtScript N(standUp) = { EVT_CALL(SetActorVar, ACTOR_SELF, N(VAR_STATE), N(STATE_NORMAL)) EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_normal))) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_END_IF EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C) EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) @@ -1066,7 +1066,7 @@ EvtScript N(handleEvent_spiky_flipped) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_flipped))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_spiky_flipped))) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BonyBeetle_Anim1B) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_USE_BUF(N(bounceTable)) EVT_LOOP(20) EVT_BUF_READ1(LVar0) @@ -1147,7 +1147,7 @@ EvtScript N(standUp_spiky) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_spiky))) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_END_IF EVT_CALL(UseBattleCamPreset, BTL_CAM_PRESET_C) EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) diff --git a/src/battle/area/kpa2/actor/bowser_phase_1.c b/src/battle/area/kpa2/actor/bowser_phase_1.c index 049188a4fb..0b19a41fee 100644 --- a/src/battle/area/kpa2/actor/bowser_phase_1.c +++ b/src/battle/area/kpa2/actor/bowser_phase_1.c @@ -1065,13 +1065,13 @@ EvtScript N(attackHeavyJump) = { EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BattleBowser_Land) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar1) - EVT_IF_FLAG(LVar1, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar1, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED)//@bug checks wrong event flag, never uses 12 damage attack EVT_SET(LVar0, 12) EVT_ELSE EVT_SET(LVar0, 6) EVT_END_IF EVT_CALL(GetStatusFlags, ACTOR_SELF, LVarF) - EVT_IF_NOT_FLAG(LVarF, ACTOR_EVENT_FLAG_80000) + EVT_IF_NOT_FLAG(LVarF, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_CALL(func_80269EAC, 24) EVT_END_IF EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LVarF, 0, 0, 0, LVar0, BS_FLAGS1_SP_EVT_ACTIVE) diff --git a/src/battle/area/kpa2/actor/bowser_phase_2.c b/src/battle/area/kpa2/actor/bowser_phase_2.c index 28bde3dd65..b4cf006cd8 100644 --- a/src/battle/area/kpa2/actor/bowser_phase_2.c +++ b/src/battle/area/kpa2/actor/bowser_phase_2.c @@ -479,7 +479,7 @@ EvtScript N(useStarRod) = { EVT_CALL(RemoveEffect, LVarF) EVT_CALL(RemoveEffect, LVarE) EVT_CALL(RemoveEffect, LVarD) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_80000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED, TRUE) EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 1, ACTOR_DECORATION_RADIAL_STAR_EMITTER) EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_boosted))) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_boosted))) @@ -712,7 +712,7 @@ EvtScript N(doTakeTurn) = { EVT_CALL(GetActorVar, ACTOR_SELF, N(VAR_TURN_COUNTER), LVar0) EVT_IF_GT(LVar0, 1) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar0) - EVT_IF_NOT_FLAG(LVar0, ACTOR_EVENT_FLAG_80000) + EVT_IF_NOT_FLAG(LVar0, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_CALL(GetActorVar, ACTOR_SELF, N(VAR_TURNS_SINCE_LAST_STAR_BEAM), LVar0) EVT_SWITCH(LVar0) EVT_CASE_EQ(1) @@ -918,7 +918,7 @@ EvtScript N(attackHeavyJump) = { EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BattleBowser_Land) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar1) - EVT_IF_FLAG(LVar1, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar1, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_SET(LVar0, 16) EVT_ELSE EVT_SET(LVar0, 8) @@ -1119,7 +1119,7 @@ EvtScript N(attackClawSwipe) = { EVT_WAIT(2) EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar0) - EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_SET(LVar0, 16) EVT_CALL(func_80269EAC, 12) EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LVarF, 0, 0, DMG_STATUS_CHANCE(STATUS_FLAG_POISON, 3, 100), LVar0, BS_FLAGS1_SP_EVT_ACTIVE) @@ -1322,7 +1322,7 @@ EvtScript N(attackFlameBreath) = { EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar3) EVT_CALL(GetStatusFlags, ACTOR_SELF, LVar4) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) - EVT_IF_FLAG(LVar3, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar3, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_IF_NOT_FLAG(LVar4, STATUS_FLAG_SHRINK) EVT_SUB(LVar0, 70) EVT_ADD(LVar1, 35) @@ -1345,7 +1345,7 @@ EvtScript N(attackFlameBreath) = { EVT_SUB(LVar3, 40) EVT_SET(LVar4, 20) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar6) - EVT_IF_FLAG(LVar6, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar6, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_PLAY_EFFECT(EFFECT_FIRE_BREATH, 0, LVar0, LVar1, LVar2, LVar3, LVar4, LVar5, 50, 1, 24, 0) EVT_ELSE EVT_CALL(GetStatusFlags, ACTOR_SELF, LVar7) @@ -1389,7 +1389,7 @@ EvtScript N(attackFlameBreath) = { EVT_WAIT(2) EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar0) - EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_SET(LVar0, 20) EVT_ELSE EVT_SET(LVar0, 10) @@ -1579,7 +1579,7 @@ EvtScript N(attackLightningBlast) = { EVT_WAIT(5) EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar0) - EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_SET(LVar0, 20) EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LVarF, DAMAGE_TYPE_SHOCK | DAMAGE_TYPE_NO_CONTACT, 0, 0, LVar0, BS_FLAGS1_SP_EVT_ACTIVE) EVT_ELSE diff --git a/src/battle/area/kpa2/actor/bowser_phase_3.c b/src/battle/area/kpa2/actor/bowser_phase_3.c index a64a6d199b..21d8f34f5c 100644 --- a/src/battle/area/kpa2/actor/bowser_phase_3.c +++ b/src/battle/area/kpa2/actor/bowser_phase_3.c @@ -228,7 +228,7 @@ EvtScript N(init) = { EVT_EXEC(N(unkDecorationScript)) EVT_CALL(ModifyActorDecoration, ACTOR_SELF, 1, 0, 150, 150, 0, 0) EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 0, ACTOR_DECORATION_A) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_80000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED, TRUE) EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 1, ACTOR_DECORATION_RADIAL_STAR_EMITTER) EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_boosted))) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_boosted))) @@ -460,7 +460,7 @@ EvtScript N(handleEvent) = { EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_ADD(LVar1, LVar4) EVT_PLAY_EFFECT(EFFECT_SHIMMER_BURST, 1, LVar0, LVar1, LVar2, EVT_FLOAT(1.05), 50, 0) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_80000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED, FALSE) EVT_CALL(SetActorVar, ACTOR_SELF, N(VAR_TURNS_SINCE_LAST_STAR_BEAM), 0) EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable))) @@ -511,7 +511,7 @@ EvtScript N(doOnHit) = { }; EvtScript N(onDeath) = { - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_80000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED, FALSE) EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 1) EVT_CALL(RemoveActorDecoration, ACTOR_SELF, 1, 0) EVT_WAIT(14) @@ -738,7 +738,7 @@ EvtScript N(useStarRod) = { EVT_CALL(RemoveEffect, LVarF) EVT_CALL(RemoveEffect, LVarE) EVT_CALL(RemoveEffect, LVarD) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_80000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED, TRUE) EVT_CALL(AddActorDecoration, ACTOR_SELF, 1, 1, ACTOR_DECORATION_RADIAL_STAR_EMITTER) EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_boosted))) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_boosted))) @@ -945,7 +945,7 @@ EvtScript N(doTakeTurn) = { EVT_CALL(GetActorVar, ACTOR_SELF, N(VAR_TURN_COUNTER), LVar0) EVT_IF_GT(LVar0, 1) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar0) - EVT_IF_NOT_FLAG(LVar0, ACTOR_EVENT_FLAG_80000) + EVT_IF_NOT_FLAG(LVar0, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_CALL(GetActorVar, ACTOR_SELF, N(VAR_TURNS_SINCE_LAST_STAR_BEAM), LVar0) EVT_SWITCH(LVar0) EVT_CASE_EQ(1) @@ -1151,7 +1151,7 @@ EvtScript N(attackHeavyJump) = { EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BattleBowser_Land) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar1) - EVT_IF_FLAG(LVar1, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar1, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_SET(LVar0, 16) EVT_ELSE EVT_SET(LVar0, 8) @@ -1352,7 +1352,7 @@ EvtScript N(attackClawSwipe) = { EVT_WAIT(2) EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar0) - EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_SET(LVar0, 16) EVT_CALL(func_80269EAC, 12) EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LVarF, 0, 0, DMG_STATUS_CHANCE(STATUS_FLAG_POISON, 3, 100), LVar0, BS_FLAGS1_SP_EVT_ACTIVE) @@ -1555,7 +1555,7 @@ EvtScript N(attackFlameBreath) = { EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar3) EVT_CALL(GetStatusFlags, ACTOR_SELF, LVar4) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) - EVT_IF_FLAG(LVar3, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar3, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_IF_NOT_FLAG(LVar4, STATUS_FLAG_SHRINK) EVT_SUB(LVar0, 70) EVT_ADD(LVar1, 35) @@ -1578,7 +1578,7 @@ EvtScript N(attackFlameBreath) = { EVT_SUB(LVar3, 40) EVT_SET(LVar4, 20) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar6) - EVT_IF_FLAG(LVar6, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar6, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_PLAY_EFFECT(EFFECT_FIRE_BREATH, 0, LVar0, LVar1, LVar2, LVar3, LVar4, LVar5, 50, 1, 24, 0) EVT_ELSE EVT_CALL(GetStatusFlags, ACTOR_SELF, LVar7) @@ -1622,7 +1622,7 @@ EvtScript N(attackFlameBreath) = { EVT_WAIT(2) EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar0) - EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_SET(LVar0, 20) EVT_ELSE EVT_SET(LVar0, 10) @@ -1812,7 +1812,7 @@ EvtScript N(attackLightningBlast) = { EVT_WAIT(5) EVT_CALL(SetGoalToTarget, ACTOR_SELF) EVT_CALL(GetPartEventFlags, ACTOR_SELF, 1, LVar0) - EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_80000) + EVT_IF_FLAG(LVar0, ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) EVT_SET(LVar0, 20) EVT_CALL(EnemyDamageTarget, ACTOR_SELF, LVarF, DAMAGE_TYPE_SHOCK | DAMAGE_TYPE_NO_CONTACT, 0, 0, LVar0, BS_FLAGS1_SP_EVT_ACTIVE) EVT_ELSE diff --git a/src/battle/area/kpa4/actor/bombshell_bill.c b/src/battle/area/kpa4/actor/bombshell_bill.c index 38dc5fbe2b..eeb4a38210 100644 --- a/src/battle/area/kpa4/actor/bombshell_bill.c +++ b/src/battle/area/kpa4/actor/bombshell_bill.c @@ -53,7 +53,7 @@ ActorPartBlueprint N(parts)[] = { .opacity = 255, .idleAnimations = N(idleAnimations), .defenseTable = N(defenseTable), - .eventFlags = ACTOR_EVENT_FLAG_400, + .eventFlags = ACTOR_EVENT_FLAG_FIRE_EXPLODE, .elementImmunityFlags = 0, .projectileTargetOffset = { 0, -6 }, }, diff --git a/src/battle/area/kzn2/actor/lava_bud.c b/src/battle/area/kzn2/actor/lava_bud.c index 6eec1e4db4..b209453d2d 100644 --- a/src/battle/area/kzn2/actor/lava_bud.c +++ b/src/battle/area/kzn2/actor/lava_bud.c @@ -689,7 +689,7 @@ EvtScript N(onDeath) = { EVT_CALL(SetActorVar, ACTOR_SELF, 5, 2) EVT_EXEC_WAIT(N(8022630C)) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 2, ACTOR_PART_FLAG_2000 | ACTOR_PART_FLAG_NO_TARGET, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, TRUE) EVT_ELSE EVT_EXEC_WAIT(N(onHit)) EVT_RETURN diff --git a/src/battle/area/kzn2/actor/lava_piranha.c b/src/battle/area/kzn2/actor/lava_piranha.c index f84a2a6465..57f7b359cd 100644 --- a/src/battle/area/kzn2/actor/lava_piranha.c +++ b/src/battle/area/kzn2/actor/lava_piranha.c @@ -1567,9 +1567,9 @@ EvtScript N(onDeath) = { EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_LAVA_PIRANHA_PHASE_2) EVT_CALL(SetActorType, ACTOR_ENEMY1, ACTOR_TYPE_LAVA_BUD_PHASE_2) EVT_CALL(SetActorType, ACTOR_ENEMY2, ACTOR_TYPE_LAVA_BUD_PHASE_2) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY1, ACTOR_FLAG_1000, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY2, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY1, ACTOR_FLAG_TYPE_CHANGED, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY2, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(GetEnemyMaxHP, ACTOR_SELF, LVar0) EVT_CALL(SetEnemyHP, ACTOR_SELF, LVar0) EVT_CALL(GetEnemyMaxHP, ACTOR_ENEMY1, LVar0) @@ -1897,7 +1897,7 @@ EvtScript N(ignite) = { EVT_CALL(SetActorVar, ACTOR_ENEMY1, 8, ANIM_LavaBud_Anim0B) EVT_CALL(SetActorVar, ACTOR_ENEMY1, 5, 1) EVT_CALL(SetPartFlagBits, ACTOR_ENEMY1, 2, ACTOR_PART_FLAG_NO_TARGET, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY1, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY1, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CASE_EQ(ACTOR_ENEMY2) EVT_CALL(SetActorVar, ACTOR_ENEMY2, 10, 35) EVT_CALL(GetAnimatedPositionByTreeIndex, VINE_2, 8, LVar1, LVar2, LVar3) @@ -1918,7 +1918,7 @@ EvtScript N(ignite) = { EVT_CALL(SetActorVar, ACTOR_ENEMY2, 8, ANIM_LavaBud_Anim0B) EVT_CALL(SetActorVar, ACTOR_ENEMY2, 5, 1) EVT_CALL(SetPartFlagBits, ACTOR_ENEMY2, 2, ACTOR_PART_FLAG_NO_TARGET, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY2, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY2, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CASE_DEFAULT EVT_CALL(SetActorVar, ACTOR_ENEMY0, 10, 70) EVT_CALL(GetAnimatedPositionByTreeIndex, VINE_0, 10, LVar1, LVar2, LVar3) @@ -1939,7 +1939,7 @@ EvtScript N(ignite) = { EVT_CALL(SetActorVar, ACTOR_ENEMY0, 8, ANIM_LavaPiranha_Anim0A) EVT_CALL(SetActorVar, ACTOR_ENEMY0, 5, 1) EVT_CALL(ForceHomePos, ACTOR_SELF, 61, 61, 0) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_END_SWITCH EVT_RETURN EVT_END diff --git a/src/battle/area/mac/actor/chan.c b/src/battle/area/mac/actor/chan.c index a8e6d591c9..583cd34e5b 100644 --- a/src/battle/area/mac/actor/chan.c +++ b/src/battle/area/mac/actor/chan.c @@ -174,7 +174,7 @@ EvtScript N(8021A12C) = { EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HP_OFFSET_BELOW, FALSE) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, 16, FALSE) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, 0x00001000, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Chan_ToppledHurt) EVT_CALL(SetActorYaw, ACTOR_SELF, 180) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) @@ -377,7 +377,7 @@ EvtScript N(handleEvent_8021AAB8) = { EVT_CALL(SetActorVar, ACTOR_SELF, 9, 1) EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_80219D6C))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80219F08))) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Chan_Hurt) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0) EVT_THREAD @@ -714,7 +714,7 @@ EvtScript N(takeTurn_Chan) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_80219D50))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80219E70))) EVT_CALL(BindIdle, ACTOR_SELF, EVT_PTR(N(idle_8021A11C))) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) diff --git a/src/battle/area/omo/actor/sky_guy.c b/src/battle/area/omo/actor/sky_guy.c index 7e39db2226..6168f77406 100644 --- a/src/battle/area/omo/actor/sky_guy.c +++ b/src/battle/area/omo/actor/sky_guy.c @@ -387,7 +387,7 @@ EvtScript N(80229F08) = { EVT_CALL(BindIdle, ACTOR_SELF, EVT_PTR(N(idle_8022B19C))) EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_PTR(N(handleEvent_8022B310))) EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_SHY_GUY) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(HPBarToHome, ACTOR_SELF) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_ELSE diff --git a/src/battle/area/omo2/actor/general_guy.c b/src/battle/area/omo2/actor/general_guy.c index e31b42a190..02560ee016 100644 --- a/src/battle/area/omo2/actor/general_guy.c +++ b/src/battle/area/omo2/actor/general_guy.c @@ -84,7 +84,7 @@ ActorPartBlueprint N(parts)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_40000, + .flags = ACTOR_FLAG_HIDE_HP_BAR, .type = ACTOR_TYPE_GENERAL_GUY, .level = 73, .maxHP = 10, diff --git a/src/battle/area/omo2/actor/light_bulb.c b/src/battle/area/omo2/actor/light_bulb.c index a4045cbfbc..ddffaa1424 100644 --- a/src/battle/area/omo2/actor/light_bulb.c +++ b/src/battle/area/omo2/actor/light_bulb.c @@ -76,7 +76,7 @@ ActorPartBlueprint N(parts)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_80 | ACTOR_FLAG_40000, + .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_80 | ACTOR_FLAG_HIDE_HP_BAR, .type = ACTOR_TYPE_LIGHT_BULB, .level = 0, .maxHP = 8, diff --git a/src/battle/area/omo2/actor/toy_tank.c b/src/battle/area/omo2/actor/toy_tank.c index 2ca841d170..259f7d9175 100644 --- a/src/battle/area/omo2/actor/toy_tank.c +++ b/src/battle/area/omo2/actor/toy_tank.c @@ -136,7 +136,7 @@ ActorPartBlueprint N(parts)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_40000, + .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_HIDE_HP_BAR, .type = ACTOR_TYPE_TOY_TANK, .level = 0, .maxHP = 30, @@ -715,7 +715,7 @@ EvtScript N(start_battle_with_tank) = { EVT_CALL(SetPartFlagBits, ACTOR_ENEMY0, 1, ACTOR_PART_FLAG_20000000, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_ENEMY2, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_ENEMY1, 2, ACTOR_PART_FLAG_NO_TARGET, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY1, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY1, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(HPBarToHome, ACTOR_ENEMY1) EVT_CALL(SetActorVar, ACTOR_ENEMY0, 0, 1) EVT_CALL(SetAnimation, ACTOR_ENEMY0, 1, ANIM_GeneralGuy_Anim02) diff --git a/src/battle/area/omo2_2/actor/stilt_guy.c b/src/battle/area/omo2_2/actor/stilt_guy.c index 2aeeb5cd98..1e095850ba 100644 --- a/src/battle/area/omo2_2/actor/stilt_guy.c +++ b/src/battle/area/omo2_2/actor/stilt_guy.c @@ -785,7 +785,7 @@ EvtScript N(fallOff) = { EVT_CALL(BindIdle, ACTOR_SELF, EVT_PTR(N(shy_guy_idle))) EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_PTR(N(shy_guy_handleEvent))) EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_SHY_GUY) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(HPBarToHome, ACTOR_SELF) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(GetActorSize, ACTOR_SELF, LVar0, LVar1) diff --git a/src/battle/area/omo2_6/actor/shy_guy_dup.c b/src/battle/area/omo2_6/actor/shy_guy_dup.c index 955268ebc3..2cb3a82859 100644 --- a/src/battle/area/omo2_6/actor/shy_guy_dup.c +++ b/src/battle/area/omo2_6/actor/shy_guy_dup.c @@ -154,7 +154,7 @@ ActorPartBlueprint N(parts)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_40000, + .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_HIDE_HP_BAR, .type = ACTOR_TYPE_SHY_GUY_DUP, .level = 0, .maxHP = 10, diff --git a/src/battle/area/sam/actor/gulpit_rocks.c b/src/battle/area/sam/actor/gulpit_rocks.c index 7a9e33a798..0137545e21 100644 --- a/src/battle/area/sam/actor/gulpit_rocks.c +++ b/src/battle/area/sam/actor/gulpit_rocks.c @@ -67,7 +67,7 @@ ActorPartBlueprint N(parts)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_TARGET_ONLY | ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK, + .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_TARGET_ONLY | ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK, .type = ACTOR_TYPE_GULPIT_ROCKS, .level = 0, .maxHP = 1, diff --git a/src/battle/area/tik/actor/dark_koopa.c b/src/battle/area/tik/actor/dark_koopa.c index 90043a0a79..ba6fa65a6f 100644 --- a/src/battle/area/tik/actor/dark_koopa.c +++ b/src/battle/area/tik/actor/dark_koopa.c @@ -399,7 +399,7 @@ EvtScript N(handleEvent) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_flipped))) EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -5, 15) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, 0, 0) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_KoopaTroopa_Dark_Hurt) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0) EVT_THREAD @@ -831,7 +831,7 @@ EvtScript N(standUp) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -4, 32) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, -1, -4) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_CALL(ResetActorSounds, ACTOR_SELF, ACTOR_SOUND_JUMP) EVT_CALL(GetActorVar, ACTOR_SELF, 8, LVar0) EVT_SWITCH(LVar0) diff --git a/src/battle/area/tik/actor/dark_paratroopa.c b/src/battle/area/tik/actor/dark_paratroopa.c index 23073ccbea..9febfc5493 100644 --- a/src/battle/area/tik/actor/dark_paratroopa.c +++ b/src/battle/area/tik/actor/dark_paratroopa.c @@ -632,7 +632,7 @@ EvtScript N(fall) = { EVT_CALL(BindNextTurn, ACTOR_SELF, 0) EVT_EXEC_WAIT(N(init_koopa)) EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_DARK_KOOPA) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(HPBarToHome, ACTOR_SELF) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_IF_NE(LVarA, 0) @@ -949,7 +949,7 @@ EvtScript N(handleEvent_koopa) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_koopa_flipped))) EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -5, 15) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, 0, 0) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_KoopaTroopa_Dark_Hurt) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0) EVT_THREAD @@ -1381,7 +1381,7 @@ EvtScript N(koopa_standUp) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -4, 32) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, -1, -4) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_CALL(ResetActorSounds, ACTOR_SELF, ACTOR_SOUND_JUMP) EVT_CALL(GetActorVar, ACTOR_SELF, 8, LVar0) EVT_SWITCH(LVar0) diff --git a/src/battle/area/tik/actor/paragloomba.c b/src/battle/area/tik/actor/paragloomba.c index 7cf17ae1e5..cf2bf6477a 100644 --- a/src/battle/area/tik/actor/paragloomba.c +++ b/src/battle/area/tik/actor/paragloomba.c @@ -544,7 +544,7 @@ EvtScript N(fall) = { EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_gloomba))) EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_GLOOMBA) EVT_EXEC_WAIT(N(init_gloomba)) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(HPBarToHome, ACTOR_SELF) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_RETURN diff --git a/src/battle/area/tik2/actor/electro_blooper.c b/src/battle/area/tik2/actor/electro_blooper.c index 6e8941e5ee..7be95251f7 100644 --- a/src/battle/area/tik2/actor/electro_blooper.c +++ b/src/battle/area/tik2/actor/electro_blooper.c @@ -864,7 +864,7 @@ EvtScript N(charge) = { EVT_PLAY_EFFECT(EFFECT_SNAKING_STATIC, 0, LVar0, LVar1, LVar2, LVar3, -1, 0) EVT_CALL(SetActorVar, ACTOR_SELF, 1, LVarF) EVT_CALL(PlaySoundAtActor, ACTOR_SELF, SOUND_35C) - EVT_CALL(SetPartEventFlags, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000 | ACTOR_EVENT_FLAG_ELECTRIFIED) + EVT_CALL(SetPartEventFlags, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED | ACTOR_EVENT_FLAG_ELECTRIFIED) EVT_CALL(func_8026ED20, ACTOR_SELF, 1, 1) EVT_CALL(func_8026EA7C, ACTOR_SELF, 1, 4) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_charged))) diff --git a/src/battle/area/tik2/actor/super_blooper.c b/src/battle/area/tik2/actor/super_blooper.c index 5cea1d87aa..0104e368ae 100644 --- a/src/battle/area/tik2/actor/super_blooper.c +++ b/src/battle/area/tik2/actor/super_blooper.c @@ -875,7 +875,7 @@ EvtScript N(enrage) = { EVT_CALL(func_8026EBF8, ACTOR_SELF, 1, 0, 2, 0, 6, 12, 6, 0, 0) EVT_CALL(func_8026EA7C, ACTOR_SELF, 1, 15) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_enraged))) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) EVT_RETURN EVT_END }; @@ -884,7 +884,7 @@ EvtScript N(unEnrage) = { EVT_CALL(SetActorVar, ACTOR_SELF, 0, 0) EVT_CALL(func_8026ED20, ACTOR_SELF, 1, 0) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable))) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_RETURN EVT_END }; diff --git a/src/battle/area/trd_part_1/actor/bullet_bill.c b/src/battle/area/trd_part_1/actor/bullet_bill.c index 028afad526..6aacd54b81 100644 --- a/src/battle/area/trd_part_1/actor/bullet_bill.c +++ b/src/battle/area/trd_part_1/actor/bullet_bill.c @@ -48,7 +48,7 @@ ActorPartBlueprint N(partsTable_80219018)[] = { .opacity = 255, .idleAnimations = N(idleAnimations_80219064), .defenseTable = N(defenseTable_80218F60), - .eventFlags = ACTOR_EVENT_FLAG_400, + .eventFlags = ACTOR_EVENT_FLAG_FIRE_EXPLODE, .elementImmunityFlags = 0, .projectileTargetOffset = { 0, -6 }, }, diff --git a/src/battle/area/trd_part_2/actor/blue_ninja_koopa.c b/src/battle/area/trd_part_2/actor/blue_ninja_koopa.c index 01da8d321f..36237dfd4a 100644 --- a/src/battle/area/trd_part_2/actor/blue_ninja_koopa.c +++ b/src/battle/area/trd_part_2/actor/blue_ninja_koopa.c @@ -64,7 +64,7 @@ ActorPartBlueprint N(partsTable_8022B564)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK, + .flags = ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK, .type = ACTOR_TYPE_BLUE_NINJAKOOPA, .level = 17, .maxHP = 5, @@ -278,7 +278,7 @@ EvtScript N(8022B6E8) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8022B6DC))) EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_CALL(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2) @@ -324,7 +324,7 @@ EvtScript N(8022B6E8) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8022B6DC))) EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_CALL(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2) diff --git a/src/battle/area/trd_part_2/actor/fake_bowser.c b/src/battle/area/trd_part_2/actor/fake_bowser.c index f69bdfd437..7291270d20 100644 --- a/src/battle/area/trd_part_2/actor/fake_bowser.c +++ b/src/battle/area/trd_part_2/actor/fake_bowser.c @@ -1726,7 +1726,7 @@ EvtScript N(8021F630) = { EVT_WAIT(30) EVT_CALL(func_80218350_4B1540) EVT_CALL(ActorSpeak, MSG_CH1_0107, ACTOR_ENEMY1, 1, -1, -1) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000 | ACTOR_FLAG_NO_DMG_APPLY, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_DMG_APPLY, TRUE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, TRUE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 2, ACTOR_PART_FLAG_NO_TARGET, TRUE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_MULTI_TARGET, FALSE) @@ -1735,19 +1735,19 @@ EvtScript N(8021F630) = { EVT_CALL(BindIdle, ACTOR_SELF, EVT_PTR(N(idle_802239BC))) EVT_CALL(BindHandleEvent, ACTOR_SELF, EVT_PTR(N(handleEvent_802242FC))) EVT_CALL(BindNextTurn, ACTOR_SELF, EVT_PTR(N(nextTurn_80225438))) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY0, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY0, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_ENEMY0, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(HPBarToHome, ACTOR_ENEMY0) EVT_CALL(SetAnimation, ACTOR_ENEMY0, 1, ANIM_KoopaBros_Green_Anim04) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY1, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY1, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_ENEMY1, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(HPBarToHome, ACTOR_ENEMY1) EVT_CALL(SetAnimation, ACTOR_ENEMY1, 1, ANIM_KoopaBros_Yellow_Anim04) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY2, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY2, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_ENEMY2, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(HPBarToHome, ACTOR_ENEMY2) EVT_CALL(SetAnimation, ACTOR_ENEMY2, 1, ANIM_KoopaBros_Black_Anim04) - EVT_CALL(SetActorFlagBits, ACTOR_ENEMY3, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_ENEMY3, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_ENEMY3, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(HPBarToHome, ACTOR_ENEMY3) EVT_CALL(SetAnimation, ACTOR_ENEMY3, 1, ANIM_KoopaBros_Red_Anim04) @@ -1929,7 +1929,7 @@ EvtScript N(80220588) = { EVT_CASE_EQ(ACTOR_ENEMY3) EVT_CALL(SetAnimation, LVarA, 1, ANIM_KoopaBros_Red_Anim04) EVT_END_SWITCH - EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_40000, TRUE) + EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_HIDE_HP_BAR, TRUE) EVT_CALL(SetPartFlagBits, LVarA, 1, ACTOR_PART_FLAG_NO_TARGET, TRUE) EVT_CALL(HPBarToHome, LVarA) EVT_CALL(SetActorVar, LVarA, 1, 3) @@ -1977,7 +1977,7 @@ EvtScript N(80220588) = { EVT_CASE_EQ(ACTOR_ENEMY3) EVT_CALL(SetAnimation, LVarA, 1, ANIM_KoopaBros_Red_Anim05) EVT_END_SWITCH - EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_40000, TRUE) + EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_HIDE_HP_BAR, TRUE) EVT_CALL(SetPartFlagBits, LVarA, 1, ACTOR_PART_FLAG_NO_TARGET, TRUE) EVT_CALL(HPBarToHome, LVarA) EVT_CALL(SetActorVar, LVarA, 1, 6) @@ -2043,7 +2043,7 @@ EvtScript N(80220588) = { EVT_CASE_EQ(ACTOR_ENEMY3) EVT_CALL(SetAnimation, LVarA, 1, ANIM_KoopaBros_Red_Anim05) EVT_END_SWITCH - EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_40000, TRUE) + EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_HIDE_HP_BAR, TRUE) EVT_CALL(SetPartFlagBits, LVarA, 1, ACTOR_PART_FLAG_NO_TARGET, TRUE) EVT_CALL(HPBarToHome, LVarA) EVT_CALL(SetActorVar, LVarA, 1, 5) @@ -2109,7 +2109,7 @@ EvtScript N(80220588) = { EVT_CASE_EQ(ACTOR_ENEMY3) EVT_CALL(SetAnimation, LVarA, 1, ANIM_KoopaBros_Red_Anim05) EVT_END_SWITCH - EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_40000, TRUE) + EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_HIDE_HP_BAR, TRUE) EVT_CALL(SetPartFlagBits, LVarA, 1, ACTOR_PART_FLAG_NO_TARGET, TRUE) EVT_CALL(HPBarToHome, LVarA) EVT_CALL(SetActorVar, LVarA, 1, 4) @@ -2253,7 +2253,7 @@ EvtScript N(80221DB4) = { EVT_ADD(LVar1, 19) EVT_PLAY_EFFECT(EFFECT_LENS_FLARE, 0, LVar0, LVar1, LVar2, 30, 0) EVT_WAIT(30) - EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_40000, TRUE) + EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_HIDE_HP_BAR, TRUE) EVT_CALL(SetPartFlagBits, LVarA, 1, ACTOR_PART_FLAG_NO_TARGET, TRUE) EVT_CALL(HPBarToHome, LVarA) EVT_CALL(SetActorVar, LVarA, 1, 3) @@ -2329,7 +2329,7 @@ EvtScript N(80221DB4) = { EVT_CASE_EQ(ACTOR_ENEMY3) EVT_CALL(SetAnimation, LVarA, 1, ANIM_KoopaBros_Red_Anim05) EVT_END_SWITCH - EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_40000, TRUE) + EVT_CALL(SetActorFlagBits, LVarA, ACTOR_FLAG_HIDE_HP_BAR, TRUE) EVT_CALL(SetPartFlagBits, LVarA, 1, ACTOR_PART_FLAG_NO_TARGET, TRUE) EVT_CALL(HPBarToHome, LVarA) EVT_CALL(SetActorVar, LVarA, 1, 4) diff --git a/src/battle/area/trd_part_2/actor/green_ninja_koopa.c b/src/battle/area/trd_part_2/actor/green_ninja_koopa.c index e7f70862d2..aa5c82558e 100644 --- a/src/battle/area/trd_part_2/actor/green_ninja_koopa.c +++ b/src/battle/area/trd_part_2/actor/green_ninja_koopa.c @@ -64,7 +64,7 @@ ActorPartBlueprint N(partsTable_80225624)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK, + .flags = ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK, .type = ACTOR_TYPE_GREEN_NINJAKOOPA, .level = 16, .maxHP = 5, @@ -278,7 +278,7 @@ EvtScript N(802257A8) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8022579C))) EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_CALL(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2) @@ -324,7 +324,7 @@ EvtScript N(802257A8) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8022579C))) EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_CALL(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2) diff --git a/src/battle/area/trd_part_2/actor/red_ninja_koopa.c b/src/battle/area/trd_part_2/actor/red_ninja_koopa.c index ad6e05366a..a23d76149a 100644 --- a/src/battle/area/trd_part_2/actor/red_ninja_koopa.c +++ b/src/battle/area/trd_part_2/actor/red_ninja_koopa.c @@ -64,7 +64,7 @@ ActorPartBlueprint N(partsTable_802285C4)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK, + .flags = ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK, .type = ACTOR_TYPE_RED_NINJAKOOPA, .level = 17, .maxHP = 5, @@ -278,7 +278,7 @@ EvtScript N(80228748) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8022873C))) EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_CALL(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2) @@ -324,7 +324,7 @@ EvtScript N(80228748) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8022873C))) EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_CALL(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2) diff --git a/src/battle/area/trd_part_2/actor/yellow_ninja_koopa.c b/src/battle/area/trd_part_2/actor/yellow_ninja_koopa.c index b456e2ef69..a3a06ce70b 100644 --- a/src/battle/area/trd_part_2/actor/yellow_ninja_koopa.c +++ b/src/battle/area/trd_part_2/actor/yellow_ninja_koopa.c @@ -64,7 +64,7 @@ ActorPartBlueprint N(partsTable_8022E504)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK, + .flags = ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK, .type = ACTOR_TYPE_YELLOW_NINJAKOOPA, .level = 16, .maxHP = 5, @@ -278,7 +278,7 @@ EvtScript N(8022E688) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8022E67C))) EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_CALL(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2) @@ -324,7 +324,7 @@ EvtScript N(8022E688) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8022E67C))) EVT_CALL(JumpToGoal, ACTOR_SELF, 10, FALSE, TRUE, FALSE) EVT_CALL(JumpToGoal, ACTOR_SELF, 5, FALSE, TRUE, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_40000, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HIDE_HP_BAR, FALSE) EVT_CALL(SetPartFlagBits, ACTOR_SELF, 1, ACTOR_PART_FLAG_NO_TARGET, FALSE) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) EVT_CALL(ForceHomePos, ACTOR_SELF, LVar0, LVar1, LVar2) diff --git a/src/battle/area/trd_part_3/actor/eldstar.c b/src/battle/area/trd_part_3/actor/eldstar.c index 741099c18c..1a9058f1c8 100644 --- a/src/battle/area/trd_part_3/actor/eldstar.c +++ b/src/battle/area/trd_part_3/actor/eldstar.c @@ -65,7 +65,7 @@ ActorPartBlueprint N(ActorParts)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK, + .flags = ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK, .type = ACTOR_TYPE_ELDSTAR, .level = 99, .maxHP = 99, diff --git a/src/battle/common/actor/buzzy_beetle.inc.c b/src/battle/common/actor/buzzy_beetle.inc.c index f4e5344034..2f3605cfd1 100644 --- a/src/battle/common/actor/buzzy_beetle.inc.c +++ b/src/battle/common/actor/buzzy_beetle.inc.c @@ -172,7 +172,7 @@ EvtScript N(fallOff) = { EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HP_OFFSET_BELOW, FALSE) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, FALSE) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_FLIPABLE, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BuzzyBeetle_Anim08) EVT_CALL(SetActorYaw, ACTOR_SELF, 180) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) @@ -374,7 +374,7 @@ EvtScript N(handleEvent) = { EVT_CALL(SetActorVar, ACTOR_SELF, 9, 1) EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_flipped))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_flipped))) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_BuzzyBeetle_Anim07) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0) EVT_THREAD @@ -711,7 +711,7 @@ EvtScript N(takeTurn) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_normal))) EVT_CALL(BindIdle, ACTOR_SELF, EVT_PTR(N(idle))) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) diff --git a/src/battle/common/actor/gray_magikoopa.inc.c b/src/battle/common/actor/gray_magikoopa.inc.c index 366aae2132..35f6f06fc7 100644 --- a/src/battle/common/actor/gray_magikoopa.inc.c +++ b/src/battle/common/actor/gray_magikoopa.inc.c @@ -111,7 +111,7 @@ ActorPartBlueprint N(parts_flying)[] = { .opacity = 255, .idleAnimations = N(idleAnimations2), .defenseTable = N(defenseTable_flying), - .eventFlags = ACTOR_EVENT_FLAG_800000, + .eventFlags = ACTOR_EVENT_FLAG_RIDING_BROOMSTICK, .elementImmunityFlags = 0, .projectileTargetOffset = { 0, -8 }, }, @@ -395,7 +395,7 @@ EvtScript N(knockOff) = { EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_GRAY_MAGIKOOPA) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable))) EVT_CALL(N(UnkBattleFunc1), -10, 20, 10, 32) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(GetIndexFromPos, ACTOR_SELF, LVar0) EVT_MOD(LVar0, 4) diff --git a/src/battle/common/actor/green_magikoopa.inc.c b/src/battle/common/actor/green_magikoopa.inc.c index d6615c8db4..7f56b229d2 100644 --- a/src/battle/common/actor/green_magikoopa.inc.c +++ b/src/battle/common/actor/green_magikoopa.inc.c @@ -113,7 +113,7 @@ ActorPartBlueprint N(parts_flying)[] = { .opacity = 255, .idleAnimations = N(idleAnimations2), .defenseTable = N(defenseTable_flying), - .eventFlags = ACTOR_EVENT_FLAG_800000, + .eventFlags = ACTOR_EVENT_FLAG_RIDING_BROOMSTICK, .elementImmunityFlags = 0, .projectileTargetOffset = { 0, -8 }, }, @@ -397,7 +397,7 @@ EvtScript N(knockOff) = { EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_GREEN_MAGIKOOPA) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable))) EVT_CALL(N(UnkBattleFunc1), -10, 20, 10, 32) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(GetIndexFromPos, ACTOR_SELF, LVar0) EVT_MOD(LVar0, 4) diff --git a/src/battle/common/actor/koopa_troopa.inc.c b/src/battle/common/actor/koopa_troopa.inc.c index dccccff1b4..8dcd71f2fc 100644 --- a/src/battle/common/actor/koopa_troopa.inc.c +++ b/src/battle/common/actor/koopa_troopa.inc.c @@ -286,7 +286,7 @@ EvtScript N(handleEvent) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_flipped))) EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -5, 15) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, 0, 0) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_KoopaTroopa_Hurt) EVT_CALL(GetStatusFlags, ACTOR_SELF, LVarA) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0) @@ -485,7 +485,7 @@ EvtScript N(takeTurn) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -4, 32) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, -1, -4) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_CALL(ResetActorSounds, ACTOR_SELF, ACTOR_SOUND_JUMP) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) diff --git a/src/battle/common/actor/koopatrol.inc.c b/src/battle/common/actor/koopatrol.inc.c index d1df661d2f..23bdfdce52 100644 --- a/src/battle/common/actor/koopatrol.inc.c +++ b/src/battle/common/actor/koopatrol.inc.c @@ -405,7 +405,7 @@ EvtScript N(handleEvent) = { EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -5, 15) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, 0, 0) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Koopatrol_Anim0B) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0) EVT_THREAD @@ -463,7 +463,7 @@ EvtScript N(handleEvent) = { EVT_IF_NOT_FLAG(LVarA, STATUS_FLAG_DEFENSE_BOOST | STATUS_FLAG_ATTACK_BOOST) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) EVT_END_IF - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_SET_CONST(LVar0, 1) EVT_SET_CONST(LVar1, ANIM_Koopatrol_Anim08) EVT_EXEC_WAIT(DoImmune) @@ -681,7 +681,7 @@ EvtScript N(attackShellToss) = { EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -4, 32) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, -1, -4) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) @@ -839,7 +839,7 @@ EvtScript N(attackShellMissile) = { EVT_CALL(SetActorVar, ACTOR_SELF, N(VAR_STATE), N(STATE_CHARGED)) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_charged))) EVT_CALL(EnableActorGlow, ACTOR_SELF, TRUE) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) EVT_WAIT(10) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) @@ -895,7 +895,7 @@ EvtScript N(attackShellMissile) = { EVT_IF_NOT_FLAG(LVarA, STATUS_FLAG_DEFENSE_BOOST | STATUS_FLAG_ATTACK_BOOST) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) EVT_END_IF - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(YieldTurn) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(SetActorPos, ACTOR_SELF, 300, 0, 0) @@ -960,7 +960,7 @@ EvtScript N(attackShellMissile) = { EVT_IF_NOT_FLAG(LVarA, STATUS_FLAG_DEFENSE_BOOST | STATUS_FLAG_ATTACK_BOOST) EVT_CALL(EnableActorGlow, ACTOR_SELF, FALSE) EVT_END_IF - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(SetActorPos, ACTOR_SELF, 300, 0, 0) EVT_SET_CONST(LVar0, 1) diff --git a/src/battle/common/actor/magikoopa.inc.c b/src/battle/common/actor/magikoopa.inc.c index f2416ae6bd..7e5d12e652 100644 --- a/src/battle/common/actor/magikoopa.inc.c +++ b/src/battle/common/actor/magikoopa.inc.c @@ -139,7 +139,7 @@ ActorPartBlueprint N(parts_flying)[] = { .opacity = 255, .idleAnimations = N(idleAnimations_flying), .defenseTable = N(defenseTable_flying), - .eventFlags = ACTOR_EVENT_FLAG_800000, + .eventFlags = ACTOR_EVENT_FLAG_RIDING_BROOMSTICK, .elementImmunityFlags = 0, .projectileTargetOffset = { 0, -8 }, }, @@ -359,7 +359,7 @@ EvtScript N(knockOff) = { EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_MAGIKOOPA) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable))) EVT_CALL(N(UnkBattleFunc1), -10, 20, 10, 32) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(GetIndexFromPos, ACTOR_SELF, LVar0) EVT_MOD(LVar0, 4) @@ -488,9 +488,9 @@ EvtScript N(removeClone) = { EVT_CALL(SetActorVar, ACTOR_SELF, N(VAR_CLONE_ID), -1) EVT_CALL(GetActorFlags, ACTOR_SELF, LVarA) EVT_IF_FLAG(LVarA, ACTOR_FLAG_FLYING) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_ELSE - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, FALSE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, FALSE) EVT_END_IF EVT_CALL(GetActorPos, LVar0, LVar1, LVar2, LVar3) EVT_CALL(RemoveActor, LVar0) @@ -1476,9 +1476,9 @@ EvtScript N(makeClone) = { EVT_CALL(ForceHomePos, LVar9, LVar0, LVar1, LVar2) EVT_CALL(HPBarToHome, LVar9) EVT_IF_EQ(LocalFlag(0), 0) - EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_400000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) EVT_ELSE - EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_400000, TRUE) + EVT_CALL(SetPartEventBits, ACTOR_SELF, 2, ACTOR_EVENT_FLAG_ATTACK_CHARGED, TRUE) EVT_END_IF EVT_IF_EQ(LocalFlag(0), 0) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_Magikoopa_Anim01) diff --git a/src/battle/common/actor/monty_mole.inc.c b/src/battle/common/actor/monty_mole.inc.c index 2caf72a23e..733fbdf438 100644 --- a/src/battle/common/actor/monty_mole.inc.c +++ b/src/battle/common/actor/monty_mole.inc.c @@ -156,7 +156,7 @@ EvtScript N(init_hole) = { }; ActorBlueprint N(hole) = { - .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK | ACTOR_FLAG_NO_DMG_APPLY, + .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK | ACTOR_FLAG_NO_DMG_APPLY, .type = ACTOR_TYPE_MONTY_HOLE, .level = 9, .maxHP = 5, diff --git a/src/battle/common/actor/paragoomba.inc.c b/src/battle/common/actor/paragoomba.inc.c index 5cb9be0652..7bf35e5a48 100644 --- a/src/battle/common/actor/paragoomba.inc.c +++ b/src/battle/common/actor/paragoomba.inc.c @@ -541,7 +541,7 @@ EvtScript N(8021C574) = { EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_8021B128))) EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_GOOMBA) EVT_EXEC_WAIT(N(8021CB94)) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(HPBarToHome, ACTOR_SELF) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_RETURN diff --git a/src/battle/common/actor/paratroopa.inc.c b/src/battle/common/actor/paratroopa.inc.c index 88132ddb4e..11028e035f 100644 --- a/src/battle/common/actor/paratroopa.inc.c +++ b/src/battle/common/actor/paratroopa.inc.c @@ -629,7 +629,7 @@ EvtScript N(802204DC) = { EVT_CALL(BindNextTurn, ACTOR_SELF, 0) EVT_EXEC_WAIT(N(80220B84)) EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_KOOPA_TROOPA) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(HPBarToHome, ACTOR_SELF) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_IF_NE(LVarA, 0) @@ -843,7 +843,7 @@ EvtScript N(handleEvent_80221228) = { EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_80220B38))) EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -5, 15) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, 0, 0) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_KoopaTroopa_Hurt) EVT_CALL(GetStatusFlags, ACTOR_SELF, LVarA) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0) @@ -1042,7 +1042,7 @@ EvtScript N(takeTurn_80221DAC) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_8021EAD0))) EVT_CALL(SetTargetOffset, ACTOR_SELF, 1, -4, 32) EVT_CALL(SetProjectileTargetOffset, ACTOR_SELF, 1, -1, -4) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_CALL(ResetActorSounds, ACTOR_SELF, ACTOR_SOUND_JUMP) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) diff --git a/src/battle/common/actor/red_magikoopa.inc.c b/src/battle/common/actor/red_magikoopa.inc.c index 70f51affd9..d86b32ef72 100644 --- a/src/battle/common/actor/red_magikoopa.inc.c +++ b/src/battle/common/actor/red_magikoopa.inc.c @@ -99,7 +99,7 @@ ActorPartBlueprint N(parts_flying)[] = { .opacity = 255, .idleAnimations = N(idleAnimations1), .defenseTable = N(defenseTable_flying), - .eventFlags = ACTOR_EVENT_FLAG_800000, + .eventFlags = ACTOR_EVENT_FLAG_RIDING_BROOMSTICK, .elementImmunityFlags = 0, .projectileTargetOffset = { -5, -12 }, }, @@ -395,7 +395,7 @@ EvtScript N(knockOff) = { EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_RED_MAGIKOOPA) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable))) EVT_CALL(N(UnkBattleFunc1), -10, 20, 10, 32) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(GetIndexFromPos, ACTOR_SELF, LVar0) EVT_MOD(LVar0, 4) diff --git a/src/battle/common/actor/slot_machine.inc.c b/src/battle/common/actor/slot_machine.inc.c index e37a4081ae..a7489d0357 100644 --- a/src/battle/common/actor/slot_machine.inc.c +++ b/src/battle/common/actor/slot_machine.inc.c @@ -59,7 +59,7 @@ ActorPartBlueprint N(parts)[] = { }; ActorBlueprint N(slot_machine_stop) = { - .flags = ACTOR_FLAG_DISABLED | ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_TARGET_ONLY | ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK, + .flags = ACTOR_FLAG_DISABLED | ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_TARGET_ONLY | ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK, .type = ACTOR_TYPE_SLOT_MACHINE_STOP, .level = 99, .maxHP = 99, @@ -82,7 +82,7 @@ ActorBlueprint N(slot_machine_stop) = { }; ActorBlueprint N(slot_machine_start) = { - .flags = ACTOR_FLAG_DISABLED | ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_TARGET_ONLY | ACTOR_FLAG_40000 | ACTOR_FLAG_NO_ATTACK, + .flags = ACTOR_FLAG_DISABLED | ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_TARGET_ONLY | ACTOR_FLAG_HIDE_HP_BAR | ACTOR_FLAG_NO_ATTACK, .type = ACTOR_TYPE_SLOT_MACHINE_START, .level = 99, .maxHP = 99, diff --git a/src/battle/common/actor/spike_top.inc.c b/src/battle/common/actor/spike_top.inc.c index 1de2587cb6..88b60215e7 100644 --- a/src/battle/common/actor/spike_top.inc.c +++ b/src/battle/common/actor/spike_top.inc.c @@ -172,7 +172,7 @@ EvtScript N(spikeTop_FallDown) = { EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_HP_OFFSET_BELOW, FALSE) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, FALSE) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_FLIPABLE, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_SpikeTop_Anim15) EVT_CALL(SetActorYaw, ACTOR_SELF, 180) EVT_CALL(GetActorPos, ACTOR_SELF, LVar0, LVar1, LVar2) @@ -376,7 +376,7 @@ EvtScript N(spikeTop_HandleEvent_Floor) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_8021C8CC))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8021CA68))) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_CALL(SetAnimation, ACTOR_SELF, 1, ANIM_SpikeTop_Anim13) EVT_CALL(SetActorRotationOffset, ACTOR_SELF, 0, 12, 0) EVT_THREAD @@ -714,7 +714,7 @@ EvtScript N(spikeTop_TakeTurn_Floor) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_8021C9D0))) EVT_CALL(BindIdle, ACTOR_SELF, EVT_PTR(N(idle))) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_SPIKY_TOP, TRUE) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) diff --git a/src/battle/common/actor/spiny.inc.c b/src/battle/common/actor/spiny.inc.c index babff68496..e8eb2c62b9 100644 --- a/src/battle/common/actor/spiny.inc.c +++ b/src/battle/common/actor/spiny.inc.c @@ -245,7 +245,7 @@ EvtScript N(handleEvent) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable_flipped))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations_flipped))) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_200000, FALSE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, TRUE) EVT_USE_BUF(N(bounceArray)) EVT_LOOP(19) EVT_BUF_READ1(LVar0) @@ -385,7 +385,7 @@ EvtScript N(takeTurn) = { EVT_CALL(SetDefenseTable, ACTOR_SELF, 1, EVT_PTR(N(defenseTable))) EVT_CALL(SetIdleAnimations, ACTOR_SELF, 1, EVT_PTR(N(idleAnimations))) EVT_CALL(SetPartEventBits, ACTOR_SELF, 1, ACTOR_EVENT_FLAG_200000, TRUE) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_400, FALSE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_FLIPPED, FALSE) EVT_END_IF EVT_CALL(EnableIdleScript, ACTOR_SELF, 1) EVT_CALL(UseIdleAnimation, ACTOR_SELF, TRUE) diff --git a/src/battle/common/actor/whacka.inc.c b/src/battle/common/actor/whacka.inc.c index 75b78494f2..3d7e5a4ce5 100644 --- a/src/battle/common/actor/whacka.inc.c +++ b/src/battle/common/actor/whacka.inc.c @@ -69,7 +69,7 @@ ActorPartBlueprint N(parts)[] = { }; ActorBlueprint NAMESPACE = { - .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_40000, + .flags = ACTOR_FLAG_NO_SHADOW | ACTOR_FLAG_HIDE_HP_BAR, .type = ACTOR_TYPE_WHACKA, .level = 0, .maxHP = 99, diff --git a/src/battle/common/actor/white_magikoopa.inc.c b/src/battle/common/actor/white_magikoopa.inc.c index 9f779f513b..eecdaa8aa4 100644 --- a/src/battle/common/actor/white_magikoopa.inc.c +++ b/src/battle/common/actor/white_magikoopa.inc.c @@ -108,7 +108,7 @@ ActorPartBlueprint N(partsTable_80223CB4)[] = { .opacity = 255, .idleAnimations = N(idleAnimations_80223DBC), .defenseTable = N(defenseTable_80223B2C), - .eventFlags = ACTOR_EVENT_FLAG_800000, + .eventFlags = ACTOR_EVENT_FLAG_RIDING_BROOMSTICK, .elementImmunityFlags = 0, .projectileTargetOffset = { 0, -8 }, }, @@ -400,7 +400,7 @@ EvtScript N(knockOff) = { EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_WHITE_MAGIKOOPA) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable_80223B38))) EVT_CALL(N(UnkBattleFunc1), -10, 20, 10, 32) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(GetIndexFromPos, ACTOR_SELF, LVar0) EVT_MOD(LVar0, 4) diff --git a/src/battle/common/actor/yellow_magikoopa.inc.c b/src/battle/common/actor/yellow_magikoopa.inc.c index 3edefb85d8..88059bf361 100644 --- a/src/battle/common/actor/yellow_magikoopa.inc.c +++ b/src/battle/common/actor/yellow_magikoopa.inc.c @@ -110,7 +110,7 @@ ActorPartBlueprint N(parts_flying)[] = { .opacity = 255, .idleAnimations = N(idleAnimations_flying), .defenseTable = N(defenseTable_flying), - .eventFlags = ACTOR_EVENT_FLAG_800000, + .eventFlags = ACTOR_EVENT_FLAG_RIDING_BROOMSTICK, .elementImmunityFlags = 0, .projectileTargetOffset = { 0, -8 }, }, @@ -394,7 +394,7 @@ EvtScript N(knockOff) = { EVT_CALL(SetActorType, ACTOR_SELF, ACTOR_TYPE_YELLOW_MAGIKOOPA) EVT_CALL(SetStatusTable, ACTOR_SELF, EVT_PTR(N(statusTable))) EVT_CALL(N(UnkBattleFunc1), -10, 20, 10, 32) - EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_1000, TRUE) + EVT_CALL(SetActorFlagBits, ACTOR_SELF, ACTOR_FLAG_TYPE_CHANGED, TRUE) EVT_CALL(ResetAllActorSounds, ACTOR_SELF) EVT_CALL(GetIndexFromPos, ACTOR_SELF, LVar0) EVT_MOD(LVar0, 4) diff --git a/src/battle/common/move/StarBeamSupport.inc.c b/src/battle/common/move/StarBeamSupport.inc.c index d7903488fe..567926d8ce 100644 --- a/src/battle/common/move/StarBeamSupport.inc.c +++ b/src/battle/common/move/StarBeamSupport.inc.c @@ -585,7 +585,7 @@ API_CALLABLE(N(ProcessPeachStarBeam)) { if (script->functionTemp[1] == 0) { N(starBeamStage) = 1; if (script->functionTemp[2] == 0 && player->targetListLength == 1) { - if (get_actor_part(get_actor(player->targetActorID), player->targetPartIndex)->eventFlags & ACTOR_EVENT_FLAG_80000) { + if (get_actor_part(get_actor(player->targetActorID), player->targetPartIndex)->eventFlags & ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED) { script->functionTemp[0] = PEACH_STAR_BEAM_IMMUNE; } else { script->functionTemp[1] = 15; diff --git a/src/battle/move/star_power/chill_out.c b/src/battle/move/star_power/chill_out.c index 9ab5abf3a2..68274326fe 100644 --- a/src/battle/move/star_power/chill_out.c +++ b/src/battle/move/star_power/chill_out.c @@ -38,7 +38,7 @@ API_CALLABLE(func_802A163C_79070C) { Actor* target = get_actor(actor->targetActorID); ActorPart* part = get_actor_part(target, actor->targetPartIndex); s32 flag1 = ACTOR_FLAG_NO_DMG_APPLY; // these manual flag ones are necessary to match. once we figure out flags, we can add more - s32 flag2 = ACTOR_EVENT_FLAG_80000; + s32 flag2 = ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED; script->varTable[0] = 0; diff --git a/src/common/UnkBowserFunc1.inc.c b/src/common/UnkBowserFunc1.inc.c index 72aaadde35..fff0a5d892 100644 --- a/src/common/UnkBowserFunc1.inc.c +++ b/src/common/UnkBowserFunc1.inc.c @@ -4,7 +4,7 @@ #ifndef BOWSER_LARGE #define BOWSER_FLAG_TOCHECK ACTOR_EVENT_FLAG_ENCHANTED #else -#define BOWSER_FLAG_TOCHECK ACTOR_EVENT_FLAG_80000 +#define BOWSER_FLAG_TOCHECK ACTOR_EVENT_FLAG_STAR_ROD_ENCHANTED #endif API_CALLABLE(N(UnkBowserFunc1)) {