mirror of
https://github.com/kwsch/PKHeX
synced 2024-12-18 00:13:10 +00:00
Bug fixes
Box Wallpapers Stop returning the first box wallpaper regardless of box EXP: Changing level/exp wouldn't update stats (EXP needed to be set back to PKM object) Drag&Drop: If the file exists and is locked for editing, the try { } will fail -> so will delete since the file is locked. Never seen or heard it happen, but is possible.
This commit is contained in:
parent
3d0ffabe75
commit
f9bd271967
3 changed files with 5 additions and 3 deletions
|
@ -1412,6 +1412,7 @@ namespace PKHeX
|
||||||
TB_EXP.Text = PKX.getEXP(Level, Util.getIndex(CB_Species)).ToString();
|
TB_EXP.Text = PKX.getEXP(Level, Util.getIndex(CB_Species)).ToString();
|
||||||
}
|
}
|
||||||
changingFields = false;
|
changingFields = false;
|
||||||
|
pkm.EXP = Util.ToUInt32(TB_EXP.Text);
|
||||||
updateStats();
|
updateStats();
|
||||||
updateLegality();
|
updateLegality();
|
||||||
}
|
}
|
||||||
|
@ -3256,7 +3257,8 @@ namespace PKHeX
|
||||||
new Thread(() =>
|
new Thread(() =>
|
||||||
{
|
{
|
||||||
Thread.Sleep(500);
|
Thread.Sleep(500);
|
||||||
File.Delete(newfile);
|
if (File.Exists(newfile))
|
||||||
|
File.Delete(newfile);
|
||||||
}).Start();
|
}).Start();
|
||||||
}
|
}
|
||||||
private void pbBoxSlot_DragDrop(object sender, DragEventArgs e)
|
private void pbBoxSlot_DragDrop(object sender, DragEventArgs e)
|
||||||
|
|
|
@ -392,7 +392,7 @@ namespace PKHeX
|
||||||
{
|
{
|
||||||
// Box Wallpaper is directly after the Box Names
|
// Box Wallpaper is directly after the Box Names
|
||||||
int offset = getBoxOffset(BoxCount);
|
int offset = getBoxOffset(BoxCount);
|
||||||
offset += BoxCount * 0x9;
|
offset += BoxCount * 0x9 + box;
|
||||||
return Data[offset];
|
return Data[offset];
|
||||||
}
|
}
|
||||||
public override string getBoxName(int box)
|
public override string getBoxName(int box)
|
||||||
|
|
|
@ -543,7 +543,7 @@ namespace PKHeX
|
||||||
// Box Wallpaper is directly after the Box Names
|
// Box Wallpaper is directly after the Box Names
|
||||||
int offset = getBoxOffset(BoxCount);
|
int offset = getBoxOffset(BoxCount);
|
||||||
if (Version == GameVersion.HGSS) offset += 0x18;
|
if (Version == GameVersion.HGSS) offset += 0x18;
|
||||||
offset += BoxCount*0x28;
|
offset += BoxCount*0x28 + box;
|
||||||
return Data[offset];
|
return Data[offset];
|
||||||
}
|
}
|
||||||
public override string getBoxName(int box)
|
public override string getBoxName(int box)
|
||||||
|
|
Loading…
Reference in a new issue