2022-05-12 22:35:13 -07:00
|
|
|
using Content.Shared.Atmos;
|
2022-02-07 05:26:10 +03:00
|
|
|
|
|
|
|
|
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Change atmospherics temperature until it reach target.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class TemperatureArtifactComponent : Component
|
2022-02-07 05:26:10 +03:00
|
|
|
{
|
2022-11-06 18:05:44 -05:00
|
|
|
[DataField("targetTemp"), ViewVariables(VVAccess.ReadWrite)]
|
2022-02-07 05:26:10 +03:00
|
|
|
public float TargetTemperature = Atmospherics.T0C;
|
|
|
|
|
|
|
|
|
|
[DataField("spawnTemp")]
|
|
|
|
|
public float SpawnTemperature = 100;
|
|
|
|
|
|
2022-02-19 22:16:49 +03:00
|
|
|
/// <summary>
|
|
|
|
|
/// If true, artifact will heat/cool not only its current tile, but surrounding tiles too.
|
|
|
|
|
/// This will change room temperature much faster.
|
|
|
|
|
/// </summary>
|
2022-11-06 18:05:44 -05:00
|
|
|
[DataField("affectAdjacent")]
|
|
|
|
|
public bool AffectAdjacentTiles = true;
|
2022-02-07 05:26:10 +03:00
|
|
|
}
|