Files
wwdpublic/Content.Server/DeltaV/Objectives/Components/TeachLessonConditionComponent.cs
sleepyyapril 3a9a0e63bf Change "Kill" To "Teach a Lesson" (#1654)
better for MRP
this code is originally by me anyway, they just made it better

🆑
- tweak: Kill random person objective has been replaced by teaching them
a lesson, removing the need to RR a random person.

---------

Signed-off-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com>
Co-authored-by: Lyndomen <49795619+Lyndomen@users.noreply.github.com>
Co-authored-by: Milon <milonpl.git@proton.me>
Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com>
Co-authored-by: VMSolidus <evilexecutive@gmail.com>
(cherry picked from commit f592d4cd890bc14c70153182a400d273ffb113b9)
2025-01-29 20:10:41 +03:00

21 lines
820 B
C#

using Content.Server.DeltaV.Objectives.Systems;
using Content.Server.Objectives.Components;
namespace Content.Server.DeltaV.Objectives.Components;
/// <summary>
/// Requires that a target dies once and only once.
/// Depends on <see cref="TargetObjectiveComponent"/> to function.
/// </summary>
[RegisterComponent, Access(typeof(TeachLessonConditionSystem))]
public sealed partial class TeachLessonConditionComponent : Component
{
/// <summary>
/// How close the assassin must be to the person "Being given a lesson", to ensure that the kill is reasonably
/// something that could be the assassin's doing. This way the objective isn't resolved by the target getting killed
/// by a space tick while on expedition.
/// </summary>
[DataField]
public float MaxDistance = 30f;
}