Files
tbd-station-14/Content.Server/StationEvents/Components/ImmovableRodRuleComponent.cs
SlamBamActionman 8f652eaa75 Immovable Rod visual variations (#25932)
* Adds variations to immovable rod

* slash oopsie

* Changed prototypes from being hardcoded to being defined in the rules component

* Changed from 10% chance to 5%

* Changes based on feedback

* Fix nullable error

* Moved randomized logic to .yaml. Probabilities of alternate rods add up to 5%.
2024-03-24 23:45:52 +01:00

16 lines
517 B
C#

using Content.Server.StationEvents.Events;
using Content.Shared.Storage;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
namespace Content.Server.StationEvents.Components;
[RegisterComponent, Access(typeof(ImmovableRodRule))]
public sealed partial class ImmovableRodRuleComponent : Component
{
/// List of possible rods and spawn probabilities.
/// </summary>
[DataField]
public List<EntitySpawnEntry> RodPrototypes = new();
}