Add rock smash encounter type flagging

I don't believe rock smash (EncounterType 1) exists, tests at Route 19
and Vermillion yielded None & City.

Closes #1379
Opens #1502
This commit is contained in:
Kurt 2017-10-29 19:17:53 -07:00
parent 3f533399f2
commit da9e316cd8

View file

@ -223,7 +223,11 @@ namespace PKHeX.Core
case SlotType.Super_Rod_Safari: return EncounterType.Surfing_Fishing;
case SlotType.Rock_Smash:
case SlotType.Rock_Smash_Safari: return EncounterType.RockSmash;
if (HeadbuttType == EncounterType.Building_EnigmaStone)
return HeadbuttType;
if (GrassType == EncounterType.Cave_HallOfOrigin)
return GrassType;
return EncounterType.None;
case SlotType.Headbutt: return HeadbuttType;
case SlotType.Headbutt_Special: return EncounterType.None;