From a34c9ab91b553fcb1f72b94eb912b94bea58885b Mon Sep 17 00:00:00 2001 From: Cheng Hann Gan Date: Thu, 9 Dec 2021 13:56:12 -0500 Subject: 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 --- src/dungeon_action.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/dungeon_action.c (limited to 'src/dungeon_action.c') 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; +} -- cgit v1.2.3