More xeno artifacts effects (#6282)

This commit is contained in:
Alex Evgrashin
2022-02-07 05:26:10 +03:00
committed by GitHub
parent be7a770b78
commit 617f92df65
15 changed files with 299 additions and 23 deletions

View File

@@ -0,0 +1,23 @@
using Content.Shared.Atmos;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
/// <summary>
/// Change atmospherics temperature until it reach target.
/// </summary>
[RegisterComponent]
public class TemperatureArtifactComponent : Component
{
public override string Name => "TemperatureArtifact";
[DataField("targetTemp")]
public float TargetTemperature = Atmospherics.T0C;
[DataField("spawnTemp")]
public float SpawnTemperature = 100;
[DataField("maxTempDif")]
public float MaxTemperatureDifference = 1;
}