Skip to content

Commit

Permalink
Add gen9 item prices + configs (#3834)
Browse files Browse the repository at this point in the history
* Add gen9 item prices + configs

* Adjust gen 1 PP item costs

---------

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
  • Loading branch information
Bassoonian and AlexOn1ine authored Dec 27, 2023
1 parent 3e321d1 commit 88b0bd6
Show file tree
Hide file tree
Showing 4 changed files with 383 additions and 376 deletions.
2 changes: 2 additions & 0 deletions include/config/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion include/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 88b0bd6

Please sign in to comment.