rotting meat (#18515)
Co-authored-by: deltanedas <@deltanedas:kde.org> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
26
Content.Shared/Atmos/Miasma/RotIntoComponent.cs
Normal file
26
Content.Shared/Atmos/Miasma/RotIntoComponent.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Shared.Atmos.Miasma;
|
||||
|
||||
/// <summary>
|
||||
/// Lets an entity rot into another entity.
|
||||
/// Used by raw meat to turn into rotten meat.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public sealed class RotIntoComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Entity to rot into.
|
||||
/// </summary>
|
||||
[DataField("entity", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>)), ViewVariables(VVAccess.ReadWrite)]
|
||||
public string Entity = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Rotting stage to turn at, this is a multiplier of the total rot time.
|
||||
/// 0 = rotting, 1 = bloated, 2 = extremely bloated
|
||||
/// </summary>
|
||||
[DataField("stage"), ViewVariables(VVAccess.ReadWrite)]
|
||||
public int Stage;
|
||||
}
|
||||
Reference in New Issue
Block a user