mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-14 16:27:21 +00:00
Location specific restrictions
This commit is contained in:
parent
bfe411d503
commit
6088a95421
1 changed files with 8 additions and 0 deletions
|
@ -75,12 +75,20 @@ namespace PKHeX.Core
|
|||
if (rating != EncounterMatchRating.Match)
|
||||
return rating;
|
||||
|
||||
// Glimwood Tangle does not spawn Symbol encounters, only Hidden.
|
||||
if (Location is 76 && ((EncounterArea8)Area).PermitCrossover)
|
||||
return EncounterMatchRating.PartialMatch;
|
||||
|
||||
if (pkm is IRibbonSetMark8 m)
|
||||
{
|
||||
if (m.RibbonMarkCurry && (Weather & AreaWeather8.All) == 0)
|
||||
return EncounterMatchRating.Deferred;
|
||||
if (m.RibbonMarkFishing && (Weather & AreaWeather8.Fishing) == 0)
|
||||
return EncounterMatchRating.Deferred;
|
||||
|
||||
// Galar Mine hidden encounters can only be found via Curry.
|
||||
if (Location is 30 or 54 && !((EncounterArea8)Area).PermitCrossover && !m.RibbonMarkCurry)
|
||||
return EncounterMatchRating.PartialMatch;
|
||||
}
|
||||
|
||||
var req = GetRequirement(pkm);
|
||||
|
|
Loading…
Reference in a new issue