Skip to content

Commit

Permalink
Add rock smash encounter type flagging
Browse files Browse the repository at this point in the history
I don't believe rock smash (EncounterType 1) exists, tests at Route 19
and Vermillion yielded None & City.

Closes #1379
Opens #1502
  • Loading branch information
kwsch committed Oct 30, 2017
1 parent 3f53339 commit da9e316
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion PKHeX.Core/Legality/Encounters/Data/Encounters4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ private static EncounterType GetEncounterTypeBySlotHGSS(SlotType Type, Encounter
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;
Expand Down

0 comments on commit da9e316

Please sign in to comment.