* Creates TemperatureDamageThresholdsComponent * Obsolete TemperatureComponent fields * Use TemperatureDamageThresholdsComponent Moves all the uses of the relocated TemperatureComponent fields to use the TDTC versions * Removes the obsolete TemperatureComponent fields * Update YAML definitions * Update doc comments * Split TemperatureSystem Creates TemperatureDamageSystem and moves the damage handling from TemperatureSystem * Cull unused using statements * Use component-based damage tick scheduling * Fix temperature damage processing Check was inverted resulting in things never starting to take temperature damage * Poke tests * Add TemperatureDamageThresholds to new prototypes * Move TemperatureDamageThresholdsComponent to Shared Parity with TemperatureComponent * While I'm here Fixes warning regarding obsolete ProtoId validator attribute * Fix YAML errors * Fix merge errors * Rename TemperatureDamageThresholdsComponent -> TemperatureDamageComponent * Use ContentHelpers.RoundToLevels for temperature alerts * Fix YML * A fuckton of cleanup * working cleanup * fix * misc additions --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
29 lines
880 B
C#
29 lines
880 B
C#
using Content.Shared.Atmos;
|
|
|
|
namespace Content.Shared.Temperature.Components;
|
|
|
|
/// <summary>
|
|
/// Handles changing temperature,
|
|
/// informing others of the current temperature.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class TemperatureComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Surface temperature which is modified by the environment.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float CurrentTemperature = Atmospherics.T20C;
|
|
|
|
/// <summary>
|
|
/// Heat capacity per kg of mass.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float SpecificHeat = 50f;
|
|
|
|
/// <summary>
|
|
/// How well does the air surrounding you merge into your body temperature?
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float AtmosTemperatureTransferEfficiency = 0.1f;
|
|
}
|