mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-19 01:44:20 +01:00
Merge pull request #1277 from LOuroboros/x_items_IE
Reworked the effects of the X Items #2
This commit is contained in:
commit
5250aaf265
@ -325,42 +325,64 @@ const u8 gItemEffect_DireHit[8] = {
|
||||
};
|
||||
|
||||
const u8 gItemEffect_XAttack[8] = {
|
||||
#ifdef BATTLE_ENGINE
|
||||
[1] = ITEM1_X_ATTACK,
|
||||
#else
|
||||
[0] = 1,
|
||||
#endif
|
||||
[5] = ITEM5_FRIENDSHIP_LOW | ITEM5_FRIENDSHIP_MID,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
};
|
||||
|
||||
const u8 gItemEffect_XDefend[8] = {
|
||||
const u8 gItemEffect_XDefense[8] = {
|
||||
#ifdef BATTLE_ENGINE
|
||||
[1] = ITEM1_X_DEFENSE,
|
||||
#else
|
||||
[1] = 1 << 4,
|
||||
#endif
|
||||
[5] = ITEM5_FRIENDSHIP_LOW | ITEM5_FRIENDSHIP_MID,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
};
|
||||
|
||||
const u8 gItemEffect_XSpeed[8] = {
|
||||
#ifdef BATTLE_ENGINE
|
||||
[1] = ITEM1_X_SPEED,
|
||||
#else
|
||||
[1] = 1,
|
||||
#endif
|
||||
[5] = ITEM5_FRIENDSHIP_LOW | ITEM5_FRIENDSHIP_MID,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
};
|
||||
|
||||
const u8 gItemEffect_XAccuracy[8] = {
|
||||
#ifdef BATTLE_ENGINE
|
||||
[1] = ITEM1_X_ACCURACY,
|
||||
#else
|
||||
[2] = 1 << 4,
|
||||
#endif
|
||||
[5] = ITEM5_FRIENDSHIP_LOW | ITEM5_FRIENDSHIP_MID,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
};
|
||||
|
||||
const u8 gItemEffect_XSpecialAttack[8] = {
|
||||
#ifdef BATTLE_ENGINE
|
||||
[1] = ITEM1_X_SPATK,
|
||||
#else
|
||||
[2] = 1,
|
||||
#endif
|
||||
[5] = ITEM5_FRIENDSHIP_LOW | ITEM5_FRIENDSHIP_MID,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
};
|
||||
|
||||
const u8 gItemEffect_XSpecialDefense[8] = {
|
||||
[2] = 1,
|
||||
#ifdef BATTLE_ENGINE
|
||||
[1] = ITEM1_X_SPDEF,
|
||||
#endif
|
||||
[5] = ITEM5_FRIENDSHIP_LOW | ITEM5_FRIENDSHIP_MID,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
@ -517,7 +539,7 @@ const u8 *const gItemEffectTable[] =
|
||||
[ITEM_GUARD_SPEC - ITEM_POTION] = gItemEffect_GuardSpec,
|
||||
[ITEM_DIRE_HIT - ITEM_POTION] = gItemEffect_DireHit,
|
||||
[ITEM_X_ATTACK - ITEM_POTION] = gItemEffect_XAttack,
|
||||
[ITEM_X_DEFENSE - ITEM_POTION] = gItemEffect_XDefend,
|
||||
[ITEM_X_DEFENSE - ITEM_POTION] = gItemEffect_XDefense,
|
||||
[ITEM_X_SPEED - ITEM_POTION] = gItemEffect_XSpeed,
|
||||
[ITEM_X_ACCURACY - ITEM_POTION] = gItemEffect_XAccuracy,
|
||||
[ITEM_X_SP_ATK - ITEM_POTION] = gItemEffect_XSpecialAttack,
|
||||
|
Loading…
x
Reference in New Issue
Block a user