Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

Commit

Permalink
Version update and performance tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Admiral-Fish committed Jun 3, 2017
1 parent ee2331e commit c76da99
Show file tree
Hide file tree
Showing 11 changed files with 219 additions and 470 deletions.
1 change: 1 addition & 0 deletions RNGReporter/DSParametersIVCheck.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions RNGReporter/DexIVCheck.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions RNGReporter/GameCube.cs
Expand Up @@ -241,7 +241,6 @@ private void generateGales()
private void checkSeedGales(uint hp, uint atk, uint def, uint spa, uint spd, uint spe)
{
uint x8 = hp | (atk << 5) | (def << 10);
uint x8_2 = x8 ^ 0x8000;
uint ex8 = spe | (spa << 5) | (spd << 10);
uint ex8_2 = ex8 ^ 0x8000;
uint ivs_1b = x8 << 16;
Expand All @@ -257,12 +256,12 @@ private void checkSeedGales(uint hp, uint atk, uint def, uint spa, uint spd, uin
uint pid = (pid1 & 0xFFFF0000) | (pid2 >> 16);
uint nature = pid - 25 * (pid / 25);
uint galesSeed = reverseXD(seedb);
bool pass = (natureList == null || natureList.Contains(nature)) ? true : false;
bool pass = (natureList == null || natureList.Contains(nature));

uint xorSeed = galesSeed ^ 0x80000000;
uint xorPID = pid ^= 0x80008000;
uint xorNature = xorPID - 25 * (xorPID / 25);
bool xorPass = (natureList == null || natureList.Contains(xorNature)) ? true : false;
bool xorPass = (natureList == null || natureList.Contains(xorNature));

switch (shadow)
{
Expand Down Expand Up @@ -641,7 +640,6 @@ private void generateColo()
private void checkSeed(uint hp, uint atk, uint def, uint spa, uint spd, uint spe)
{
uint x8 = hp + (atk << 5) + (def << 10);
uint x8_2 = x8 ^ 0x8000;
uint ex8 = spe + (spa << 5) + (spd << 10);
uint ex8_2 = ex8 ^ 0x8000;
uint ivs_1b = x8 << 16;
Expand Down Expand Up @@ -1248,7 +1246,6 @@ private void generateR()
private void checkSeedR(uint hp, uint atk, uint def, uint spa, uint spd, uint spe)
{
uint x4 = hp | (atk << 5) | (def << 10);
uint x4_2 = x4 ^ 0x8000;
uint ex4 = spe | (spa << 5) | (spd << 10);
uint ex4_2 = ex4 ^ 0x8000;
uint ivs_1b = x4 << 16;
Expand Down
18 changes: 9 additions & 9 deletions RNGReporter/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 11 additions & 41 deletions RNGReporter/PokeSpot.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c76da99

Please sign in to comment.