Add power item config (#3961)

This commit is contained in:
Bassoonian 2024-01-11 09:34:19 +01:00 committed by GitHub
parent 5b5b9e7e50
commit ce48616477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 6 deletions

View File

@ -16,6 +16,7 @@
#define I_SELL_VALUE_FRACTION GEN_LATEST // In Gen9+, items sell for 1/4 of their value instead of 1/2.
#define I_PRICE GEN_LATEST // Some items have varied in value across generations.
#define I_BERRY_PRICE GEN_7 // Since Berries have become unplantable (Gen8+), their price has gone up.
#define I_POWER_ITEM_BOOST GEN_LATEST // In Gen7+, Power Items grant 8 EVs instead of 4 EVs.
// TM config
#define I_REUSABLE_TMS FALSE // In Gen5-8, TMs are reusable. Setting this to TRUE will make all vanilla TMs reusable, though they can also be cherry-picked by setting their importance to 1.

View File

@ -20,6 +20,12 @@
#define TYPE_BOOST_PARAM 10
#endif
#if I_POWER_ITEM_BOOST >= GEN_7
#define POWER_ITEM_BOOST 8
#else
#define POWER_ITEM_BOOST 4
#endif
#define X_ITEM_STAGES (B_X_ITEMS_BUFF >= GEN_7) ? 2 : 1
#define TREASURE_FACTOR (I_SELL_VALUE_FRACTION >= GEN_9) ? 2: 1
@ -6067,7 +6073,7 @@ const struct Item gItems[] =
.name = _("Power Weight"),
.price = (I_PRICE >= GEN_9) ? 10000 : 3000,
.holdEffect = HOLD_EFFECT_POWER_ITEM,
.holdEffectParam = 8,
.holdEffectParam = POWER_ITEM_BOOST,
.description = COMPOUND_STRING("A hold item that\n"
"promotes HP gain,\n"
"but reduces Speed."),
@ -6083,7 +6089,7 @@ const struct Item gItems[] =
.name = _("Power Bracer"),
.price = (I_PRICE >= GEN_9) ? 10000 : 3000,
.holdEffect = HOLD_EFFECT_POWER_ITEM,
.holdEffectParam = 8,
.holdEffectParam = POWER_ITEM_BOOST,
.description = COMPOUND_STRING("A hold item that\n"
"promotes Atk gain,\n"
"but reduces Speed."),
@ -6099,7 +6105,7 @@ const struct Item gItems[] =
.name = _("Power Belt"),
.price = (I_PRICE >= GEN_9) ? 10000 : 3000,
.holdEffect = HOLD_EFFECT_POWER_ITEM,
.holdEffectParam = 8,
.holdEffectParam = POWER_ITEM_BOOST,
.description = COMPOUND_STRING("A hold item that\n"
"promotes Def gain,\n"
"but reduces Speed."),
@ -6115,7 +6121,7 @@ const struct Item gItems[] =
.name = _("Power Lens"),
.price = (I_PRICE >= GEN_9) ? 10000 : 3000,
.holdEffect = HOLD_EFFECT_POWER_ITEM,
.holdEffectParam = 8,
.holdEffectParam = POWER_ITEM_BOOST,
.description = COMPOUND_STRING("Hold item that pro-\n"
"motes Sp. Atk gain,\n"
"but reduces Speed."),
@ -6131,7 +6137,7 @@ const struct Item gItems[] =
.name = _("Power Band"),
.price = (I_PRICE >= GEN_9) ? 10000 : 3000,
.holdEffect = HOLD_EFFECT_POWER_ITEM,
.holdEffectParam = 8,
.holdEffectParam = POWER_ITEM_BOOST,
.description = COMPOUND_STRING("Hold item that pro-\n"
"motes Sp. Def gain,\n"
"but reduces Speed."),
@ -6147,7 +6153,7 @@ const struct Item gItems[] =
.name = _("Power Anklet"),
.price = (I_PRICE >= GEN_9) ? 10000 : 3000,
.holdEffect = HOLD_EFFECT_POWER_ITEM,
.holdEffectParam = 8,
.holdEffectParam = POWER_ITEM_BOOST,
.description = COMPOUND_STRING("A hold item that\n"
"promotes Spd gain,\n"
"but reduces Speed."),