mirror of
https://github.com/kwsch/pkNX.git
synced 2026-04-24 14:56:50 -05:00
Disallow melmetal/meltan for ggwe rand
they don't appear either; looks like only 1-151
This commit is contained in:
parent
ec23818454
commit
6b1e3e5cb2
|
|
@ -22,12 +22,13 @@ public SpeciesRandomizer(GameInfo game, PersonalTable t)
|
|||
/// <summary>
|
||||
/// Initializes the <see cref="RandSpec"/> according to the provided settings.
|
||||
/// </summary>
|
||||
/// <param name="settings"></param>
|
||||
public void Initialize(SpeciesSettings settings)
|
||||
/// <param name="settings">General settings</param>
|
||||
/// <param name="banlist">Optional extra: banned species</param>
|
||||
public void Initialize(SpeciesSettings settings, params int[] banlist)
|
||||
{
|
||||
s = settings;
|
||||
var list = s.GetSpecies(Game.MaxSpeciesID, Game.Generation);
|
||||
RandSpec = new GenericRandomizer(list);
|
||||
var list = s.GetSpecies(Game.MaxSpeciesID, Game.Generation).Except(banlist);
|
||||
RandSpec = new GenericRandomizer(list.ToArray());
|
||||
}
|
||||
|
||||
#region Random Species Filtering Parameters
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ public GGWE(GameManager rom, string json)
|
|||
Tables = obj;
|
||||
LoadFile(locs);
|
||||
|
||||
|
||||
EL_Ground.ShowForm = false;
|
||||
EL_Water.ShowForm = false;
|
||||
EL_Old.ShowForm = false;
|
||||
|
|
@ -343,8 +342,9 @@ private void B_RandAll_Click(object sender, EventArgs e)
|
|||
SaveEntry(entry);
|
||||
var settings = (SpeciesSettings)PG_Species.SelectedObject;
|
||||
settings.Gen2 = settings.Gen3 = settings.Gen4 = settings.Gen5 = settings.Gen6 = settings.Gen7 = false;
|
||||
settings.Events = false;
|
||||
var rand = new SpeciesRandomizer(ROM.Info, ROM.Data.PersonalData);
|
||||
rand.Initialize(settings);
|
||||
rand.Initialize(settings, new[] {808, 809});
|
||||
RandomizeWild(rand, CHK_FillEmpty.Checked);
|
||||
LoadEntry(entry);
|
||||
System.Media.SystemSounds.Asterisk.Play();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user