using Content.Server.Xenoarchaeology.XenoArtifacts; using Content.Shared.Chemistry.Reagent; using Robust.Shared.Prototypes; using Content.Shared.EntityEffects; namespace Content.Server.EntityEffects.Effects; public sealed partial class ActivateArtifact : EntityEffect { public override void Effect(EntityEffectBaseArgs args) { var artifact = args.EntityManager.EntitySysManager.GetEntitySystem(); artifact.TryActivateArtifact(args.TargetEntity, logMissing: false); } protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) => Loc.GetString("reagent-effect-guidebook-activate-artifact", ("chance", Probability)); }