Files
tbd-station-14/Content.Server/Spawners/Components/RandomSpawnerComponent.cs
Ed b3b64e6cf2 The glowing forest anomaly (#24351)
* sans

* Papyrus

* add to game

* tweak stick

* fixes

* Update Resources/Prototypes/Entities/Objects/Misc/kudzu.yml

Co-authored-by: Kara <lunarautomaton6@gmail.com>

* Update Resources/Prototypes/Entities/Structures/Specific/Anomaly/anomalies.yml

Co-authored-by: Kara <lunarautomaton6@gmail.com>

---------

Co-authored-by: Kara <lunarautomaton6@gmail.com>
2024-01-20 17:31:12 -08:00

24 lines
645 B
C#

using Robust.Shared.Prototypes;
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;
}
}