private static void PushHeatNeg1000() { foreach (IntVec3 allCell in Find.CurrentMap.AllCells) { _ = allCell; GenTemperature.PushHeat(UI.MouseCell(), Find.CurrentMap, -1000f); } }
public override void CompTickRare() { base.CompTickRare(); if (this.ShouldPushHeatNow) { GenTemperature.PushHeat(this.parent.PositionHeld, this.parent.MapHeld, this.Props.heatPerSecond * 4.16666651f); } }
public override void CompTick() { base.CompTick(); if (this.parent.IsHashIntervalTick(60) && this.ShouldPushHeatNow) { GenTemperature.PushHeat(this.parent.PositionHeld, this.parent.MapHeld, this.Props.heatPerSecond); } }
public static void PushHeat(Thing t, float energy) { IntVec3 c = default(IntVec3); if (t.GetRoomGroup() != null) { GenTemperature.PushHeat(t.Position, t.Map, energy); } else if (GenAdj.TryFindRandomAdjacentCell8WayWithRoomGroup(t, out c)) { GenTemperature.PushHeat(c, t.Map, energy); } }
public override void CompTick() { base.CompTick(); if (this.parent.IsHashIntervalTick(60) && this.ShouldPushHeatNow) { CompProperties_HeatPusher props = this.Props; float ambientTemperature = this.parent.AmbientTemperature; if (ambientTemperature < props.heatPushMaxTemperature && ambientTemperature > props.heatPushMinTemperature) { GenTemperature.PushHeat(this.parent.Position, this.parent.Map, props.heatPerSecond); } } }
public virtual void ExplosionStart(Explosion explosion, List <IntVec3> cellsToAffect) { if (this.def.explosionHeatEnergyPerCell > 1.401298E-45f) { GenTemperature.PushHeat(explosion.Position, explosion.Map, this.def.explosionHeatEnergyPerCell * (float)cellsToAffect.Count); } MoteMaker.MakeStaticMote(explosion.Position, explosion.Map, ThingDefOf.Mote_ExplosionFlash, explosion.radius * 6f); if (explosion.Map == Find.CurrentMap) { float magnitude = (explosion.Position.ToVector3Shifted() - Find.Camera.transform.position).magnitude; Find.CameraDriver.shaker.DoShake(4f * explosion.radius / magnitude); } this.ExplosionVisualEffectCenter(explosion); }