Files
OldThink/Content.Server/Spawners/Components/RandomSpawnerComponent.cs

24 lines
645 B
C#
Raw Normal View History

2022-01-31 17:36:49 +11:00
using Robust.Shared.Prototypes;
2021-06-09 22:19:39 +02:00
namespace Content.Server.Spawners.Components
{
[RegisterComponent]
public sealed partial class RandomSpawnerComponent : ConditionalSpawnerComponent
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public List<EntProtoId> RarePrototypes { get; set; } = new();
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public float RareChance { get; set; } = 0.05f;
[ViewVariables(VVAccess.ReadWrite)]
[DataField]
public float Offset { get; set; } = 0.2f;
[DataField]
public bool DeleteSpawnerAfterSpawn = true;
}
}