Esempio n. 1
0
 static void Postfix(ThingWithComps __instance)
 {
     if (__instance is Pawn)
     {
         MultiplayerPawnComp comp = new MultiplayerPawnComp()
         {
             parent = __instance
         };
         __instance.AllComps.Add(comp);
     }
 }
Esempio n. 2
0
        static void Postfix(Pawn_NeedsTracker __instance)
        {
            MultiplayerPawnComp comp = __instance.pawn.GetComp <MultiplayerPawnComp>();

            if (__instance.mood == null)
            {
                comp.thoughtsForInterface = null;
            }
            else
            {
                SituationalThoughtHandler thoughts = new SituationalThoughtHandler(__instance.pawn);
                comp.thoughtsForInterface = thoughts;
            }
        }