public float MaxTemperature;
/// <summary>
- /// Minimum temperature the device can reach with a 0 total laser quality. Usually the quality will be at
+ /// Minimum temperature the device can reach with a 0 total capacitor quality. Usually the quality will be at
/// least 1.
/// </summary>
[DataField("baseMinTemperature")]
public float BaseMinTemperature = 96.625f; // Selected so that tier-1 parts can reach 73.15k
/// <summary>
- /// Maximum temperature the device can reach with a 0 total laser quality. Usually the quality will be at
+ /// Maximum temperature the device can reach with a 0 total capacitor quality. Usually the quality will be at
/// least 1.
/// </summary>
[DataField("baseMaxTemperature")]
private void OnGasThermoRefreshParts(EntityUid uid, GasThermoMachineComponent thermoMachine, RefreshPartsEvent args)
{
- var matterBinRating = args.PartRatings[thermoMachine.MachinePartHeatCapacity];
- var laserRating = args.PartRatings[thermoMachine.MachinePartTemperature];
+ var heatCapacityPartRating = args.PartRatings[thermoMachine.MachinePartHeatCapacity];
+ var temperatureRangePartRating = args.PartRatings[thermoMachine.MachinePartTemperature];
- thermoMachine.HeatCapacity = thermoMachine.BaseHeatCapacity * MathF.Pow(matterBinRating, 2);
+ thermoMachine.HeatCapacity = thermoMachine.BaseHeatCapacity * MathF.Pow(heatCapacityPartRating, 2);
switch (thermoMachine.Mode)
{
// 593.15K with stock parts.
case ThermoMachineMode.Heater:
- thermoMachine.MaxTemperature = thermoMachine.BaseMaxTemperature + thermoMachine.MaxTemperatureDelta * laserRating;
+ thermoMachine.MaxTemperature = thermoMachine.BaseMaxTemperature + thermoMachine.MaxTemperatureDelta * temperatureRangePartRating;
thermoMachine.MinTemperature = Atmospherics.T20C;
break;
// 73.15K with stock parts.
case ThermoMachineMode.Freezer:
thermoMachine.MinTemperature = MathF.Max(
- thermoMachine.BaseMinTemperature - thermoMachine.MinTemperatureDelta * laserRating, Atmospherics.TCMB);
+ thermoMachine.BaseMinTemperature - thermoMachine.MinTemperatureDelta * temperatureRangePartRating, Atmospherics.TCMB);
thermoMachine.MaxTemperature = Atmospherics.T20C;
break;
}
-- type: entity
+- type: entity
id: AutolatheMachineCircuitboard
parent: BaseMachineCircuitboard
name: autolathe machine board
prototype: GasThermoMachineFreezer
requirements:
MatterBin: 2
- Manipulator: 2
+ Capacitor: 2
materialRequirements:
Cable: 5
- type: Construction
prototype: GasThermoMachineHeater
requirements:
MatterBin: 2
- Manipulator: 2
+ Capacitor: 2
materialRequirements:
Cable: 5
- type: Construction