Revert "Slight changes to spawners (#3605)" (#3624)

This reverts commit a47e1b817c.
This commit is contained in:
metalgearsloth
2021-03-12 20:22:33 +11:00
committed by GitHub
parent e80b4fc459
commit 8c01d9d9dc
91 changed files with 775 additions and 529 deletions

View File

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