public int MagicMissile(Player player, Player target, Room room) { var damage = _dice.Roll(1, 1, 4) + 1; _skillManager.DamagePlayer("magic missile", damage, player, target, room); return(damage); }
public int Kick(Player player, Player target, Room room) { var casterLevel = player.Level > 10 ? 5 : player.Level; var damage = _dice.Roll(1, 1, 8) + player.Attributes.Attribute[EffectLocation.Strength] / 6; if (target == null) { } _skillManager.DamagePlayer("Kick", damage, player, target, room); return(damage); }
public int Kick(Player player, Player target, Room room) { var str = player.Attributes.Attribute[EffectLocation.Strength]; var damage = _dice.Roll(1, 1, 8) + str / 4; _skillManager.DamagePlayer("Kick", damage, player, target, room); player.Lag += 1; _skillManager.updateCombat(player, target, room); return(damage); }