private void UpdatePKMFromSettings(TrainerPoke pk) { if (Settings.BoostLevel) { BoostLevel(pk, Settings.LevelBoostRatio); } if (Settings.RandomShinies) { pk.Shiny = Util.Random.Next(0, 100 + 1) < Settings.ShinyChance; } if (Settings.RandomAbilities) { pk.Ability = (int)Util.Rand32() % 4; } if (Settings.MaxIVs) { pk.IVs = new[] { 31, 31, 31, 31, 31, 31 } } ; if (Settings.MaxDynamaxLevel && pk is TrainerPoke8 c && c.DynamaxLevel != 0) { c.DynamaxLevel = 10; } RandomizeEntryMoves(pk); }
private void UpdatePKMFromSettings(TrainerPoke pk) { if (Settings.BoostLevel) { pk.Level = Legal.GetModifiedLevel(pk.Level, Settings.LevelBoostRatio); } if (Settings.RandomShinies) { pk.Shiny = Util.Random.Next(0, 100 + 1) < Settings.ShinyChance; } if (Settings.RandomAbilities) { pk.Ability = (int)Util.Rand32() % 4; } if (Settings.MaxIVs) { pk.IVs = new[] { 31, 31, 31, 31, 31, 31 } } ; RandomizeEntryMoves(pk); }