summaryrefslogtreecommitdiff
path: root/src/dungeon_action.c
diff options
context:
space:
mode:
authorCheng Hann Gan <chenghanngan.us@gmail.com>2021-12-09 13:56:12 -0500
committerGitHub <noreply@github.com>2021-12-09 10:56:12 -0800
commita34c9ab91b553fcb1f72b94eb912b94bea58885b (patch)
treea31d0805938a56d1552f952db6ec6ab2defdebe5 /src/dungeon_action.c
parent4fc272fea6bc7332fae031ebeb12362cff1c35de (diff)
AI decomp + type cleanup (#82)
* Decomped SetAction() * Changed MapTile.tileType to u16 bit field * Decomped FindStraightThrowableTargets() * Cleaned up CannotAttack() * Cleaned up some externs * Converted dungeon action to substruct
Diffstat (limited to 'src/dungeon_action.c')
-rw-r--r--src/dungeon_action.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dungeon_action.c b/src/dungeon_action.c
new file mode 100644
index 0000000..6d8fcb3
--- /dev/null
+++ b/src/dungeon_action.c
@@ -0,0 +1,10 @@
+#include "global.h"
+#include "dungeon_action.h"
+#include "dungeon_entity.h"
+
+void SetAction(struct DungeonActionContainer *actionPointer, u16 action)
+{
+ actionPointer->action = action;
+ actionPointer->actionUseIndex = 0;
+ actionPointer->unkC = 0;
+}