| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
- // SPDX-FileCopyrightText: 2025 Piras314 <p1r4s@proton.me>
- // SPDX-FileCopyrightText: 2025 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
- //
- // SPDX-License-Identifier: AGPL-3.0-or-later
- using Robust.Shared.GameStates;
- using Robust.Shared.Prototypes;
- using Content.Shared.StatusEffect;
- using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
- namespace Content.Shared._Shitmed.BodyEffects.Subsystems;
- [RegisterComponent]
- [AutoGenerateComponentPause]
- public sealed partial class RandomStatusActivationComponent : Component
- {
- /// <summary>
- /// List of status effects to roll while the organ is installed.
- /// </summary>
- [DataField(required: true)]
- public Dictionary<ProtoId<StatusEffectPrototype>, string> StatusEffects = new();
- /// <summary>
- /// How long the status effect should last for.
- /// </summary>
- [DataField]
- public TimeSpan? Duration;
- /// <summary>
- /// What is the minimum time between activations?
- /// </summary>
- [DataField]
- public TimeSpan MinActivationTime = TimeSpan.FromSeconds(60);
- /// <summary>
- /// What is the maximum time between activations?
- /// </summary>
- [DataField]
- public TimeSpan MaxActivationTime = TimeSpan.FromSeconds(300);
- /// <summary>
- /// The next time the organ will activate.
- /// </summary>
- [DataField(customTypeSerializer: typeof(TimeOffsetSerializer)), AutoPausedField]
- public TimeSpan NextUpdate;
- }
|