Gruppe22.Backend.Actor.AddStrength C# (CSharp) Метод

AddStrength() публичный Метод

Method to directly increase the damage an actor deals. Does nothing if damage>amount.
public AddStrength ( int amount ) : void
amount int The new amount of damage the actor should deal
Результат void
        public void AddStrength(int amount)
        {
            if (amount > _damage)
            {
                _damage = amount;
                _tile.HandleEvent(false, Backend.Events.ShowMessage, ((_actorType == ActorType.Player) ? "You equip " : (_name + " equips ")) + " a new weapon.");
            }
            else
            {
                _tile.HandleEvent(false, Backend.Events.ShowMessage, ((_actorType == ActorType.Player) ? "You put " : (_name + " puts ")) + " the weapon away.");

            }
        }