Ice anomaly (#15925)

Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
ThunderBear2006
2023-05-03 14:37:33 -04:00
committed by GitHub
parent d52184a561
commit 8951b9f26a
18 changed files with 472 additions and 65 deletions

View File

@@ -0,0 +1,32 @@
using Content.Shared.Explosion;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.Anomaly.Components;
[RegisterComponent]
public sealed class ExplosionAnomalyComponent : Component
{
/// <summary>
/// The explosion prototype to spawn
/// </summary>
[DataField("supercriticalExplosion", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<ExplosionPrototype>))]
public string ExplosionPrototype = default!;
/// <summary>
/// The total amount of intensity an explosion can achieve
/// </summary>
[DataField("explosionTotalIntensity")]
public float TotalIntensity = 100f;
/// <summary>
/// How quickly does the explosion's power slope? Higher = smaller area and more concentrated damage, lower = larger area and more spread out damage
/// </summary>
[DataField("explosionDropoff")]
public float Dropoff = 10f;
/// <summary>
/// How much intensity can be applied per tile?
/// </summary>
[DataField("explosionMaxTileIntensity")]
public float MaxTileIntensity = 10f;
}