More battle_dome.c documentation
This commit is contained in:
1206
src/battle_dome.c
1206
src/battle_dome.c
File diff suppressed because it is too large
Load Diff
@@ -2044,20 +2044,20 @@ u16 RandomizeFacilityTrainerMonSet(u16 trainerId)
|
||||
{
|
||||
u8 level = SetFacilityPtrsGetLevel();
|
||||
const u16 *monSets = gFacilityTrainers[trainerId].monSets;
|
||||
u8 bfMonCount = 0;
|
||||
u32 monSetId = monSets[bfMonCount];
|
||||
u8 numMonSets = 0;
|
||||
u32 monSetId = monSets[numMonSets];
|
||||
|
||||
while (monSetId != 0xFFFF)
|
||||
{
|
||||
bfMonCount++;
|
||||
monSetId = monSets[bfMonCount];
|
||||
numMonSets++;
|
||||
monSetId = monSets[numMonSets];
|
||||
if (monSetId == 0xFFFF)
|
||||
break;
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
monSetId = monSets[Random() % bfMonCount];
|
||||
monSetId = monSets[Random() % numMonSets];
|
||||
} while((level == 50 || level == 20) && monSetId > 849);
|
||||
|
||||
return monSetId;
|
||||
|
||||
Reference in New Issue
Block a user