2019-11-19 03:23:01 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2020-08-30 23:10:24 +00:00
|
|
|
|
public class EncounterStatic8 : EncounterStatic, IGigantamax
|
2019-11-19 03:23:01 +00:00
|
|
|
|
{
|
2020-09-07 20:51:13 +00:00
|
|
|
|
public sealed override int Generation => 8;
|
2020-08-30 23:10:24 +00:00
|
|
|
|
public bool CanGigantamax { get; set; }
|
|
|
|
|
|
2020-08-21 23:35:49 +00:00
|
|
|
|
protected override bool IsMatchLevel(PKM pkm, DexLevel evo)
|
2019-11-19 03:23:01 +00:00
|
|
|
|
{
|
2020-08-21 23:35:49 +00:00
|
|
|
|
var met = pkm.Met_Level;
|
|
|
|
|
if (met == Level)
|
2019-11-19 03:23:01 +00:00
|
|
|
|
return true;
|
2020-06-19 23:51:15 +00:00
|
|
|
|
if (EncounterArea8.IsWildArea8(Location) || EncounterArea8.IsWildArea8Armor(Location))
|
2020-08-21 23:35:49 +00:00
|
|
|
|
return met == 60;
|
2019-11-19 03:23:01 +00:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|