summaryrefslogtreecommitdiff
path: root/src/dungeon_action.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2022-03-11 10:10:49 -0800
committerGitHub <noreply@github.com>2022-03-11 10:10:49 -0800
commit30fea2d6f303e0e57b62032f56da86c8223ef1f7 (patch)
tree9636ef46bb5f555874dc8ba16c82dc79bc563a12 /src/dungeon_action.c
parentea1aa9c0c5c3a4167912d1078fffdd5e69cbbe98 (diff)
parentcf492fd141b33c21f369dfa7aabebf3c52cb8ec1 (diff)
Merge pull request #98 from AnonymousRandomPerson/master
Finished attack AI decomp
Diffstat (limited to 'src/dungeon_action.c')
-rw-r--r--src/dungeon_action.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dungeon_action.c b/src/dungeon_action.c
index 9034e4c..912e8b4 100644
--- a/src/dungeon_action.c
+++ b/src/dungeon_action.c
@@ -5,6 +5,13 @@
#include "dungeon_entity.h"
#include "pokemon.h"
+void ResetAction(struct DungeonActionContainer *actionPointer)
+{
+ actionPointer->action = DUNGEON_ACTION_NONE;
+ actionPointer->actionUseIndex = 0;
+ actionPointer->unkC = 0;
+}
+
void SetAction(struct DungeonActionContainer *actionPointer, u16 action)
{
actionPointer->action = action;