Add preliminary VC2 legality checking

Surprisingly easy to toggle on
If VC, provide possible version the encounter was matched to (to
indicate GS vs RBY).
This commit is contained in:
Kurt
2017-09-07 23:53:12 -07:00
parent e517b45e51
commit 4b83fdbe2c
2 changed files with 4 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ public LegalityAnalysis(PKM pk)
case 5: ParsePK5(pk); break;
case 6: ParsePK6(pk); break;
case 1: ParsePK7(pk); break;
case 1: case 2:
case 7: ParsePK7(pk); break;
}
@@ -344,6 +344,8 @@ private string GetVerboseLegalityReport()
lines.AddRange(br);
lines.Add(string.Format(V195, EncounterName));
if (pkm.VC)
lines.Add(string.Format(V196, nameof(GameVersion), Info.Game));
var pidiv = Info.PIDIV ?? MethodFinder.Analyze(pkm);
if (pidiv != null)
{

View File

@@ -34,7 +34,7 @@ public static partial class Legal
/// <summary>Setting to specify if an analysis should permit data sourced from the physical cartridge era of GameBoy games.</summary>
public static bool AllowGBCartEra { get; set; }
public static bool AllowGen1Tradeback { get; set; }
public static bool AllowGen2VCTransfer => AllowGen1Tradeback;
public static bool AllowGen2VCTransfer => true;
public static bool AllowGen2VCCrystal => false;
public static bool AllowGen2Crystal => AllowGBCartEra || AllowGen2VCCrystal;
public static bool AllowGen2MoveReminder => AllowGBCartEra;