Files
Delta-v/Content.Server/_DV/Objectives/Components/RerollAfterCompletionComponent.cs
T
William Lemonandpre-commit-ci[bot] 01088086dc Adds Skia (σκιά, shade) as a Midround Antagonist (#4152)
* AAAAAAAAadds skia

* Added to the spawn options table

* Fix EOR, Added shatter ability, Fix Reroll popup

* Fixed the death of the Skia

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

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

* Fixed taco's silly mistake

* Skia need pry-ability

* Adds Goob Nightvision

* Added some missing Protos

* Appease the Yaml gods

* Did the Delta Fixes

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

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

* Lathes fix

* Update attributions.yml

* More yaml fixes

* The Yaml Linter shall never be sated

* More fixes

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

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

* Fixed objective reroll

* Bring up to date

* aaaaaaaaaaa

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

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

* Fixed damageset, removed unneeded point light

* I'm so sorry Deltandas

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

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

---------

Signed-off-by: William Lemon <William.Lemon2@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-09-01 08:46:23 +00:00

40 lines
1.3 KiB
C#

using Robust.Shared.Prototypes;
namespace Content.Server._DV.Objectives.Components;
/// <summary>
/// When this objective is completed, duplicate it with a new target.
/// </summary>
[RegisterComponent]
public sealed partial class RerollAfterCompletionComponent : Component
{
/// <summary>
/// If true, the objective has already been rerolled.
/// </summary>
/// <remarks>
/// Ideally this shouldn't matter, as we delete the component once its rolled
/// </remarks>
public bool Rerolled;
/// <summary>
/// Tracks a reference of the owner of this objective.
/// From what I can see, there is no normaly way to get a mind from an objective, as they're usually passed together.
/// </summary>
[DataField]
public EntityUid MindUid = default!;
/// <summary>
/// Prototype of the objective to use for rerolling.
/// Probably the same as this entity (If you want a potentially infinite number of objectives), but could be different if you want it to be a different objective.
/// </summary>
[DataField(required: true)]
public EntProtoId RerollObjectivePrototype = default!;
/// <summary>
/// Message to display when the objective is rerolled.
/// If null, no message will be displayed.
/// </summary>
[DataField]
public LocId? RerollObjectiveMessage;
}