public override void ReceiveTextMessage(FormattableString text) { if (AI != null) { AI.RecieveTextMessage(text); } }
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(); } }