/// 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);
}
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));
}
}
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;
id: CrateLivestock
name: livestock crate
components:
+ - type: EntityStorage
+ air:
+ volume: 800
- type: Sprite
sprite: Structures/Storage/Crates/livestock.rsi
layers: