Skip to content

Commit

Permalink
Fix Shiny.Always entities generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu098vm committed Dec 28, 2024
1 parent a22e5fd commit d5b412c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TeraFinder.Core/Classes/EncounterTF9/EncounterTF9RNG.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ private static uint GetAdaptedPID(ref Xoroshiro128Plus rand, EncounterRaidTF9 en
if (xor > 16)
pid = ShinyUtil.GetShinyPID(tid, sid, pid, 0);
if (!ShinyUtil.GetIsShiny(id32, pid))
pid = ShinyUtil.GetShinyPID(tid, sid, pid, xor == 0 ? 0u : 1u);
{
xor = ShinyUtil.GetShinyXor(pid, fakeTID);
pid = ShinyUtil.GetShinyPID(TidUtil.GetTID16(id32), TidUtil.GetSID16(id32), pid, xor == 0 ? 0u : 1u);
}
shiny = xor == 0 ? TeraShiny.Square : TeraShiny.Star;
}
else
Expand Down

0 comments on commit d5b412c

Please sign in to comment.