mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-09 08:37:28 -05:00
Only boost templates to 60 in wild area
No functional change for legality checks, so should be fine unless you're trying to get tiny edge case stuff.
This commit is contained in:
parent
5ec2b12ae5
commit
c126cd968a
|
|
@ -27,7 +27,7 @@ protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteri
|
|||
((PK8)pk).RibbonMarkCurry = true;
|
||||
|
||||
base.ApplyDetails(sav, c, pk);
|
||||
if (Weather is AreaWeather8.Heavy_Fog)
|
||||
if (Weather is AreaWeather8.Heavy_Fog && EncounterArea8.IsBoostedArea60(Location))
|
||||
pk.CurrentLevel = pk.Met_Level = EncounterArea8.BoostLevel;
|
||||
|
||||
var req = GetRequirement(pk);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public override bool IsMatchExact(PKM pkm, DexLevel evo)
|
|||
{
|
||||
if (pkm is IDynamaxLevel d && d.DynamaxLevel < DynamaxLevel)
|
||||
return false;
|
||||
if (pkm.Met_Level < EncounterArea8.BoostLevel && Weather is AreaWeather8.Heavy_Fog && EncounterArea8.IsWildArea8(Location))
|
||||
if (pkm.Met_Level < EncounterArea8.BoostLevel && Weather is AreaWeather8.Heavy_Fog && EncounterArea8.IsBoostedArea60(Location))
|
||||
return false;
|
||||
return base.IsMatchExact(pkm, evo);
|
||||
}
|
||||
|
|
@ -43,7 +43,7 @@ public override bool IsMatchExact(PKM pkm, DexLevel evo)
|
|||
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
|
||||
{
|
||||
base.ApplyDetails(sav, criteria, pk);
|
||||
if (Weather is AreaWeather8.Heavy_Fog)
|
||||
if (Weather is AreaWeather8.Heavy_Fog && EncounterArea8.IsBoostedArea60(Location))
|
||||
pk.CurrentLevel = pk.Met_Level = EncounterArea8.BoostLevel;
|
||||
|
||||
var req = GetRequirement(pk);
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ public static bool IsMarkValid(RibbonIndex mark, PKM pk, IEncounterTemplate enc)
|
|||
{
|
||||
RibbonIndex.MarkCurry when !IsMarkAllowedCurry(pk, x) => false,
|
||||
RibbonIndex.MarkFishing when !IsMarkAllowedFishing(x) => false,
|
||||
RibbonIndex.MarkMisty when pk.Met_Level < EncounterArea8.BoostLevel && EncounterArea8.IsWildArea8(pk.Met_Location) => false,
|
||||
RibbonIndex.MarkMisty when pk.Met_Level < EncounterArea8.BoostLevel && EncounterArea8.IsBoostedArea60(pk.Met_Location) => false,
|
||||
RibbonIndex.MarkDestiny => false,
|
||||
>= RibbonIndex.MarkCloudy and <= RibbonIndex.MarkMisty => IsWeatherPermitted(mark, x),
|
||||
_ => true
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user