// Dragon Announcements --------- public static void DragonAttack(int Stance, int Damage, int StaminaPenalty, int Fury, int PlayerDefence) { string StanceName; if (Stance == 1) { StanceName = "Claws"; } else if (Stance == 2) { StanceName = "Spear"; } else if (Stance == 3) { StanceName = "Fire"; } else { throw new Exception("\n\n--Error!\nStance in dragon attack has invalid value!"); } int TotalDamage = Damage + Fury - PlayerDefence; File.AppendAllText(LogPath, $"\nDragon attacks with {StanceName} (" + $"{Damage}dmg + {Fury}dmg of Fury), causing {TotalDamage}dmg total ({PlayerDefence} " + $"{ChampMenu.GetChampName()} defence), for {StaminaPenalty} Stamina."); }
// Player Announcements --------- public static void PlayerAttack(int Weapon, int Damage, int StaminaPenalty, int DragonDefence) { string WeaponName; if (Weapon == 1) { WeaponName = "Longsword"; } else if (Weapon == 2) { WeaponName = "Battle-Axe"; } else if (Weapon == 3) { WeaponName = "Spears"; } else { throw new Exception("\n\n--Error!\nPlayer attack weapon has invalid value!"); } int TotalDamage = Damage - DragonDefence; File.AppendAllText(LogPath, $"\n{ChampMenu.GetChampName()} attacks with " + $"{WeaponName} ({Damage}dmg), causing {TotalDamage}dmg total ({DragonDefence} Dragon Defence), " + $"for {StaminaPenalty} Stamina."); }
public BattleSource(int ChampChoiceInput) { ChampChoice = ChampChoiceInput; champName = ChampMenu.GetChampName(); Start(); }
public static void PlayerRest(int Turns, int RestHP, int RestStamina) { if (Turns > 1) { File.AppendAllText(LogPath, $"\n{ChampMenu.GetChampName()} rests for {Turns} turns, " + $"for each turn gains {RestHP}hp and {RestStamina} Stamina."); } else { File.AppendAllText(LogPath, $"\n{ChampMenu.GetChampName()} rests for {Turns} turn, " + $"for each turn gains {RestHP}hp and {RestStamina} Stamina."); } }
// The Champions Introduction public static void ChampChoiceInput() { ChampMenu.Input(); switch (ChampMenu.ChampChoiceOutput) { case 1: new DragonEncounter(1); break; case 2: new DragonEncounter(2); break; case 3: new DragonEncounter(3); break; default: throw new Exception("\n\n--Error!\nChampion choice is invalid!"); } }
public static void PlayerNewWeapon(int newWeapon) { string newWeaponName; if (newWeapon == 1) { newWeaponName = "Longsword"; } else if (newWeapon == 2) { newWeaponName = "Battle-Axe"; } else if (newWeapon == 3) { newWeaponName = "Spears"; } else { throw new Exception("\n\n--Error!\nShow weapon in interface has invalid value!"); } File.AppendAllText(LogPath, $"\n{ChampMenu.GetChampName()} switches weapons to {newWeaponName}."); }
public static void PlayerNewLocation(int newLocation) { string newLocationName; if (newLocation == 1) { newLocationName = "Rocks"; } else if (newLocation == 2) { newLocationName = "Huts"; } else if (newLocation == 3) { newLocationName = "Trees"; } else { throw new Exception("\n\n--Error!\nPlayer location switch has invalid value!"); } File.AppendAllText(LogPath, $"\n{ChampMenu.GetChampName()} switches location to the " + $"{newLocationName}."); }
public static void PlayerDiffLocation() { File.AppendAllText(LogPath, $"\n{ChampMenu.GetChampName()} can't melee attack! The dragon " + $"is in a different location!"); }
public static void PlayerNoStamina() { File.AppendAllText(LogPath, $"\n{ChampMenu.GetChampName()} doesn't have enough energy " + $"to finish the attack!"); }
public static void PlayerPotion(int PotionHealth) { File.AppendAllText(LogPath, $"\n{ChampMenu.GetChampName()} drinks a potion, " + $"gains {PotionHealth} health."); }