コード例 #1
0
ファイル: RJW_Patch.cs プロジェクト: ALEXALIGHT/newcode
        public static bool Prefix(Pawn pawn, Pawn partner) // partner has v****a
        {
            if (partner.IsAnimal() && !Configurations.EnableAnimalCycle)
            {
                return(true);
            }
            HediffComp_Menstruation comp = partner.GetMenstruationComp();

            if (comp != null)
            {
                if (AndroidsCompatibility.IsAndroid(pawn) && !AndroidsCompatibility.AndroidPenisFertility(pawn))
                {
                    comp.CumIn(pawn, pawn.GetCumVolume(), 0);
                    return(false);
                }
                else
                {
                    comp.CumIn(pawn, pawn.GetCumVolume(), pawn.health.capacities.GetLevel(xxx.reproduction));
                }
                return(false);
            }
            ModLog.Message("used original rjw method: Comp missing");
            return(true);
        }
コード例 #2
0
 public override void CompPostPostRemoved()
 {
     HugsLibController.Instance.TickDelayScheduler.TryUnscheduleCallback(action);
     ModLog.Message(parent.pawn.Label + "breast tick scheduler removed");
     base.CompPostPostRemoved();
 }