コード例 #1
0
        static List <float> ScoresForPawn(Pawn pawn)
        {
            var wornApparelScores = new List <float>();

            for (int i = 0; i < pawn.apparel.WornApparel.Count; i++)
            {
                wornApparelScores.Add(OutfittedMod.ApparelScoreRaw(pawn, pawn.apparel.WornApparel[i]));
            }
            return(wornApparelScores);
        }
コード例 #2
0
        static bool Prefix(Pawn pawn, Apparel ap, out float __result, NeededWarmth ___neededWarmth)
        {
            //if (pawn == null) {
            //    __result = float.NaN;

            //    return true;
            //}

            __result = OutfittedMod.ApparelScoreRaw(pawn, ap, ___neededWarmth);

            return(false);
        }