mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 17:16:46 -05:00
hide bp for rs saves
https://projectpokemon.org/home/forums/topic/47291-bug-with-battle-points-and-rubysapphire-not-emerald/
This commit is contained in:
@@ -62,7 +62,10 @@ public SAV_Misc3(SaveFile sav)
|
||||
else
|
||||
{ TB_OTName.Visible = L_TrainerName.Visible = GB_TCM.Visible = false; }
|
||||
|
||||
NUD_BP.Value = Math.Min(NUD_BP.Maximum, SAV.BP);
|
||||
if (SAV.RS)
|
||||
NUD_BP.Visible = L_BP.Visible = false;
|
||||
else
|
||||
NUD_BP.Value = Math.Min(NUD_BP.Maximum, SAV.BP);
|
||||
NUD_Coins.Value = Math.Min(NUD_Coins.Maximum, SAV.Coin);
|
||||
}
|
||||
|
||||
@@ -83,7 +86,8 @@ private void B_Save_Click(object sender, EventArgs e)
|
||||
BitConverter.GetBytes((ushort)(int)cba[i].SelectedValue).CopyTo(SAV.Data, ofsTCM + (i << 1));
|
||||
}
|
||||
|
||||
SAV.BP = (ushort)NUD_BP.Value;
|
||||
if (!SAV.RS)
|
||||
SAV.BP = (ushort)NUD_BP.Value;
|
||||
SAV.Coin = (ushort)NUD_Coins.Value;
|
||||
|
||||
Origin.SetData(SAV.Data, 0);
|
||||
|
||||
Reference in New Issue
Block a user