public void BoxInventoryArmour(IGameItem eqpdArmour, int?index = null, bool DisplayResaleValue = true) { Console.Write("\u2551"); Console.SetCursorPosition(Console.CursorLeft + 1, Console.CursorTop); if (index is null) { Console.Write($"> {eqpdArmour.Name}"); // hero.Name } else { // For the store Console.Write($"{index} > {eqpdArmour.Name}"); // hero.Name } Console.SetCursorPosition(BlockMax - 1, Console.CursorTop); Console.Write("\u2551"); Console.SetCursorPosition(BlockMin, CursorPos++); Console.Write("\u2551"); Console.SetCursorPosition(Console.CursorLeft + 3, Console.CursorTop); Console.Write("<"); Console.Write($"DEF: +{eqpdArmour.GetAttribute()}"); // Defense Console.Write(" | "); if (DisplayResaleValue) { Console.Write($"Value: {eqpdArmour.ResaleValue}"); // Value } else { // For the store Console.Write($"Value: {eqpdArmour.Value}"); // Value } Console.Write(">"); Console.SetCursorPosition(BlockMax - 1, Console.CursorTop); Console.Write("\u2551"); Console.SetCursorPosition(BlockMin, CursorPos++); }
internal void BoxInventoryPotion(IGameItem potion, int?index = null, bool displayResaleValue = true) { Console.Write("\u2551"); Console.SetCursorPosition(Console.CursorLeft + 1, Console.CursorTop); if (index is null) { Console.Write($"> {potion.Name}"); // hero.Name } else { Console.Write($"{index} > {potion.Name}"); // hero.Name } Console.SetCursorPosition(BlockMax - 1, Console.CursorTop); Console.Write("\u2551"); Console.SetCursorPosition(BlockMin, CursorPos++); Console.Write("\u2551"); Console.SetCursorPosition(Console.CursorLeft + 3, Console.CursorTop); Console.Write("<"); Console.Write($"Heals: +{potion.GetAttribute()}"); // Healing Value. Console.Write(" | "); if (displayResaleValue) { Console.Write($"Value: {potion.ResaleValue}"); // Value } else { // For the store Console.Write($"Value: {potion.Value}"); // Value } Console.Write(">"); Console.SetCursorPosition(BlockMax - 1, Console.CursorTop); Console.Write("\u2551"); Console.SetCursorPosition(BlockMin, CursorPos++); }
public void BoxInventoryWeapon(IGameItem eqpdWeapon, int?index = null, bool DisplayResaleValue = true) { Console.Write("\u2551"); Console.SetCursorPosition(Console.CursorLeft + 1, Console.CursorTop); if (index is null) { Console.Write($"> {eqpdWeapon.Name}"); // hero.Name } else { Console.Write($"{index} > {eqpdWeapon.Name}"); // hero.Name } Console.SetCursorPosition(BlockMax - 1, Console.CursorTop); Console.Write("\u2551"); Console.SetCursorPosition(BlockMin, CursorPos++); Console.Write("\u2551"); Console.SetCursorPosition(Console.CursorLeft + 3, Console.CursorTop); Console.Write("<"); Console.Write($"STR: +{eqpdWeapon.GetAttribute()}"); // Strength Console.Write(" | "); if (DisplayResaleValue) { Console.Write($"Value: {eqpdWeapon.ResaleValue}"); // } else { // For the store Console.Write($"Value: {eqpdWeapon.Value}"); // Value } Console.Write(">"); Console.SetCursorPosition(BlockMax - 1, Console.CursorTop); Console.Write("\u2551"); Console.SetCursorPosition(BlockMin, CursorPos++); }