Skip to content

Commit

Permalink
Fix RS/FRLG/HGSS inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
Admiral-Fish committed Jul 9, 2023
1 parent 7a5537b commit 101f669
Show file tree
Hide file tree
Showing 4 changed files with 408 additions and 408 deletions.
2 changes: 1 addition & 1 deletion Source/Core/Gen3/Generators/EggGenerator3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static void setInheritance(const Daycare &daycare, std::array<u8, 6> &ivs, std::

u8 stat = available[inh[0]];
ivs[order[stat]] = daycare.getParentIV(par[0], order[stat]);
inheritance[order[stat]] = par[1] + 1;
inheritance[order[stat]] = par[0] + 1;

avoid(stat, 0);

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/Gen4/Generators/EggGenerator4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void setInheritance(const Daycare &daycare, std::array<u8, 6> &ivs, std::

u8 stat = available[inh[0]];
ivs[order[stat]] = daycare.getParentIV(par[0], order[stat]);
inheritance[order[stat]] = par[1] + 1;
inheritance[order[stat]] = par[0] + 1;

avoid(stat, 0);

Expand Down
Loading

0 comments on commit 101f669

Please sign in to comment.