Exemplo n.º 1
0
        public static bool Vamp_BedsForTheUndead(Pawn_Ownership __instance, Building_Bed newBed)
        {
            Pawn pawn = (Pawn)AccessTools.Field(typeof(Pawn_Ownership), "pawn").GetValue(__instance);

            if (pawn != null && !pawn.IsVampire() && newBed.IsVampireBed())
            {
                return(false);
            }

            return(true);
        }