Entity storage air capacity changes (#14734)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -240,6 +240,9 @@
|
||||
id: CrateLivestock
|
||||
name: livestock crate
|
||||
components:
|
||||
- type: EntityStorage
|
||||
air:
|
||||
volume: 800
|
||||
- type: Sprite
|
||||
sprite: Structures/Storage/Crates/livestock.rsi
|
||||
layers:
|
||||
|
||||
Reference in New Issue
Block a user