Files
Delta-v/Content.Server/_DV/StationEvents/Components/GlimmerFoxfireSpawnRuleComponent.cs
T
2502a9fffe New glimmer events! Foxfire & Restyle (#5102)
* Add glimmer restyle and foxfire

* Fix typo

* Fix typo

* Fix test fail and kobold hair bug (thanks to FaintSpeaker)

* Update Content.Server/_DV/StationEvents/Events/GlimmerRestyleRule.cs

Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Signed-off-by: Astra <226853568+EmberAstra@users.noreply.github.com>

* Update Content.Server/_DV/StationEvents/Events/GlimmerRestyleRule.cs

Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Signed-off-by: Astra <226853568+EmberAstra@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update Content.Server/_DV/StationEvents/Components/GlimmerFoxfireSpawnRuleComponent.cs

Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Signed-off-by: Astra <226853568+EmberAstra@users.noreply.github.com>

* Update Content.Server/_DV/StationEvents/Components/GlimmerFoxfireSpawnRuleComponent.cs

Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Signed-off-by: Astra <226853568+EmberAstra@users.noreply.github.com>

* Update Content.Server/_DV/StationEvents/Events/GlimmerFoxfireSpawnRule.cs

Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Signed-off-by: Astra <226853568+EmberAstra@users.noreply.github.com>

* Update Content.Server/_DV/StationEvents/Events/GlimmerRestyleRule.cs

Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Signed-off-by: Astra <226853568+EmberAstra@users.noreply.github.com>

* Only filter for potential psionics

* Lower restyle glimmer requirement

* Semicolon my beloathed

* Popup false when going bald to bald

* Update Content.Server/_DV/StationEvents/Events/GlimmerRestyleRule.cs

Signed-off-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>

---------

Signed-off-by: Astra <226853568+EmberAstra@users.noreply.github.com>
Signed-off-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Co-authored-by: Vanessa <908648+ShepardToTheStars@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-01-03 13:56:01 +00:00

44 lines
1.1 KiB
C#

using Content.Server._DV.StationEvents.Events;
using Robust.Shared.Prototypes;
namespace Content.Server._DV.StationEvents.Components;
/// <summary>
/// Spawns a small amount of randomly-colored foxfires,
/// centered around either the Oracle or Sophic Grammateus.
/// </summary>
[RegisterComponent, Access(typeof(GlimmerFoxfireSpawnRule))]
public sealed partial class GlimmerFoxfireSpawnRuleComponent : Component
{
/// <summary>
/// Minimum+ amounts of foxfires to spawn.
/// </summary>
[DataField]
public int MinimumSpawned = 10;
/// <summary>
/// Maximum amounts of foxfires to spawn.
/// </summary>
[DataField]
public int MaximumSpawned = 20;
/// <summary>
/// Maximum distance from the Oracle or Sophic Grammateus in which the
/// foxfire will be spawned.
/// </summary>
[DataField]
public int SpawnRange = 10;
/// <summary>
/// Prototype to be spawned.
/// </summary>
[DataField]
public EntProtoId FoxfirePrototype = "Foxfire";
/// <summary>
/// Available colors for the foxfire's light.
/// </summary>
[DataField]
public List<Color>? RandomColorList = new();
}