mirror of
https://github.com/projectpokemon/Gen3EventLegality.git
synced 2026-04-26 15:56:54 -05:00
Update OTG4 (Not definitive) algorithm.
This commit is contained in:
parent
f53cec6469
commit
d8ea161d69
22
Program.cs
22
Program.cs
|
|
@ -79,7 +79,7 @@ public class Gen3EventChecker
|
|||
|
||||
{ 2005, Tuple.Create("Festa/ROCKS Metang", Algo.BACDPIDIV | Algo.MaleOTG) },
|
||||
|
||||
{ 50901, Tuple.Create("Hado Titans", Algo.DSPlay | Algo.BACDPIDIV | Algo.RandOTG4) },
|
||||
{ 50901, Tuple.Create("Hado Titans", Algo.DSPlay | Algo.ItemFirst | Algo.BACDPIDIV | Algo.RandOTG4) },
|
||||
|
||||
{ 60505, Tuple.Create("GCEA 6th Campaign", Algo.BACDPIDIV | Algo.RandOTG3) },
|
||||
|
||||
|
|
@ -460,17 +460,26 @@ public class Gen3EventChecker
|
|||
|
||||
// Console.WriteLine("Item: {0}", (((rand6 >> 0x15) / 1) & 1) == 0 ? "Ganlon" : "Salac");
|
||||
|
||||
uint newSeed = seed;
|
||||
uint d = Prev(rand1, algo);
|
||||
uint c = Prev(d, algo);
|
||||
uint b = Prev(c, algo);
|
||||
uint a = Prev(b, algo);
|
||||
|
||||
// Console.WriteLine("Entry: {0}", GetRandomEntry((c & 0xFFFF0000) | (d >> 0x10), 5));
|
||||
// Console.WriteLine("Entry: {0}", (((rand6 >> 0x10) / 1) >> 0) % 3);
|
||||
// Console.WriteLine("Entry: {0}", GetRandomEntry(d >> 0x10, 5));
|
||||
|
||||
/*uint newSeed = seed;
|
||||
|
||||
for (int h = 0; h < 1000000; h++)
|
||||
{
|
||||
if (newSeed == 0x7ADB8160)
|
||||
if (newSeed == 0xDCA0BCA8)
|
||||
{
|
||||
Console.WriteLine("Test: {0:X8} - Frame {1}", newSeed, h);
|
||||
}
|
||||
|
||||
newSeed = Next(newSeed, algo);
|
||||
}
|
||||
}*/
|
||||
|
||||
another = true;
|
||||
}
|
||||
|
|
@ -661,7 +670,7 @@ public class Gen3EventChecker
|
|||
else if (Has(algo, Algo.FemaleOTG))
|
||||
Console.WriteLine("OTG: Female (Always)");
|
||||
else if (Has(algo, Algo.RandOTG4))
|
||||
Console.WriteLine("OTG: {0} (Not definitive)", (((itemRand >> 0x1E) / 1) & 1) == 1 ? "Female" : "Male");
|
||||
Console.WriteLine("OTG: {0} (Not Definitive)", (((otgRand >> 0x1E) / 1) & 1) == 1 ? "Female" : "Male");
|
||||
|
||||
if (Has(algo, Algo.RandItem3))
|
||||
Console.WriteLine("Item: {0}", ((itemRand >> 0x17) & 1) == 0 ? "Salac Berry" : "Ganlon Berry");
|
||||
|
|
@ -688,6 +697,9 @@ public class Gen3EventChecker
|
|||
Console.WriteLine("----------");
|
||||
}
|
||||
}
|
||||
|
||||
Console.WriteLine("Complete. Press enter to exit.");
|
||||
Console.ReadLine();
|
||||
}
|
||||
|
||||
public static bool isShiny(uint pid, uint tid, uint sid)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user