public override bool Check(Pawn observer, Pawn assessed) { return(ModHooks.UsingDubsHygiene() && assessed.needs.AllNeeds.Any <Need>(x => x.def.defName == "Hygiene")); }
public override float Calculate(Pawn observer, Pawn assessed) { return(Mathf.Clamp01(Mathf.Lerp(maxFilthPenalty, 1f, Mathf.Clamp01(Mathf.InverseLerp(filthMax, filthMin, ModHooks.GetHygieneNeed(assessed)))))); }
public override bool Check(Pawn observer, Pawn assessed) { return(ModHooks.UsingDubsHygiene()); }