public void Kick(Player ActivePlayer, Player PassivePlayer, GamePage _GamePage) { if (GetRandom(ActivePlayer.Chance) == true) { int FullDamage = ActivePlayer.Damage + ActivePlayer.AdditionalDamage - PassivePlayer.Shield; if (FullDamage < 0) { FullDamage = 0; } ActivePlayer.AdditionalDamage = 0; PassivePlayer.Shield = 0; PassivePlayer.Health -= FullDamage; _GamePage.Say(Locale.Locale.Success + ActivePlayer.Name + Locale.Locale.KickPlayer + PassivePlayer.Name); ActivePlayer.Chance--; } else { ActivePlayer.Health -= ActivePlayer.Damage; _GamePage.Say(Locale.Locale.Failure + ActivePlayer.Name + Locale.Locale.KickPlayer + PassivePlayer.Name); ActivePlayer.Chance++; } ActivePlayer.Xp += 5; }
public void Spell(Player ActivePlayer, Player PassivePlayer, GamePage _GamePage) { //spells: grenade 0, shield 1, ultra heal 2, add additional damage 3, poison 4, additional xp 5 if (GetRandom(ActivePlayer.Chance) == true) { if (ActivePlayer.Spell == 0) { PassivePlayer.Health -= ActivePlayer.Damage * 2; } else if (ActivePlayer.Spell == 1) { ActivePlayer.Shield += PassivePlayer.Damage / 5; } else if (ActivePlayer.Spell == 2) { ActivePlayer.Health += ActivePlayer.Heal * 2; } else if (ActivePlayer.Spell == 3) { ActivePlayer.AdditionalDamage += ActivePlayer.Damage / 5; } else if (ActivePlayer.Spell == 4) { PassivePlayer.PoisonEffectTime += 5; } else if (ActivePlayer.Spell == 5) { ActivePlayer.Xp += 20; } _GamePage.Say(Locale.Locale.Success + ActivePlayer.Name + Locale.Locale.Use + ActivePlayer.SpellName); ActivePlayer.Chance--; } else { if (ActivePlayer.Spell == 0) { ActivePlayer.Health -= ActivePlayer.Damage * 2; } else if (ActivePlayer.Spell == 2) { ActivePlayer.PoisonEffectTime += 10; } else if (ActivePlayer.Spell == 4) { ActivePlayer.PoisonEffectTime += 5; } _GamePage.Say(Locale.Locale.Failure + ActivePlayer.Name + Locale.Locale.Use + ActivePlayer.SpellName); ActivePlayer.Chance++; } ActivePlayer.Xp += 10; }
public void Heal(Player ActivePlayer, GamePage _GamePage) { if (GetRandom(ActivePlayer.Chance) == true) { ActivePlayer.Health += ActivePlayer.Heal; _GamePage.Say(Locale.Locale.Success + ActivePlayer.Name + Locale.Locale.HealThemself); ActivePlayer.Chance--; } else { ActivePlayer.PoisonEffectTime += 5; _GamePage.Say(Locale.Locale.Failure + ActivePlayer.Name + Locale.Locale.HealThemself); ActivePlayer.Chance++; } ActivePlayer.Xp += 5; }