Slight changes to spawners (#3605)

* Initial

* Done

* Ye

* Removes mouse spawns for now

* I'm an idiot!
This commit is contained in:
Swept
2021-03-12 08:43:55 +00:00
committed by GitHub
parent 25079ecab6
commit a47e1b817c
91 changed files with 534 additions and 780 deletions

View File

@@ -5,18 +5,17 @@ using Robust.Shared.Log;
using Robust.Shared.Maths;
using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Robust.Shared.Serialization;
using Robust.Shared.Serialization.Manager.Attributes;
using Robust.Shared.ViewVariables;
namespace Content.Server.GameObjects.Components.Markers
{
[RegisterComponent]
public class TrashSpawnerComponent : ConditionalSpawnerComponent
public class RandomSpawnerComponent : ConditionalSpawnerComponent
{
[Dependency] private readonly IRobustRandom _robustRandom = default!;
public override string Name => "TrashSpawner";
public override string Name => "RandomSpawner";
[ViewVariables(VVAccess.ReadWrite)]
[DataField("rarePrototypes")]
@@ -45,7 +44,7 @@ namespace Content.Server.GameObjects.Components.Markers
if (Prototypes.Count == 0)
{
Logger.Warning($"Prototype list in TrashSpawnComponent is empty! Entity: {Owner}");
Logger.Warning($"Prototype list in RandomSpawnerComponent is empty! Entity: {Owner}");
return;
}