public override void Tick() { if (harvester == null && this.IsHashIntervalTick(glowInterval)) { //steamSprayer.SteamSprayerTick(); GlowUtility.MakeGlowAt(Map, this.OccupiedRect().RandomCell, Rand.Range(3f, 6f)); } if (spraySustainer != null && Find.TickManager.TicksGame > this.spraySustainerStartTick + 1000) { Log.Message("Geyser spray sustainer still playing after 1000 ticks. Force-ending."); spraySustainer.End(); spraySustainer = null; } }
public override void CompTick() { base.CompTick(); if (boreHole == null) { boreHole = (Building_BetharianBoreHole)parent.Map.thingGrid.ThingAt(parent.Position, BetharianDefOf.BetharianBoreHole); } if (boreHole != null && parent.IsHashIntervalTick(Building_BetharianBoreHole.glowInterval)) { boreHole.harvester = (Building)parent; //steamSprayer.SteamSprayerTick(); GlowUtility.MakeGlowAt(boreHole.Map, boreHole.OccupiedRect().RandomCell, Rand.Range(2f, 5f)); } }