public static ModInventoryMenu GetCopy(InventoryMenu invMenu, AdventurersGuildShopMenu inst)
            {
                IList <Item> actualInventory = new List <Item>(invMenu.actualInventory);


                var result = new ModInventoryMenu(invMenu.xPositionOnScreen, invMenu.yPositionOnScreen, invMenu.playerInventory, actualInventory, inst,
                                                  invMenu.capacity, invMenu.rows, invMenu.horizontalGap, invMenu.verticalGap, invMenu.drawSlots);

                return(result.ModifySlinghots());
            }
 public void SetOtherInventoryMenu(ModInventoryMenu other)
 {
     OtherInventoryMenu = other;
     CalcGreenBrown();
 }
 private void ModifyInventoryMenu()
 {
     inventory = ModInventoryMenu.GetCopy(inventory, this);
 }