19 lines
358 B
C#
19 lines
358 B
C#
namespace OOP.RPG
|
|
{
|
|
public class Warrior : Character
|
|
{
|
|
public Warrior(int strength)
|
|
{
|
|
this.strength = strength;
|
|
}
|
|
|
|
public int strength = 10;
|
|
|
|
public int multiplier = 2;
|
|
|
|
public override int Attack()
|
|
{
|
|
return base.Attack() * multiplier;
|
|
}
|
|
}
|
|
} |