Skip to content

Commit

Permalink
SAV3E: Max Item ID +2
Browse files Browse the repository at this point in the history
Closes #4033
  • Loading branch information
kwsch committed Oct 12, 2023
1 parent b6a42d4 commit 0491ab2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions PKHeX.Core/Legality/Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static class Legal
internal const int MaxSpeciesID_3 = 386;
internal const int MaxMoveID_3 = 354;
internal const int MaxItemID_3 = 374;
internal const int MaxItemID_3_E = 376;
internal const int MaxItemID_3_COLO = 547;
internal const int MaxItemID_3_XD = 593;
internal const int MaxAbilityID_3 = 77;
Expand Down
2 changes: 1 addition & 1 deletion PKHeX.Core/Saves/SAV3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void WriteBothSaveSlots(Span<byte> data)
public sealed override ushort MaxMoveID => Legal.MaxMoveID_3;
public sealed override ushort MaxSpeciesID => Legal.MaxSpeciesID_3;
public sealed override int MaxAbilityID => Legal.MaxAbilityID_3;
public sealed override int MaxItemID => Legal.MaxItemID_3;
public override int MaxItemID => Legal.MaxItemID_3;
public sealed override int MaxBallID => Legal.MaxBallID_3;
public sealed override int MaxGameID => Legal.MaxGameID_3;

Expand Down
1 change: 1 addition & 0 deletions PKHeX.Core/Saves/SAV3E.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public sealed class SAV3E : SAV3, IGen3Hoenn, IGen3Joyful, IGen3Wonder

protected override int EventFlag => 0x1270;
protected override int EventWork => 0x139C;
public override int MaxItemID => Legal.MaxItemID_3_E;

private void Initialize()
{
Expand Down

0 comments on commit 0491ab2

Please sign in to comment.