mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 15:09:26 -05:00
Get criteria from set details
pretty much futureproof I guess
This commit is contained in:
@@ -154,11 +154,8 @@ private EncounterCriteria GetCriteria(ISpeciesForm enc, EncounterDatabaseSetting
|
||||
return EncounterCriteria.Unrestricted;
|
||||
}
|
||||
|
||||
return new EncounterCriteria
|
||||
{
|
||||
Gender = editor.Gender,
|
||||
Nature = (Nature) editor.Nature,
|
||||
};
|
||||
var set = new ShowdownSet(editor);
|
||||
return EncounterCriteria.GetCriteria(set, editor.PersonalInfo);
|
||||
}
|
||||
|
||||
private void PopulateComboBoxes()
|
||||
|
||||
@@ -49,7 +49,7 @@ public void CanGenerateMG5Case()
|
||||
var ez = EncounterMovesetGenerator.GenerateEncounters(pk, pk.Moves, GameVersion.W2).OfType<EncounterStatic>().First();
|
||||
ez.Should().NotBeNull("Shiny Haxorus stationary encounter exists for B2/W2");
|
||||
|
||||
var criteria = new EncounterCriteria();
|
||||
var criteria = EncounterCriteria.Unrestricted;
|
||||
var tr = new SimpleTrainerInfo(GameVersion.B2)
|
||||
{
|
||||
TID = 57600,
|
||||
|
||||
Reference in New Issue
Block a user