2022-11-06 18:05:44 -05:00
|
|
|
|
using Content.Server.Xenoarchaeology.XenoArtifacts;
|
|
|
|
|
|
using Content.Shared.Chemistry.Reagent;
|
2023-06-04 16:45:02 -04:00
|
|
|
|
using Robust.Shared.Prototypes;
|
2022-11-06 18:05:44 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Chemistry.ReagentEffects;
|
|
|
|
|
|
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class ActivateArtifact : ReagentEffect
|
2022-11-06 18:05:44 -05:00
|
|
|
|
{
|
|
|
|
|
|
public override void Effect(ReagentEffectArgs args)
|
|
|
|
|
|
{
|
|
|
|
|
|
var artifact = args.EntityManager.EntitySysManager.GetEntitySystem<ArtifactSystem>();
|
|
|
|
|
|
artifact.TryActivateArtifact(args.SolutionEntity);
|
|
|
|
|
|
}
|
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
|
|
|
|
}
|