Esempio n. 1
0
 public override void CompTick()
 {
     base.CompTick();
     if (geyser == null)
     {
         geyser = (Building_SteamGeyser)parent.Map.thingGrid.ThingAt(parent.Position, ThingDefOf.SteamGeyser);
     }
     if (geyser != null)
     {
         geyser.harvester = (Building)parent;
         steamSprayer.SteamSprayerTick();
     }
 }
Esempio n. 2
0
 public override void Tick()
 {
     if (harvester == null)
     {
         steamSprayer.SteamSprayerTick();
     }
     if (spraySustainer != null && Find.TickManager.TicksGame > spraySustainerStartTick + 1000)
     {
         Log.Message("Geyser spray sustainer still playing after 1000 ticks. Force-ending.");
         spraySustainer.End();
         spraySustainer = null;
     }
 }