Add slowdown to low temperatures (#29692)
* TemperatureSpeed component * temperature slowdown prediction (done right) * remove unnecessary changes * that too * get in line * make it readonly * auto pause
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Content.Server.Temperature.Systems;
|
||||
using Content.Shared.Alert;
|
||||
using Content.Shared.Atmos;
|
||||
using Content.Shared.Damage;
|
||||
@@ -51,15 +50,6 @@ public sealed partial class TemperatureComponent : Component
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public float AtmosTemperatureTransferEfficiency = 0.1f;
|
||||
|
||||
[Obsolete("Use system method")]
|
||||
public float HeatCapacity
|
||||
{
|
||||
get
|
||||
{
|
||||
return IoCManager.Resolve<IEntityManager>().System<TemperatureSystem>().GetHeatCapacity(Owner, this);
|
||||
}
|
||||
}
|
||||
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public DamageSpecifier ColdDamage = new();
|
||||
|
||||
@@ -71,7 +61,7 @@ public sealed partial class TemperatureComponent : Component
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Okay it genuinely reaches this basically immediately for a plasma fire.
|
||||
/// </summary>
|
||||
/// </remarks>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public FixedPoint2 DamageCap = FixedPoint2.New(8);
|
||||
|
||||
@@ -79,7 +69,7 @@ public sealed partial class TemperatureComponent : Component
|
||||
/// Used to keep track of when damage starts/stops. Useful for logs.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool TakingDamage = false;
|
||||
public bool TakingDamage;
|
||||
|
||||
[DataField]
|
||||
public ProtoId<AlertPrototype> HotAlert = "Hot";
|
||||
|
||||
Reference in New Issue
Block a user