Ejemplo n.º 1
0
 static void Postfix(DateFile __instance, int gangId, int partId, int fatherId, int motherId, int __result)
 {
     if (!Main.enabled || !Main.settings.lunhuiAdvanced)
     {
         return;
     }
     if (__instance.deadActors.Count > 0 && fatherId == 0 && motherId == 0)
     {
         int        num32 = __instance.deadActors[UnityEngine.Random.Range(0, __instance.deadActors.Count)];
         List <int> value = new List <int>(__instance.GetLifeDateList(num32, 801, false))
         {
             num32
         };
         __instance.actorLife[__result].Add(801, value);
         if (__instance.GetActorFavor(false, __instance.MianActorID(), num32, false, false) >= 30000)
         {
             UIDate.instance.changTrunEvents.Add(new int[]
             {
                 239,
                 num32,
                 partId
             });
         }
         __instance.deadActors.Remove(num32);
     }
 }