Stasis bed cleanup and bugfixes. (#38762)
* Stasis bed sent to shed * Code Review * Code Review 2
This commit is contained in:
@@ -37,6 +37,18 @@ public sealed partial class BloodstreamComponent : Component
|
||||
[DataField, AutoNetworkedField]
|
||||
public TimeSpan UpdateInterval = TimeSpan.FromSeconds(3);
|
||||
|
||||
/// <summary>
|
||||
/// Multiplier applied to <see cref="UpdateInterval"/> for adjusting based on metabolic rate multiplier.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public float UpdateIntervalMultiplier = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// Adjusted update interval based off of the multiplier value.
|
||||
/// </summary>
|
||||
[ViewVariables]
|
||||
public TimeSpan AdjustedUpdateInterval => UpdateInterval * UpdateIntervalMultiplier;
|
||||
|
||||
/// <summary>
|
||||
/// How much is this entity currently bleeding?
|
||||
/// Higher numbers mean more blood lost every tick.
|
||||
|
||||
Reference in New Issue
Block a user