Ice anomaly (#15925)
Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user