summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/constants/move.h8
-rw-r--r--include/moves.h2
-rw-r--r--include/targeting_flags.h10
3 files changed, 17 insertions, 3 deletions
diff --git a/include/constants/move.h b/include/constants/move.h
index 8148ab5..15ae1b9 100644
--- a/include/constants/move.h
+++ b/include/constants/move.h
@@ -52,17 +52,19 @@ enum TargetingFlag
{
TARGETING_FLAG_TARGET_OTHER = 0x0,
TARGETING_FLAG_HEAL_TEAM = 0x1,
- TARGETING_FLAG_SWAP_POSITIONS = 0x2,
+ TARGETING_FLAG_LONG_RANGE = 0x2,
+ TARGETING_FLAG_BOOST_SELF = 0x3,
+ TARGETING_FLAG_MULTI_TURN = 0x4,
TARGETING_FLAG_ATTACK_ALL = 0x5,
TARGETING_FLAG_BOOST_TEAM = 0x6,
- TARGETING_FLAG_DONT_USE = 0xF,
+ TARGETING_FLAG_ITEM = 0xF,
TARGETING_FLAG_TARGET_FRONTAL_CONE = 0x10,
TARGETING_FLAG_TARGET_AROUND = 0x20,
TARGETING_FLAG_TARGET_ROOM = 0x30,
TARGETING_FLAG_TARGET_2_TILES_AHEAD = 0x40,
TARGETING_FLAG_TARGET_LINE = 0x50,
TARGETING_FLAG_TARGET_FLOOR = 0x60,
- TARGETING_FLAG_SELF_HEAL = 0x70,
+ TARGETING_FLAG_TARGET_SELF = 0x70,
TARGETING_FLAG_CUT_CORNERS = 0x80,
TARGETING_FLAG_SET_TRAP = 0x100,
TARGETING_FLAG_HEAL_HP = 0x200,
diff --git a/include/moves.h b/include/moves.h
index c86f986..dca2ac4 100644
--- a/include/moves.h
+++ b/include/moves.h
@@ -5,6 +5,8 @@
// 0x92A88
void InitPokemonMove(struct PokemonMove *move, u16 moveID);
+// 0x92AE0
+s16 GetMoveTargetingFlags(struct PokemonMove *move, u32 isAI);
// 0x92B90
u8 GetMoveWeight(struct PokemonMove *move);
// 0x92BF4
diff --git a/include/targeting_flags.h b/include/targeting_flags.h
new file mode 100644
index 0000000..54e7063
--- /dev/null
+++ b/include/targeting_flags.h
@@ -0,0 +1,10 @@
+#ifndef GUARD_TARGETING_FLAGS_H
+#define GUARD_TARGETING_FLAGS_H
+
+#include "constants/move.h"
+#include "dungeon_entity.h"
+
+// 0x7CD64
+s16 GetMoveTargetingFlagsForPokemon(struct DungeonEntity *pokemon, struct PokemonMove *move, u32 isAI);
+
+#endif