ServerStorage yaml case fix

This commit is contained in:
py01
2020-07-18 19:37:17 -06:00
parent 72a5a3f3fd
commit e33caaddea
7 changed files with 10 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage
private bool _storageInitialCalculated;
private int _storageUsed;
private int _storageCapacityMax = 10000;
private int _storageCapacityMax;
public readonly HashSet<IPlayerSession> SubscribedSessions = new HashSet<IPlayerSession>();
public IReadOnlyCollection<IEntity>? StoredEntities => _storage?.ContainedEntities;
@@ -320,7 +320,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage
{
base.ExposeData(serializer);
serializer.DataField(ref _storageCapacityMax, "Capacity", 10000);
serializer.DataField(ref _storageCapacityMax, "capacity", 10000);
//serializer.DataField(ref StorageUsed, "used", 0);
}

View File

@@ -35,7 +35,7 @@
mass: 25
Anchored: false
- type: EntityStorage
Capacity: 60
capacity: 60
CanWeldShut: false
- type: PlaceableSurface
- type: Damageable

View File

@@ -18,7 +18,7 @@
sprite: Clothing/Back/Backpacks/backpack.rsi
HeldPrefix: backpack
- type: Storage
Capacity: 100
capacity: 100
- type: entity
parent: BackpackClothing
@@ -131,7 +131,7 @@
sprite: Clothing/Back/Satchels/satchel.rsi
ClothingPrefix: satchel
- type: Storage
Capacity: 300
capacity: 300
- type: entity
parent: BackpackClothing

View File

@@ -23,7 +23,7 @@
QuickEquip: false
sprite: Clothing/Belt/belt_utility.rsi
- type: Storage
Capacity: 40 # Full tool loadout is 35, plus an extra
capacity: 40 # Full tool loadout is 35, plus an extra
- type: entity
id: UtilityBeltClothingFilled

View File

@@ -1,4 +1,4 @@
- type: entity
- type: entity
parent: BaseItem
id: TrashBase
description: This is rubbish.
@@ -180,7 +180,7 @@
- type: Icon
sprite: Objects/Consumable/Trash/trashbag.rsi
- type: Storage
Capacity: 125
capacity: 125
- type: entity
name: tray (trash)

View File

@@ -9,7 +9,7 @@
- type: Icon
texture: Objects/Specific/Medical/medkit_r.png
- type: Storage
Capacity: 60
capacity: 60
- type: Item
size: 9999

View File

@@ -4,7 +4,7 @@
abstract: true
components:
- type: Storage
Capacity: 60
capacity: 60
- type: Item
size: 9999
- type: ItemCooldown