summaryrefslogtreecommitdiff
path: root/include/type_chart.h
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 /include/type_chart.h
parentea1aa9c0c5c3a4167912d1078fffdd5e69cbbe98 (diff)
parentcf492fd141b33c21f369dfa7aabebf3c52cb8ec1 (diff)
Merge pull request #98 from AnonymousRandomPerson/master
Finished attack AI decomp
Diffstat (limited to 'include/type_chart.h')
-rw-r--r--include/type_chart.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/type_chart.h b/include/type_chart.h
new file mode 100644
index 0000000..4be0b33
--- /dev/null
+++ b/include/type_chart.h
@@ -0,0 +1,17 @@
+#ifndef GUARD_TYPE_CHART_H
+#define GUARD_TYPE_CHART_H
+
+#include "global.h"
+#include "constants/type.h"
+
+#define NUM_EFFECTIVENESS 4
+
+#define EFFECTIVENESS_IMMUNE 0
+#define EFFECTIVENESS_RESIST 1
+#define EFFECTIVENESS_NEUTRAL 2
+#define EFFECTIVENESS_SUPER 3
+
+// [Attacking type][Defending type]
+extern const s16 gTypeEffectivenessChart[NUM_TYPES][NUM_TYPES];
+
+#endif \ No newline at end of file