Skip to content

Commit

Permalink
Slight Item Adjustment - Less Berries and X Items Only By 5% Total
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamAquasHideout committed Dec 27, 2024
1 parent 5e63e76 commit e51cd46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pit_randomizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1930,11 +1930,11 @@ u16 RandomItemId(u16 itemId)
else if (ItemId_GetPocket(itemId) != POCKET_KEY_ITEMS)
{
randomItemCategory = Random32() % 1000;
if(randomItemCategory < 100)
if(randomItemCategory < 70)
itemId = sRandomXItems[RandomModulo(itemId + VarGet(VAR_PIT_FLOOR) + gSaveBlock1Ptr->pos.x, RANDOM_X_ITEM_COUNT)];
else if(randomItemCategory < 700)
itemId = sRandomConsumableValidItems[RandomModulo(itemId + VarGet(VAR_PIT_FLOOR) + gSaveBlock1Ptr->pos.x, RANDOM_CONSUMABLE_ITEM_COUNT)];
else if(randomItemCategory < 900)
else if(randomItemCategory < 920)
itemId = sRandomHeldValidItems[RandomModulo(itemId + VarGet(VAR_PIT_FLOOR) + gSaveBlock1Ptr->pos.x, RANDOM_HELD_ITEM_COUNT)];
else
itemId = sRandomBerryValidItems[RandomModulo(itemId + VarGet(VAR_PIT_FLOOR) + gSaveBlock1Ptr->pos.x, RANDOM_BERRY_ITEM_COUNT)];
Expand Down

0 comments on commit e51cd46

Please sign in to comment.