public static float EssenceDrain(this BasicChar drainer, BasicChar toDrain) { float returnVal = drainer.EssDrain(); if (toDrain.Perks.HasPerk(PerksTypes.EssenceFlow)) { returnVal += PerkEffects.EssenecePerks.EssFlow.GetExtraDrained(toDrain.Perks); } return(returnVal); }