Files
Delta-v/Content.Server/_DV/StationEvents/Components/RandomMultipleSpawnRuleComponent.cs
T
No Elkaandpre-commit-ci[bot] 737558289b Make cult less obvious on earlier stages (#4179)
* Random rift spawn

* Change announcements

* Tweak timers

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Do in fact use ProtoId

* Revert "Do in fact use ProtoId"

This reverts commit cdc0972cac.

* Actually add the event into the pool

* Remove ancient code

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-08-14 09:57:13 +00:00

30 lines
811 B
C#

using Content.Server.StationEvents.Events;
using Robust.Shared.Prototypes;
namespace Content.Server._DV.StationEvents.Components;
/// <summary>
/// Spawns a random amount of entities at a random tile on a station using TryGetRandomTile.
/// </summary>
[RegisterComponent, Access(typeof(RandomSpawnRule))]
public sealed partial class RandomMultipleSpawnRuleComponent : Component
{
/// <summary>
/// The entity to be spawned.
/// </summary>
[DataField(required: true)]
public EntProtoId Prototype = string.Empty;
/// <summary>
/// The minimum amount of entities to be spawned.
/// </summary>
[DataField]
public int MinAmount = 1;
/// <summary>
/// The maximum amount of entities to be spawned.
/// </summary>
[DataField]
public int MaxAmount = 1;
}