2022-01-31 17:36:49 +11:00
|
|
|
using Robust.Shared.Prototypes;
|
2020-07-11 16:49:54 -05:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Spawners.Components
|
2020-07-11 16:49:54 -05:00
|
|
|
{
|
2022-02-08 00:42:49 -08:00
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class RandomSpawnerComponent : ConditionalSpawnerComponent
|
2020-07-11 16:49:54 -05:00
|
|
|
{
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2024-01-21 04:31:12 +03:00
|
|
|
[DataField]
|
|
|
|
|
public List<EntProtoId> RarePrototypes { get; set; } = new();
|
2020-07-11 16:49:54 -05:00
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2024-01-21 04:31:12 +03:00
|
|
|
[DataField]
|
2020-07-11 16:49:54 -05:00
|
|
|
public float RareChance { get; set; } = 0.05f;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2024-01-21 04:31:12 +03:00
|
|
|
[DataField]
|
2020-07-11 16:49:54 -05:00
|
|
|
public float Offset { get; set; } = 0.2f;
|
2024-01-21 04:31:12 +03:00
|
|
|
|
|
|
|
|
[DataField]
|
|
|
|
|
public bool DeleteSpawnerAfterSpawn = true;
|
2020-07-11 16:49:54 -05:00
|
|
|
}
|
|
|
|
|
}
|