Merge pull request #1472 from garakmon/hi
fix encounter slot logic to accomodate changes
This commit is contained in:
@@ -162,7 +162,7 @@ static u8 ChooseWildMonIndex_Land(void)
|
||||
return 8;
|
||||
else if (rand >= ENCOUNTER_CHANCE_LAND_MONS_SLOT_8 && rand < ENCOUNTER_CHANCE_LAND_MONS_SLOT_9)
|
||||
return 9;
|
||||
else if (rand == ENCOUNTER_CHANCE_LAND_MONS_SLOT_9)
|
||||
else if (rand >= ENCOUNTER_CHANCE_LAND_MONS_SLOT_9 && rand < ENCOUNTER_CHANCE_LAND_MONS_SLOT_10)
|
||||
return 10;
|
||||
else
|
||||
return 11;
|
||||
@@ -215,7 +215,7 @@ static u8 ChooseWildMonIndex_Fishing(u8 rod)
|
||||
wildMonIndex = 7;
|
||||
if (rand >= ENCOUNTER_CHANCE_FISHING_MONS_SUPER_ROD_SLOT_7 && rand < ENCOUNTER_CHANCE_FISHING_MONS_SUPER_ROD_SLOT_8)
|
||||
wildMonIndex = 8;
|
||||
if (rand == ENCOUNTER_CHANCE_FISHING_MONS_SUPER_ROD_SLOT_8)
|
||||
if (rand >= ENCOUNTER_CHANCE_FISHING_MONS_SUPER_ROD_SLOT_8 && rand < ENCOUNTER_CHANCE_FISHING_MONS_SUPER_ROD_SLOT_9)
|
||||
wildMonIndex = 9;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user