private void CheckStats() { _player.DisplayEquipment(); string[] types = Enum.GetNames(typeof(ItemType)); ConsoleExtras.ColorLine("Change Equipment:\n\r 1. Back" + $"\n\r {string.Join("\n\r ", types.Select((type, index) => $"{index+2}. {type}"))}"); int option = ConsoleExtras.GetIntInput(types.Length + 2); if (option == 1) { return; } var itemType = (ItemType)(option - 2); ConsoleExtras.ColorLine($"\nYour inventory of {itemType}s:\n\r 1. Back" + $"\n\r {string.Join("\n\r ", _inventory[itemType].Select((item, index) => $"{index + 2}. {item}"))}"); option = ConsoleExtras.GetIntInput(_inventory[itemType].Count + 2); if (option == 1) { CheckStats(); return; } SwapEquipment(itemType, option - 2); _player.ApplyItemStats(); }