Puddles & spreader refactor (#15191)
This commit is contained in:
22
Content.Server/Spreader/GrowingKudzuComponent.cs
Normal file
22
Content.Server/Spreader/GrowingKudzuComponent.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
||||
|
||||
namespace Content.Server.Spreader;
|
||||
|
||||
[RegisterComponent, Access(typeof(KudzuSystem))]
|
||||
public sealed class GrowingKudzuComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// At level 3 spreading can occur; prior to that we have a chance of increasing our growth level and changing our sprite.
|
||||
/// </summary>
|
||||
[DataField("growthLevel")]
|
||||
public int GrowthLevel = 1;
|
||||
|
||||
[DataField("growthTickChance")]
|
||||
public float GrowthTickChance = 1f;
|
||||
|
||||
/// <summary>
|
||||
/// The next time kudzu will try to tick its growth level.
|
||||
/// </summary>
|
||||
[DataField("nextTick", customTypeSerializer:typeof(TimeOffsetSerializer))]
|
||||
public TimeSpan NextTick = TimeSpan.Zero;
|
||||
}
|
||||
Reference in New Issue
Block a user