Advertisement
Alexander_Maximov

Untitled

Mar 16th, 2023
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2.  
  3. namespace GladiatorFight
  4. {
  5.     public class BountyHunter : Fighter
  6.     {
  7.         private int _critDamage;
  8.  
  9.         public BountyHunter(string name, int health, int damage, int armor, int critDamage) : base(name, health, damage, armor)
  10.         {
  11.             _critDamage = critDamage;
  12.         }
  13.  
  14.         public override int UseSkill(int roundCount)
  15.         {
  16.             int skillDamage = Damage + _critDamage;
  17.             Console.Write("\nИспользован скилл Баунти Хантера!");
  18.             return skillDamage;
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement