Add gen9 item prices + configs (#3834)
* Add gen9 item prices + configs * Adjust gen 1 PP item costs --------- Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
This commit is contained in:
parent
3e321d1172
commit
88b0bd6394
4 changed files with 383 additions and 376 deletions
|
@ -14,6 +14,8 @@
|
|||
#define I_USE_EVO_HELD_ITEMS_FROM_BAG FALSE // If TRUE, items such as Razor Claw or Electirizer will be usable from the bag to evolve a Pokémon just like in LA.
|
||||
#define I_TYPE_BOOST_POWER GEN_LATEST // In Gen4+, all regular type boosting held items had their power increased from 10% to 20%. eg. Charcoal
|
||||
#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.
|
||||
|
||||
// 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.
|
||||
|
|
|
@ -62,7 +62,7 @@ u16 CountTotalItemQuantityInBag(u16 itemId);
|
|||
bool8 AddPyramidBagItem(u16 itemId, u16 count);
|
||||
bool8 RemovePyramidBagItem(u16 itemId, u16 count);
|
||||
const u8 *ItemId_GetName(u16 itemId);
|
||||
u16 ItemId_GetPrice(u16 itemId);
|
||||
u32 ItemId_GetPrice(u16 itemId);
|
||||
u32 ItemId_GetHoldEffect(u32 itemId);
|
||||
u32 ItemId_GetHoldEffectParam(u32 itemId);
|
||||
const u8 *ItemId_GetDescription(u16 itemId);
|
||||
|
|
753
src/data/items.h
753
src/data/items.h
File diff suppressed because it is too large
Load diff
|
@ -878,7 +878,7 @@ const u8 *ItemId_GetName(u16 itemId)
|
|||
return gItems[SanitizeItemId(itemId)].name;
|
||||
}
|
||||
|
||||
u16 ItemId_GetPrice(u16 itemId)
|
||||
u32 ItemId_GetPrice(u16 itemId)
|
||||
{
|
||||
return gItems[SanitizeItemId(itemId)].price;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue