This commit is contained in:
Greg Edwards
2021-09-21 19:48:11 -04:00
parent 28876be090
commit b0e672a7fc
5 changed files with 11 additions and 8 deletions

View File

@@ -55,6 +55,9 @@ namespace PkmnFoundations.GlobalTerminalService
store.Open(OpenFlags.ReadOnly);
X509Certificate2Collection cers = store.Certificates.Find(X509FindType.FindBySubjectName, "pkgdsprod.nintendo.co.jp", false);
// fixme: Screen any found certificates for errors like "The
// credentials supplied to the package were not recognized" and use
// the dummy if none are good.
if (cers.Count > 0)
return cers[0];

Binary file not shown.

View File

@@ -219,7 +219,7 @@ namespace PkmnFoundations.GTS
104, // Double team
329 // Sheer cold
},
5, 5, // Bold
5, 5, // Bold, shiny
BattleTowerPokemon4.PackIVs(31, 10, 20, 31, 10, 31),
new byte[] { 252, 0, 0, 252, 0, 6 },
0, Languages.English, 47, // Thick fat
@@ -249,7 +249,7 @@ namespace PkmnFoundations.GTS
89, // EQ
444 // Stone edge
},
13, 13, // Jolly
13, 13, // Jolly, shiny
BattleTowerPokemon4.PackIVs(31, 31, 20, 31, 10, 20),
new byte[] { 6, 252, 0, 252, 0, 0 },
0, Languages.English, 45, // Sand stream
@@ -346,7 +346,7 @@ namespace PkmnFoundations.GTS
8, // Ice punch
67 // Low kick
},
13, 13, // Jolly
13, 13, // Jolly, shiny
BattleTowerPokemon4.PackIVs(31, 31, 20, 31, 10, 20),
new byte[] { 40, 252, 0, 218, 0, 0 },
0, Languages.English, 46, // Pressure
@@ -376,7 +376,7 @@ namespace PkmnFoundations.GTS
95, // Hypnosis
153 // Explosion
},
22, 22, // Sassy
22, 22, // Sassy, shiny
BattleTowerPokemon4.PackIVs(31, 20, 31, 0, 10, 20),
new byte[] { 252, 0, 252, 0, 0, 6 },
0, Languages.English, 26, // Levitate
@@ -438,7 +438,7 @@ namespace PkmnFoundations.GTS
411, // Focus blast
324 // Signal beam
},
15, 15, // Modest
15, 15, // Modest, shiny
BattleTowerPokemon4.PackIVs(31, 10, 20, 31, 31, 20),
new byte[] { 6, 0, 0, 252, 252, 6 },
0, Languages.English, 39, // Inner focus

View File

@@ -520,7 +520,7 @@ namespace PkmnFoundations.GTS
byte[] fakeLeader = new BattleSubwayProfile5
(
new EncodedString5("-----", 16),
Versions.Platinum, Languages.English,
Versions.White, Languages.English,
0, 0, 0x00000000, new TrendyPhrase5(0, 20, 0, 0), 0, 0
).Save();

View File

@@ -10,9 +10,9 @@ namespace PkmnFoundations.Structures
protected StatValuesBase(IEnumerable<T> s)
{
// fail without enumerating if possible
if (s is IList<T> && ((IList<T>)s).Count != 6) throw new ArgumentException("s must have exactly 6 elements.", "s");
if (s is IList<T> && ((IList<T>)s).Count != 6) throw new ArgumentException("Collection must have exactly 6 elements.", "s");
var arr = s.ToArray();
if (arr.Length != 6) throw new ArgumentException("s must have exactly 6 elements.", "s");
if (arr.Length != 6) throw new ArgumentException("Collection must have exactly 6 elements.", "s");
Stats = arr;
}