mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
Misc trash text fixes
This commit is contained in:
parent
471a90ced6
commit
ad46176fd2
3 changed files with 9 additions and 2 deletions
|
@ -144,6 +144,13 @@ namespace PKHeX.WinForms
|
|||
byte[] data = PKX.setString(species, Main.SAV.Generation, Main.SAV.Japanese, bigendian, Raw.Length, Main.SAV.Language);
|
||||
if (data.Length <= current.Length)
|
||||
{
|
||||
WinFormsUtil.Alert("Trash byte layer is hidden by current text.",
|
||||
$"Current Bytes: {current.Length}" + Environment.NewLine + $"Layer Bytes: {data.Length}");
|
||||
return;
|
||||
}
|
||||
if (data.Length > Bytes.Count)
|
||||
{
|
||||
WinFormsUtil.Alert("Trash byte layer is too long to apply.");
|
||||
return;
|
||||
}
|
||||
for (int i = current.Length; i < data.Length; i++)
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace PKHeX.Core
|
|||
public override byte[] setString(string value, int maxLength) => PKX.setBEString3(value, maxLength);
|
||||
|
||||
// Trash Bytes
|
||||
public override byte[] Nickname_Trash { get { return getData(0x1E, 20); } set { if (value?.Length == 20) value.CopyTo(Data, 0x1E); } }
|
||||
public override byte[] Nickname_Trash { get { return getData(0x2E, 20); } set { if (value?.Length == 20) value.CopyTo(Data, 0x2E); } }
|
||||
public override byte[] OT_Trash { get { return getData(0x18, 20); } set { if (value?.Length == 20) value.CopyTo(Data, 0x18); } }
|
||||
|
||||
// Future Attributes
|
||||
|
|
|
@ -184,7 +184,7 @@ namespace PKHeX.Core
|
|||
public override int MaxEV => 255;
|
||||
public override int Generation => 3;
|
||||
protected override int GiftCountMax => 1;
|
||||
public override int OTLength => 8;
|
||||
public override int OTLength => 7;
|
||||
public override int NickLength => 10;
|
||||
public override int MaxMoney => 999999;
|
||||
|
||||
|
|
Loading…
Reference in a new issue