Entity storage air capacity changes (#14734)

This commit is contained in:
Kara
2023-03-18 17:56:38 -07:00
committed by GitHub
parent fff00dd25f
commit 7995817c80
4 changed files with 6 additions and 3 deletions

View File

@@ -12,5 +12,6 @@ public sealed class EntityStorageComponent : SharedEntityStorageComponent, IGasM
/// None while open. Grabs gas from the atmosphere when closed, and exposes any entities inside to it.
/// </summary>
[ViewVariables(VVAccess.ReadWrite)]
public GasMixture Air { get; set; } = new (GasMixVolume);
[DataField("air")]
public GasMixture Air { get; set; } = new (200);
}

View File

@@ -77,7 +77,7 @@ public sealed class EntityStorageSystem : SharedEntityStorageSystem
if (tile != null && _atmos.GetTileMixture(tile.Value.GridUid, null, tile.Value.GridIndices, true) is {} environment)
{
_atmos.Merge(serverComp.Air, environment.RemoveVolume(SharedEntityStorageComponent.GasMixVolume));
_atmos.Merge(serverComp.Air, environment.RemoveVolume(serverComp.Air.Volume));
}
}

View File

@@ -11,7 +11,6 @@ namespace Content.Shared.Storage.Components;
public abstract class SharedEntityStorageComponent : Component
{
public readonly float MaxSize = 1.0f; // maximum width or height of an entity allowed inside the storage.
public const float GasMixVolume = 70f;
public static readonly TimeSpan InternalOpenAttemptDelay = TimeSpan.FromSeconds(0.5);
public TimeSpan LastInternalOpenAttempt;

View File

@@ -240,6 +240,9 @@
id: CrateLivestock
name: livestock crate
components:
- type: EntityStorage
air:
volume: 800
- type: Sprite
sprite: Structures/Storage/Crates/livestock.rsi
layers: