27 lines
891 B
C#
27 lines
891 B
C#
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
|
|
namespace Content.Shared.Salvage.Expeditions.Modifiers;
|
|
|
|
[Prototype("salvageTemperatureMod")]
|
|
public sealed partial class SalvageTemperatureMod : IPrototype, IBiomeSpecificMod
|
|
{
|
|
[IdDataField] public string ID { get; } = default!;
|
|
|
|
[DataField("desc")] public string Description { get; private set; } = string.Empty;
|
|
|
|
/// <inheritdoc/>
|
|
[DataField("cost")]
|
|
public float Cost { get; private set; } = 0f;
|
|
|
|
/// <inheritdoc/>
|
|
[DataField("biomes", customTypeSerializer: typeof(PrototypeIdListSerializer<SalvageBiomeModPrototype>))]
|
|
public List<string>? Biomes { get; private set; } = null;
|
|
|
|
/// <summary>
|
|
/// Temperature in the planets air mix.
|
|
/// </summary>
|
|
[DataField("temperature")]
|
|
public float Temperature = 293.15f;
|
|
}
|