summaryrefslogtreecommitdiff
path: root/include/constants
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-02-28 20:57:06 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-03-10 22:32:17 -0500
commit91c0a142ccf4783c65aecdd75a4faed33edf3ed6 (patch)
treeb0bfeddb426b59d995d6ac75f0e7aa046723843f /include/constants
parent17a6ab37944e3cc9fc98ee93262bd4385bf4e626 (diff)
Decomped HasLastUsedMove()
Diffstat (limited to 'include/constants')
-rw-r--r--include/constants/move.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/constants/move.h b/include/constants/move.h
index 0601969..eb78219 100644
--- a/include/constants/move.h
+++ b/include/constants/move.h
@@ -1,6 +1,8 @@
#ifndef GUARD_CONSTANTS_MOVE_H
#define GUARD_CONSTANTS_MOVE_H
+#define STRUGGLE_MOVE_INDEX 4
+
enum MoveFlags
{
MOVE_FLAG_EXISTS = 1 << 0,
@@ -11,6 +13,13 @@ enum MoveFlags
MOVE_FLAG_DISABLED = 1 << 5 // Disabled by an effect like Taunt.
};
+enum MoveFlags2
+{
+ MOVE_FLAG_SEALED = 1 << 0,
+ MOVE_FLAG_TEMPORARY = 1 << 3, // Used for moves copied by Mimic.
+ MOVE_FLAG_REPLACE = 1 << 5 // Used for moves copied by Sketch.
+};
+
enum AccuracyType
{
// Accuracy used for all moves.
@@ -52,7 +61,7 @@ struct MoveData
struct PokemonMove
{
u8 moveFlags;
- bool8 sealed;
+ u8 moveFlags2;
u16 moveID;
u8 PP;
u8 powerBoost; // How much the move is boosted by Ginsengs.