예제 #1
0
        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));
        }
예제 #2
0
 public static float GetMaturity(Pawn pawn)
 {
     return(GradualRomanceMod.GetMaturityCurveFor(pawn).Evaluate(pawn.ageTracker.AgeBiologicalYearsFloat));
 }