2024-06-30 05:43:43 +02:00
|
|
|
using Content.Server.Xenoarchaeology.XenoArtifacts;
|
2022-11-06 18:05:44 -05:00
|
|
|
using Content.Shared.Chemistry.Reagent;
|
2023-06-04 16:45:02 -04:00
|
|
|
using Robust.Shared.Prototypes;
|
2024-06-30 05:43:43 +02:00
|
|
|
using Content.Shared.EntityEffects;
|
2022-11-06 18:05:44 -05:00
|
|
|
|
2024-06-30 05:43:43 +02:00
|
|
|
namespace Content.Server.EntityEffects.Effects;
|
2022-11-06 18:05:44 -05:00
|
|
|
|
2024-06-30 05:43:43 +02:00
|
|
|
public sealed partial class ActivateArtifact : EntityEffect
|
2022-11-06 18:05:44 -05:00
|
|
|
{
|
2024-06-30 05:43:43 +02:00
|
|
|
public override void Effect(EntityEffectBaseArgs args)
|
2022-11-06 18:05:44 -05:00
|
|
|
{
|
|
|
|
|
var artifact = args.EntityManager.EntitySysManager.GetEntitySystem<ArtifactSystem>();
|
2024-09-11 16:06:51 +00:00
|
|
|
artifact.TryActivateArtifact(args.TargetEntity, logMissing: false);
|
2022-11-06 18:05:44 -05:00
|
|
|
}
|
2023-06-04 16:45:02 -04:00
|
|
|
|
|
|
|
|
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) =>
|
|
|
|
|
Loc.GetString("reagent-effect-guidebook-activate-artifact", ("chance", Probability));
|
2022-11-06 18:05:44 -05:00
|
|
|
}
|