diff --git a/Content.Server/GameObjects/Components/Items/Storage/Fill/UtilityBeltClothingFillComponent.cs b/Content.Server/GameObjects/Components/Items/Storage/Fill/UtilityBeltClothingFillComponent.cs new file mode 100644 index 0000000000..1113f0cfa6 --- /dev/null +++ b/Content.Server/GameObjects/Components/Items/Storage/Fill/UtilityBeltClothingFillComponent.cs @@ -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(); + + void Spawn(string prototype) + { + storage.Insert(_entityManager.SpawnEntity(prototype)); + } + + Spawn("Crowbar"); + Spawn("Wrench"); + Spawn("Screwdriver"); + Spawn("Wirecutter"); + Spawn("Welder"); + Spawn("Multitool"); + Spawn("CableStack"); + } + } +} diff --git a/Resources/Maps/stationstation.yml b/Resources/Maps/stationstation.yml index 7b60000d1a..c055016cba 100644 --- a/Resources/Maps/stationstation.yml +++ b/Resources/Maps/stationstation.yml @@ -3049,7 +3049,7 @@ entities: mask: 5 bounds: -0.25,-0.25,0.25,0.25 type: Collidable -- type: UtilityBeltClothing +- type: UtilityBeltClothingFilled uid: 260 components: - grid: 0 @@ -3067,7 +3067,7 @@ entities: entities: [] type: Robust.Server.GameObjects.Components.Container.Container type: ContainerContainer -- type: UtilityBeltClothing +- type: UtilityBeltClothingFilled uid: 261 components: - grid: 0 diff --git a/Resources/Prototypes/Entities/items/clothing/belts.yml b/Resources/Prototypes/Entities/items/clothing/belts.yml index b023279c80..b2423d740e 100644 --- a/Resources/Prototypes/Entities/items/clothing/belts.yml +++ b/Resources/Prototypes/Entities/items/clothing/belts.yml @@ -20,7 +20,14 @@ sprite: Clothing/belt_utility.rsi state: utilitybelt - type: Clothing - Size: 30 + Size: 50 sprite: Clothing/belt_utility.rsi - type: Storage - Capacity: 30 + Capacity: 40 # Full tool loadout is 35, plus an extra + +- type: entity + id: UtilityBeltClothingFilled + parent: UtilityBeltClothing + components: + - type: UtilityBeltClothingFill + \ No newline at end of file