// awards ethyrl to the player public static void awardEthryl(int amount) { bool sign = amount > 0; // If the user has special effects enabled EOA.ChangeToEffects(new ConsoleColor[] { ConsoleColor.Magenta, ConsoleColor.DarkMagenta }); // Printing text feedback if (sign) { Console.WriteLine("+ " + amount.ToString() + " Ethryl\n"); } else if (!sign) { Console.WriteLine("- " + (amount * -1).ToString() + " Ethryl\n"); } // Adding the ethryl to the player Character.ethryl += amount; // Setting the foreground colour back to the default EOA.revertColourScheme(); // Wait a bit (because why not) (and also incase a Console.Clear() is directly after this.) Thread.Sleep(1000); }
public static void subtractHealth(int amount) { Character.health["max"] -= amount; // If the user has special effects enabled EOA.ChangeToEffects(new ConsoleColor[] { ConsoleColor.Red, ConsoleColor.DarkRed }); Console.WriteLine($"- {0} health!", amount.ToString()); // Setting the foreground colour back to the default EOA.revertColourScheme(); // Wait a bit (because why not) (and also incase a Console.Clear() is directly after this.) Thread.Sleep(1000); }