mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-24 02:06:12 -05:00
Better Items in illegal mode (thanks anon)
This commit is contained in:
parent
10c45e06b9
commit
6d025833ca
|
|
@ -193,7 +193,7 @@ public Main()
|
|||
private static int colorizedbox = -1;
|
||||
private static Image colorizedcolor;
|
||||
private static int colorizedslot;
|
||||
private static bool HaX;
|
||||
public static bool HaX;
|
||||
private LegalityAnalysis Legality = new LegalityAnalysis(new PK3());
|
||||
private static readonly Image mixedHighlight = Util.ChangeOpacity(Properties.Resources.slotSet, 0.5);
|
||||
private static readonly string[] lang_val = { "ja", "en", "fr", "it", "de", "es", "ko", "zh", "pt" };
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@ public SAV_Inventory()
|
|||
itemlist = Main.itemlist;
|
||||
break;
|
||||
}
|
||||
for (int i = 0; i < itemlist.Length; i++)
|
||||
if (itemlist[i] == "")
|
||||
itemlist[i] = $"(Item #{i.ToString("000")})";
|
||||
Pouches = SAV.Inventory;
|
||||
getBags();
|
||||
}
|
||||
|
|
@ -103,7 +106,8 @@ private void spillBag(DataGridView dgv, int bag)
|
|||
{
|
||||
var pouch = Pouches[bag];
|
||||
var itemcount = Pouches[bag].Items.Length;
|
||||
string[] itemarr = getItems(pouch.LegalItems);
|
||||
string[] itemarr = Main.HaX ? (string[])itemlist.Clone() : getItems(pouch.LegalItems);
|
||||
|
||||
dgv.Rows.Clear();
|
||||
dgv.Columns.Clear();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user