29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
using Content.Shared.Maps;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
|
|
|
namespace Content.Shared.Anomaly.Effects.Components;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class TileSpawnAnomalyComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The maximum radius of tiles scales with stability
|
|
/// </summary>
|
|
[DataField("spawnRange"), ViewVariables(VVAccess.ReadWrite)]
|
|
public float SpawnRange = 5f;
|
|
|
|
/// <summary>
|
|
/// The probability a tile will spawn.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float SpawnChance = 0.33f;
|
|
|
|
/// <summary>
|
|
/// The tile that is spawned by the anomaly's effect
|
|
/// </summary>
|
|
[DataField("floorTileId", customTypeSerializer: typeof(PrototypeIdSerializer<ContentTileDefinition>)), ViewVariables(VVAccess.ReadWrite)]
|
|
public string FloorTileId = "FloorFlesh";
|
|
}
|