Files
tbd-station-14/Content.Shared/Salvage/Expeditions/Modifiers/SalvageAirMod.cs
DrSmugleaf 00826aaad6 Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out (#37959)
* Replace usages of customTypeSerializer PrototypeIdListSerializer with something that doesn't take 20 separate words to type out

* Missed one

* Missed another

* Fix data field ids
2025-07-10 05:06:51 +02:00

41 lines
1.2 KiB
C#

using Content.Shared.Atmos;
using Robust.Shared.Prototypes;
namespace Content.Shared.Salvage.Expeditions.Modifiers;
/// <summary>
/// Prototype for a planet's air gas mixture.
/// Used when creating the planet for a salvage expedition.
/// Which one is selected depends on the mission difficulty, different weightedRandoms are picked from.
/// </summary>
[Prototype("salvageAirMod")]
public sealed partial class SalvageAirMod : IPrototype, IBiomeSpecificMod
{
[IdDataField]
public string ID { get; private set; } = default!;
/// <inheritdoc/>
[DataField("desc")]
public LocId Description { get; private set; } = string.Empty;
/// <inheritdoc/>
[DataField("cost")]
public float Cost { get; private set; } = 0f;
/// <inheritdoc/>
[DataField]
public List<ProtoId<SalvageBiomeModPrototype>>? Biomes { get; private set; } = null;
/// <summary>
/// Set to true if this planet will have no atmosphere.
/// </summary>
[DataField("space")]
public bool Space;
/// <summary>
/// Number of moles of each gas in the mixture.
/// </summary>
[DataField("gases")]
public float[] Gases = new float[Atmospherics.AdjustedNumberOfGases];
}