public override void SetUpSteamVars() { base.SetUpSteamVars(); CompProperties_Steam props = base.Props; this.SteamOutput = props.baseWaterConsumption > 0f ? -1f * props.baseWaterConsumption : -1f * props.baseSteamConsumption; this.steamLastOutputted = props.baseWaterConsumption > 0f ? (props.baseWaterConsumption <= 0f) : (props.baseSteamConsumption <= 0f); }
private void StartSustainerSteamedIfInactive() { CompProperties_Steam props = base.Props; if (!props.soundAmbientSteamed.NullOrUndefined() && this.sustainerSteamed == null) { SoundInfo info = SoundInfo.InMap(this.parent, MaintenanceType.None); this.sustainerSteamed = props.soundAmbientSteamed.TrySpawnSustainer(info); } }
public static bool EverTransmitsSteam(this ThingDef def) { for (int i = 0; i < def.comps.Count; i++) { CompProperties_Steam compProperties_Steam = def.comps[i] as CompProperties_Steam; if (compProperties_Steam != null && compProperties_Steam.transmitsSteam) { return(true); } } return(false); }