var user = message.Session.AttachedEntity;
var maybeContainer = _itemSlotsSystem.GetItemOrNull(chemMaster, SharedChemMaster.OutputSlotName);
if (maybeContainer is not { Valid: true } container
- || !TryComp(container, out StorageComponent? storage)
- || storage.Container is null)
+ || !TryComp(container, out StorageComponent? storage))
{
return; // output can't fit pills
}
// Ensure the number is valid.
- if (message.Number == 0 || _storageSystem.HasSpace((chemMaster, storage)))
+ if (message.Number == 0 || !_storageSystem.HasSpace((container, storage)))
return;
// Ensure the amount is valid.
name: syndicate hardsuit bundle
description: "Contains the Syndicate's signature blood red hardsuit."
components:
+ - type: Storage
+ maxItemSize: Huge
+ whitelist: #to snub 'dem metagamers
+ components:
+ - Clothing
- type: StorageFill
contents:
- id: ClothingOuterHardsuitSyndie
id: ClothingOuterBaseLarge
components:
- type: Item
- size: Normal
+ size: Large
- type: Clothing
slots:
- outerClothing
parent: ClothingOuterBase
id: ClothingOuterStorageBase
components:
- - type: Item
- size: Normal
- type: Storage
maxSlots: 3
- type: ContainerContainer
walkModifier: 0.4
sprintModifier: 0.6
- type: Item
- size: Large
+ size: Huge
- type: Armor
modifiers:
coefficients:
walkModifier: 0.8
sprintModifier: 0.8
- type: Item
- size: Normal
+ size: Large
- type: entity
parent: ClothingOuterBase
id: ClothingOuterBaseMedium
components:
- type: Item
- size: Normal
+ size: Large
- type: Clothing
slots:
- outerClothing