summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2017-12-19 10:01:24 -0600
committerMarcus Huderle <huderlem@gmail.com>2017-12-19 10:01:24 -0600
commit1e40c9572a59aa1a178ba634a5b130bb7b511a04 (patch)
tree675a5bdd010485ff98a32a37a40ef65b570adaa3 /src
parent9d648402ebc070e9f3f0ab245d667e30bf8e54b2 (diff)
Decompile battle_anim fury_cutter_count
Diffstat (limited to 'src')
-rw-r--r--src/battle/anim/fury_cutter_count.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/battle/anim/fury_cutter_count.c b/src/battle/anim/fury_cutter_count.c
new file mode 100644
index 000000000..17b084585
--- /dev/null
+++ b/src/battle/anim/fury_cutter_count.c
@@ -0,0 +1,20 @@
+#include "global.h"
+#include "battle_anim.h"
+
+extern s16 gBattleAnimArgs[8];
+extern u8 *gDisableStructMoveAnim; // TODO: this is declared with a different type in different files
+
+// fury_cutter (updates the direction and count of the fury cutter animation)
+// Used in Fury Cutter.
+
+void UpdateFuryCutterAnimDirection(u8 taskId)
+{
+ gBattleAnimArgs[7] = gDisableStructMoveAnim[16] & 1;
+ DestroyAnimVisualTask(taskId);
+}
+
+void UpdateFuryCutterAnimCount(u8 taskId)
+{
+ gBattleAnimArgs[7] = gDisableStructMoveAnim[16];
+ DestroyAnimVisualTask(taskId);
+}