Add filled toolbelt variant for easy engineering (#458)
* Add filled toolbelt variant for easy engineering * Petty newline
This commit is contained in:
committed by
Pieter-Jan Briers
parent
3a7a3a89ba
commit
421847e9d3
@@ -0,0 +1,36 @@
|
||||
using Robust.Server.Interfaces.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Interfaces.GameObjects;
|
||||
using Robust.Shared.Interfaces.Random;
|
||||
using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.GameObjects.Components.Items.Storage.Fill
|
||||
{
|
||||
[RegisterComponent]
|
||||
internal sealed class UtilityBeltClothingFillComponent : Component, IMapInit
|
||||
{
|
||||
public override string Name => "UtilityBeltClothingFill";
|
||||
|
||||
#pragma warning disable 649
|
||||
[Dependency] private readonly IEntityManager _entityManager;
|
||||
#pragma warning restore 649
|
||||
|
||||
void IMapInit.MapInit()
|
||||
{
|
||||
var storage = Owner.GetComponent<IStorageComponent>();
|
||||
|
||||
void Spawn(string prototype)
|
||||
{
|
||||
storage.Insert(_entityManager.SpawnEntity(prototype));
|
||||
}
|
||||
|
||||
Spawn("Crowbar");
|
||||
Spawn("Wrench");
|
||||
Spawn("Screwdriver");
|
||||
Spawn("Wirecutter");
|
||||
Spawn("Welder");
|
||||
Spawn("Multitool");
|
||||
Spawn("CableStack");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user