public void AddHealth(int amount)
{
int temp = Math.Max(amount, _maxhealth - _health - amount);
if (temp > 0)
{
_tile.HandleEvent(false, Backend.Events.ShowMessage, ((_actorType == ActorType.Player) ? "You regain " : (_name + " regains ")) + temp.ToString() + " hitpoints.");
}
else
{
_tile.HandleEvent(false, Backend.Events.ShowMessage, ((_actorType == ActorType.Player) ? "You put " : (_name + " puts ")) + " puts the potion away.");
}
_health = Math.Min(_health + amount, _maxhealth);
}