Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/dungeon_action_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ void HandleTalkFieldAction(Entity *entity);
void sub_806752C(ActionContainer *a0);
void sub_8067768(ActionContainer *a0);
void HandleUseMovePlayerAction(Entity *entity);
void sub_8067904(Entity *entity, u16 moveId);
void UseTemporaryMove(Entity *entity, u16 moveId);

#endif // GUARD_DUNGEON_ACTION_HANDLER_H
2 changes: 1 addition & 1 deletion include/dungeon_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ extern const s16 gShadowTagActivateChance;
extern const s16 gMagnetPullActivateChance;
extern const s16 gStaticActivateChance;
extern const s16 gPoisonPointActivateChance;
extern const s16 gEffectSproreActivateChance;
extern const s16 gEffectSporeActivateChance;
extern const s16 gFlameBodyActivateChance;
extern const s16 gCuteCharmActivateChance;
extern const s16 gStenchActivateChance;
Expand Down
2 changes: 1 addition & 1 deletion include/dungeon_move_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "structs/str_moves.h"
#include "structs/dungeon_entity.h"

bool32 sub_8055A00(Entity *attacker, s32 firstMoveId, s32 var_34, s32 itemId, s32 arg_0);
bool32 TryUseMoveInMoveset(Entity *attacker, s32 firstMoveId, s32 var_34, s32 itemId, s32 arg_0);
void TriggerTargetAbilityEffect(Entity *attacker);
bool8 TryUseChosenMove(struct Entity *attacker, u32 r6, s32 itemId, u32 var_30, bool32 isLinkedMove, struct Move *move);
bool8 sub_8056468(Entity *entity, Move *move, const u8 *str, Entity **unkArray, bool32 itemId, bool8 arg_4, bool32 unused);
Expand Down
4 changes: 2 additions & 2 deletions src/dungeon_action_execution.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ bool8 ExecuteEntityDungeonAction_Async(Entity *entity)
HandleUseMovePlayerAction(entity);
break;
case ACTION_STRUGGLE:
sub_8067904(entity, MOVE_STRUGGLE);
UseTemporaryMove(entity, MOVE_STRUGGLE);
break;
case ACTION_REGULAR_ATTACK:
sub_8067904(entity, MOVE_REGULAR_ATTACK);
UseTemporaryMove(entity, MOVE_REGULAR_ATTACK);
break;
case ACTION_STEPPED_ON_TRAP:
TryTriggerTrap(entity,&entity->pos,0,0);
Expand Down
4 changes: 2 additions & 2 deletions src/dungeon_action_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ void HandleUseMovePlayerAction(Entity *entity)
while (i < sub_8070828(entity, TRUE)) {
EntityInfo *info = GetEntInfo(entity);

sub_8055A00(entity, info->action.actionParameters[1].actionUseIndex, 1, 0, 0);
TryUseMoveInMoveset(entity, info->action.actionParameters[1].actionUseIndex, 1, 0, 0);
if (IsFloorOver()) {
break;
}
Expand All @@ -764,7 +764,7 @@ void HandleUseMovePlayerAction(Entity *entity)
}
}

void sub_8067904(Entity *entity, u16 moveId)
void UseTemporaryMove(Entity *entity, u16 moveId)
{
Move move;
EntityInfo *info = GetEntInfo(entity);
Expand Down
2 changes: 1 addition & 1 deletion src/dungeon_ai_attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ void HandleUseMoveAIAction(Entity *target)
if (counter >= sub_8070828(target, TRUE))
break;
entityInfo = GetEntInfo(target);
sub_8055A00(target, entityInfo->action.actionParameters[0].actionUseIndex, 1, 0, 0);
TryUseMoveInMoveset(target, entityInfo->action.actionParameters[0].actionUseIndex, 1, 0, 0);
if (!EntityIsValid(target))
break;
if (IsFloorOver())
Expand Down
2 changes: 1 addition & 1 deletion src/dungeon_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const s16 gShadowTagActivateChance = 12;
const s16 gMagnetPullActivateChance = 12;
const s16 gStaticActivateChance = 12;
const s16 gPoisonPointActivateChance = 12;
const s16 gEffectSproreActivateChance = 12;
const s16 gEffectSporeActivateChance = 12;
const s16 gFlameBodyActivateChance = 12;
const s16 gCuteCharmActivateChance = 12;
const s16 gStenchActivateChance = 12;
Expand Down
2 changes: 1 addition & 1 deletion src/dungeon_damage.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void HandleDealingDamage_Async(Entity *attacker, Entity *target, struct DamageSt
}
if (AbilityIsActive(target, ABILITY_EFFECT_SPORE)
&& isPhysical
&& DungeonRandInt(100) < gEffectSproreActivateChance)
&& DungeonRandInt(100) < gEffectSporeActivateChance)
{
s32 rnd = DungeonRandInt(3);
if (rnd < 1)
Expand Down
2 changes: 1 addition & 1 deletion src/dungeon_mon_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ static void InitEntityFromSpawnInfo(bool8 a0, Entity *entity, struct MonSpawnInf
entInfo->mobileTurnTimer = 0;
entInfo->attacking = FALSE;
entInfo->unk149 = FALSE;
entInfo->abilityEffectFlags = FALSE;
entInfo->abilityEffectFlags = 0;
entInfo->terrifiedTurns = 0;
entInfo->useHeldItem = 0;
entInfo->unk14B = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/dungeon_move_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static EWRAM_INIT Entity *gUnknown_203B438 = NULL;

static u8 ToItemID(u32 itemID);

bool32 sub_8055A00(Entity *attacker, s32 firstMoveId, s32 var_34, s32 itemId, s32 arg_0)
bool32 TryUseMoveInMoveset(Entity *attacker, s32 firstMoveId, s32 var_34, s32 itemId, s32 arg_0)
{
s32 i, j;
s32 moveId;
Expand Down