mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-27 13:53:52 +01:00
expand move target field
This commit is contained in:
parent
df2223a5bc
commit
5509ceea04
@ -491,7 +491,7 @@ struct BattleStruct
|
|||||||
u8 turnEffectsBattlerId;
|
u8 turnEffectsBattlerId;
|
||||||
u8 turnCountersTracker;
|
u8 turnCountersTracker;
|
||||||
u16 wrappedMove[MAX_BATTLERS_COUNT];
|
u16 wrappedMove[MAX_BATTLERS_COUNT];
|
||||||
u8 moveTarget[MAX_BATTLERS_COUNT];
|
u16 moveTarget[MAX_BATTLERS_COUNT];
|
||||||
u8 expGetterMonId;
|
u8 expGetterMonId;
|
||||||
u8 wildVictorySong;
|
u8 wildVictorySong;
|
||||||
u8 dynamicMoveType;
|
u8 dynamicMoveType;
|
||||||
|
@ -109,7 +109,7 @@ u8 ItemBattleEffects(u8 caseID, u8 battlerId, bool8 moveTurn);
|
|||||||
void ClearFuryCutterDestinyBondGrudge(u8 battlerId);
|
void ClearFuryCutterDestinyBondGrudge(u8 battlerId);
|
||||||
void HandleAction_RunBattleScript(void);
|
void HandleAction_RunBattleScript(void);
|
||||||
u32 SetRandomTarget(u32 battlerId);
|
u32 SetRandomTarget(u32 battlerId);
|
||||||
u8 GetMoveTarget(u16 move, u8 setTarget);
|
u32 GetMoveTarget(u16 move, u8 setTarget);
|
||||||
u8 IsMonDisobedient(void);
|
u8 IsMonDisobedient(void);
|
||||||
u32 GetBattlerHoldEffect(u8 battlerId, bool32 checkNegating);
|
u32 GetBattlerHoldEffect(u8 battlerId, bool32 checkNegating);
|
||||||
u32 GetBattlerHoldEffectParam(u8 battlerId);
|
u32 GetBattlerHoldEffectParam(u8 battlerId);
|
||||||
|
@ -386,7 +386,6 @@
|
|||||||
#define MOVE_TARGET_FOES_AND_ALLY 0x20
|
#define MOVE_TARGET_FOES_AND_ALLY 0x20
|
||||||
#define MOVE_TARGET_OPPONENTS_FIELD 0x40
|
#define MOVE_TARGET_OPPONENTS_FIELD 0x40
|
||||||
#define MOVE_TARGET_ALLY 0x80
|
#define MOVE_TARGET_ALLY 0x80
|
||||||
|
#define MOVE_TARGET_ALL_BATTLERS 0x100
|
||||||
#define MOVE_TARGET_ALL_BATTLERS (MOVE_TARGET_BOTH | MOVE_TARGET_OPPONENTS_FIELD)
|
|
||||||
|
|
||||||
#endif // GUARD_CONSTANTS_BATTLE_H
|
#endif // GUARD_CONSTANTS_BATTLE_H
|
||||||
|
@ -590,7 +590,7 @@ static void TryShowAsTarget(u32 battlerId)
|
|||||||
|
|
||||||
static void HandleInputChooseMove(void)
|
static void HandleInputChooseMove(void)
|
||||||
{
|
{
|
||||||
u8 moveTarget;
|
u16 moveTarget;
|
||||||
u32 canSelectTarget = 0;
|
u32 canSelectTarget = 0;
|
||||||
struct ChooseMoveStruct *moveInfo = (struct ChooseMoveStruct*)(&gBattleResources->bufferA[gActiveBattler][4]);
|
struct ChooseMoveStruct *moveInfo = (struct ChooseMoveStruct*)(&gBattleResources->bufferA[gActiveBattler][4]);
|
||||||
|
|
||||||
@ -644,7 +644,7 @@ static void HandleInputChooseMove(void)
|
|||||||
// Show all available targets for multi-target moves
|
// Show all available targets for multi-target moves
|
||||||
if (B_SHOW_TARGETS)
|
if (B_SHOW_TARGETS)
|
||||||
{
|
{
|
||||||
if ((moveTarget & MOVE_TARGET_ALL_BATTLERS) == MOVE_TARGET_ALL_BATTLERS)
|
if (moveTarget & MOVE_TARGET_ALL_BATTLERS)
|
||||||
{
|
{
|
||||||
u32 i = 0;
|
u32 i = 0;
|
||||||
for (i = 0; i < gBattlersCount; i++)
|
for (i = 0; i < gBattlersCount; i++)
|
||||||
|
@ -7018,7 +7018,7 @@ u32 SetRandomTarget(u32 battlerId)
|
|||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 GetMoveTarget(u16 move, u8 setTarget)
|
u32 GetMoveTarget(u16 move, u8 setTarget)
|
||||||
{
|
{
|
||||||
u8 targetBattler = 0;
|
u8 targetBattler = 0;
|
||||||
u32 i, moveTarget, side;
|
u32 i, moveTarget, side;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user