public void Handle(HealEvent msg) { if (_vitals.TryGetValue(msg.TargetVital, out var vital)) { vital.Current += msg.Amount; } else if (_vitals.TryGetValue(GameData.Vitals.GetID(msg.TargetVital), out vital)) { vital.Current += msg.Amount; } if (msg.Amount > 0) { Owner.Post(new CombatStatusUpdate(msg.Amount.ToString("F1"), Color.green)); } }
public void Handle(HealEvent arg) { UIFloatingText.WorldSpawn(arg.Amount.ToString("F0"), this.GetEntity().GetPosition(), Color.green); }