Esempio n. 1
0
 public override void SubEffectTick(TargetInfo A, TargetInfo B)
 {
     if (this.interactMote == null)
     {
         this.interactMote = MoteMaker.MakeInteractionOverlay(this.def.moteDef, A, B);
     }
 }
 public override void SubEffectTick(TargetInfo A, TargetInfo B)
 {
     if (this.mote == null)
     {
         this.mote = (MoteProgressBar)MoteMaker.MakeInteractionOverlay(this.def.moteDef, A, B);
         this.mote.exactScale.x = 0.68f;
         this.mote.exactScale.z = 0.12f;
     }
 }
        public override void Notify_EntropyGained(float baseAmount, float finalAmount, Thing source = null)
        {
            base.Notify_EntropyGained(baseAmount, finalAmount, source);
            HediffComp_Link hediffComp_Link = parent.TryGetComp <HediffComp_Link>();

            if (hediffComp_Link != null && hediffComp_Link.other != source && hediffComp_Link.other.psychicEntropy != null)
            {
                hediffComp_Link.other.psychicEntropy.TryAddEntropy(baseAmount * Props.entropyTransferAmount, parent.pawn, scale: false);
                MoteMaker.MakeInteractionOverlay(ThingDefOf.Mote_PsychicLinkPulse, parent.pawn, hediffComp_Link.other);
            }
        }
Esempio n. 4
0
 public override void CompPostTick(ref float severityAdjustment)
 {
     base.CompPostTick(ref severityAdjustment);
     if (drawConnection)
     {
         if (mote == null)
         {
             mote = MoteMaker.MakeInteractionOverlay(ThingDefOf.Mote_PsychicLinkLine, parent.pawn, other);
         }
         mote.Maintain();
     }
 }