public override void Tick() { if (harvester == null) { steamSprayer.SteamSprayerTick(); } }
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(); } }