using Robust.Shared.Prototypes; namespace Content.Server.Spawners.Components { [RegisterComponent, EntityCategory("Spawner")] public sealed partial class RandomSpawnerComponent : ConditionalSpawnerComponent { /// /// A list of rarer entities that can spawn with the RareChance /// instead of one of the entities in the Prototypes list. /// [ViewVariables(VVAccess.ReadWrite)] [DataField] public List RarePrototypes { get; set; } = new(); /// /// The chance that a rare prototype may spawn instead of a common prototype /// [ViewVariables(VVAccess.ReadWrite)] [DataField] public float RareChance { get; set; } = 0.05f; /// /// Scatter of entity spawn coordinates /// [ViewVariables(VVAccess.ReadWrite)] [DataField] public float Offset { get; set; } = 0.2f; /// /// A variable meaning whether the spawn will /// be able to be used again or whether /// it will be destroyed after the first use /// [DataField] public bool DeleteSpawnerAfterSpawn = true; } }