public override float Calculate(Pawn observer, Pawn assessed) { SimpleCurve curve = GradualRomanceMod.GetAttractivenessCurveFor(assessed); if (curve == null) { ThingDef assessedRace = assessed.def; Log.Error("NoAttractivenessCurve_error".Translate(assessedRace.defName)); return(0f); } return(curve.Evaluate(assessed.ageTracker.AgeBiologicalYearsFloat)); }
public static float GetMaturity(Pawn pawn) { return(GradualRomanceMod.GetMaturityCurveFor(pawn).Evaluate(pawn.ageTracker.AgeBiologicalYearsFloat)); }