From 3b0fd1fc8346198fe0ed6665077f804b3a4d48ae Mon Sep 17 00:00:00 2001 From: Two-Kay Date: Sat, 10 Dec 2022 13:01:45 +0100 Subject: [PATCH] Deleted log messages --- Source/Plushies/HarmonyPatches.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Source/Plushies/HarmonyPatches.cs b/Source/Plushies/HarmonyPatches.cs index a3dfe7a..dac3333 100644 --- a/Source/Plushies/HarmonyPatches.cs +++ b/Source/Plushies/HarmonyPatches.cs @@ -77,32 +77,24 @@ class BedThoughtsPatch { static void Postfix(Pawn actor) { - Log.Message("BedThoughtsPatch"); // These are here since it seems hard to figure out what properties in Rimworld // are actually nullable if (actor.needs == null || actor.needs.mood == null || actor.needs.mood.thoughts == null || actor.needs.mood.thoughts.memories == null) return; - Log.Message("Has memories"); - var bed = actor.CurrentBed(); if (bed == null) return; - Log.Message("Has bed"); - // This can be null in the case of a sleeping spot var comp = bed.GetComp(); if (comp == null) return; - Log.Message("Has comp"); - //var hasPlushie = comp.LinkedFacilitiesListForReading.Any(thing => thing.def.defName == "Plushie"); var hasPlushie = comp.LinkedFacilitiesListForReading.Any(thing => thing.def.defName.StartsWith("Plushie")); if (hasPlushie) { - Log.Message("Has plushie"); if (actor.story != null && actor.story.traits != null && actor.story.traits.HasTrait(TraitDefOf.Kind)) { if (!actor.ageTracker.Adult) { actor.needs.mood.thoughts.memories.TryGainMemory(PlushiesThoughtDefOf.PlushieCuddleChildKind);