mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 12:14:20 +01:00
26 lines
916 B
C
26 lines
916 B
C
#ifndef GUARD_ITEM_CONSTANTS_H
|
|
#define GUARD_ITEM_CONSTANTS_H
|
|
|
|
// These constants are used in gItems
|
|
#define POCKET_NONE 0
|
|
#define POCKET_ITEMS 1
|
|
#define POCKET_POKE_BALLS 2
|
|
#define POCKET_TM_HM 3
|
|
#define POCKET_BERRIES 4
|
|
#define POCKET_KEY_ITEMS 5
|
|
|
|
#define ITEMS_POCKET 0
|
|
#define BALLS_POCKET 1
|
|
#define TMHM_POCKET 2
|
|
#define BERRIES_POCKET 3
|
|
#define KEYITEMS_POCKET 4
|
|
#define POCKETS_COUNT 5
|
|
|
|
#define REPEL_LURE_MASK (1 << 15)
|
|
#define IS_LAST_USED_LURE(var) (var & REPEL_LURE_MASK)
|
|
#define REPEL_LURE_STEPS(var) (var & (REPEL_LURE_MASK - 1))
|
|
#define LURE_STEP_COUNT (IS_LAST_USED_LURE(VarGet(VAR_REPEL_STEP_COUNT)) ? REPEL_LURE_STEPS(VarGet(VAR_REPEL_STEP_COUNT)) : 0)
|
|
#define REPEL_STEP_COUNT (!IS_LAST_USED_LURE(VarGet(VAR_REPEL_STEP_COUNT)) ? REPEL_LURE_STEPS(VarGet(VAR_REPEL_STEP_COUNT)) : 0)
|
|
|
|
#endif // GUARD_ITEM_CONSTANTS_H
|