Advertisement
Guest User

Untitled

a guest
Nov 17th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace Raiding
  6. {
  7. public class Warrior : BaseHero
  8. {
  9. public const int warriorPower = 100;
  10. public Warrior(string name) : base(name, warriorPower)
  11. {
  12. }
  13.  
  14. public override string CastAbility()
  15. {
  16. return $"{nameof(Warrior)} - {Name} hit for {Power} damage";
  17. }
  18. }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement