changing accumulators to timespan targets (#12407)
* changing accumulators to timespan targets * Update Content.Server/Abilities/Mime/MimePowersSystem.cs Co-authored-by: 0x6273 <0x40@keemail.me> * Update MimePowersSystem.cs * serializing timespans and adding pausetime where applicable * remove nullable Co-authored-by: CommieFlowers <rasmus.cedergren@hotmail.com> Co-authored-by: 0x6273 <0x40@keemail.me>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Content.Shared.Actions.ActionTypes;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
@@ -48,16 +49,15 @@ namespace Content.Server.Abilities.Mime
|
||||
public bool ReadyToRepent = false;
|
||||
|
||||
/// <summary>
|
||||
/// Accumulator for when the mime breaks their vows
|
||||
/// Time when the mime can repent their vow
|
||||
/// </summary>
|
||||
|
||||
[DataField("accumulator")]
|
||||
public float Accumulator = 0f;
|
||||
[DataField("vowRepentTime", customTypeSerializer: typeof(TimeOffsetSerializer))]
|
||||
public TimeSpan VowRepentTime = TimeSpan.Zero;
|
||||
|
||||
/// <summary>
|
||||
/// How long it takes the mime to get their powers back
|
||||
|
||||
[DataField("vowCooldown")]
|
||||
[DataField("vowCooldown", customTypeSerializer: typeof(TimeOffsetSerializer))]
|
||||
public TimeSpan VowCooldown = TimeSpan.FromMinutes(5);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user