Better Items in illegal mode (thanks anon)

This commit is contained in:
Michael Scire 2016-09-27 23:53:53 -07:00
parent 10c45e06b9
commit 6d025833ca
2 changed files with 6 additions and 2 deletions

View File

@ -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" };

View File

@ -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();