public override void CompTick()
 {
     base.CompTick();
     if (this.geyser == null)
     {
         this.geyser = (Building_SteamGeyser)Find.ThingGrid.ThingAt(this.parent.Position, ThingDefOf.SteamGeyser);
     }
     if (this.geyser != null)
     {
         this.geyser.harvester = (Building)this.parent;
         this.steamSprayer.SteamSprayerTick();
     }
     base.PowerOutput = steamPower;
 }
Пример #2
0
 public override void CompTick()
 {
     base.CompTick();
     //try to set geyser
     if (geyser == null)
     {
         geyser = (Building_SteamGeyser)parent.Map.thingGrid.ThingAt(parent.Position, ThingDefOf.SteamGeyser);
     }
     //run as long as geyser is found
     if (geyser != null)
     {
         geyser.harvester = (Building)parent;
         steamSprayer.SteamSprayerTick();
     }
 }
 public static bool GeyserSpawnSetup_PreFix(Map map, bool respawningAfterLoad, Building_SteamGeyser __instance)
 {
     //if (map.Biome.defName == "Cavern"){
     //    __instance.Graphic
     //}
     return(true);
 }