Skip to content

Commit

Permalink
Some mild item size balancing + fixes (space-wizards#21250)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmoGarbage404 authored Oct 26, 2023
1 parent 7a08a4e commit 81f5e34
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
5 changes: 2 additions & 3 deletions Content.Server/Chemistry/EntitySystems/ChemMasterSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,13 @@ private void OnCreatePillsMessage(Entity<ChemMasterComponent> chemMaster, ref Ch
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.
Expand Down
5 changes: 5 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Backpacks/duffelbag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,11 @@
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
Expand Down
9 changes: 8 additions & 1 deletion Resources/Prototypes/Catalog/Fills/Items/toolboxes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,16 @@
suffix: Filled
parent: ToolboxSyndicate
components:
- type: Storage
maxSlots: 8
- type: StorageFill
contents:
- id: ClothingBeltUtilityEngineering
- id: Crowbar
- id: Wrench
- id: Screwdriver
- id: Wirecutter
- id: Welder
- id: Multitool
- id: ClothingHandsGlovesCombat
- id: ClothingMaskGasSyndicate

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
maxSlots: 7
maxItemSize: Normal
- type: Item
size: Large
size: Huge
- type: ContainerContainer
containers:
storagebase: !type:Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
id: ClothingOuterBaseLarge
components:
- type: Item
size: Normal
size: Large
- type: Clothing
slots:
- outerClothing
Expand All @@ -28,8 +28,6 @@
parent: ClothingOuterBase
id: ClothingOuterStorageBase
components:
- type: Item
size: Normal
- type: Storage
maxSlots: 3
- type: ContainerContainer
Expand Down Expand Up @@ -72,7 +70,7 @@
walkModifier: 0.4
sprintModifier: 0.6
- type: Item
size: Large
size: Huge
- type: Armor
modifiers:
coefficients:
Expand Down Expand Up @@ -107,7 +105,7 @@
walkModifier: 0.8
sprintModifier: 0.8
- type: Item
size: Normal
size: Large

- type: entity
parent: ClothingOuterBase
Expand All @@ -130,7 +128,7 @@
id: ClothingOuterBaseMedium
components:
- type: Item
size: Normal
size: Large
- type: Clothing
slots:
- outerClothing
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
- type: Item
size: Huge
- type: Storage
maxSlots: 12
maxSlots: 5
maxItemSize: Normal
quickInsert: true
areaInsert: true
Expand Down

0 comments on commit 81f5e34

Please sign in to comment.