mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* somewhat functional yes * some cleanup * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * review * missed one * why not params… * review 2 --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
24 lines
666 B
C#
24 lines
666 B
C#
using Content.Shared.Roles;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._DV.Tips.Conditions;
|
|
|
|
/// <summary>
|
|
/// Condition that checks if the player has a specific job.
|
|
/// </summary>
|
|
public sealed partial class HasJobCondition : TipCondition
|
|
{
|
|
/// <summary>
|
|
/// The job prototype ID to check for.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public ProtoId<JobPrototype> Job;
|
|
|
|
protected override bool EvaluateImplementation(TipConditionContext ctx)
|
|
{
|
|
// This needs to be checked server-side with JobSystem
|
|
// Return true here as a placeholder - actual check is in server TipSystem
|
|
return true;
|
|
}
|
|
}
|