Exemplo n.º 1
0
 public override void TakeDamage(int amount, DamageType type, BodyPartKind bodyPart)
 {
     body.TakeDamage(amount, type, bodyPart);
     AI?.RecieveTextMessage($"You take {amount} {type.ToString().ToLowerInvariant()} damage");
     if (!updatingBody && body.NeedsUpdate)
     {
         UpdateBody();
     }
     if (!body.Alive)
     {
         AI?.Die();
         Die();
     }
 }
Exemplo n.º 2
0
 public virtual void TakeDamage(int amount, DamageType type, BodyPartKind bodyPart)
 {
     // do nothing
 }
Exemplo n.º 3
0
 public void TakeDamage(int amount, DamageType damageType, BodyPartKind bodyPart)
 {
     HP -= amount;
 }
Exemplo n.º 4
0
 public void TakeDamage(int amount, DamageType damageType, BodyPartKind bodyPart)
 {
     throw new NotImplementedException();
 }