mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-10 10:05:52 -05:00
Decomped GetMoveTargetingFlagsForPokemon()
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
10
include/targeting_flags.h
Normal file
10
include/targeting_flags.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user