Make PowerCellDraw not tick dependent, buff anomaly locator power drain (#15719)

This commit is contained in:
Nemanja
2023-04-23 23:35:19 -04:00
committed by GitHub
parent 19b3994d9a
commit 94e26d6c31
3 changed files with 30 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Server.PowerCell;
/// <summary>
@@ -22,4 +24,10 @@ public sealed class PowerCellDrawComponent : Component
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("useRate")]
public float UseRate = 0f;
/// <summary>
/// When the next automatic power draw will occur
/// </summary>
[DataField("nextUpdate", customTypeSerializer: typeof(TimeOffsetSerializer))]
public TimeSpan NextUpdateTime;
}