public void OnConsume(MobileEntity entity, Consumable item) { if (entity.GetStatus <PoisonStatus>() is PoisonStatus status) { var poisons = status.Poisons; if (_relative) { for (var i = 0; i < _potency; i++) { poisons.Where(p => p.Potency > 0).Random().Potency--; } } else { foreach (var p in poisons.Where(p => p.Potency > 5)) { p.Potency = 5; } } if (status.Potency <= 0) { entity.NeutralizePoison(); } } }