mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* 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>
30 lines
811 B
C#
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;
|
|
}
|