* im good at atomizing. welcome to half-finished chem guides. * wagh * e * save work * aa * woweee UI * finishing the last of it * don't actually update the engine :( --------- Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
18 lines
672 B
C#
18 lines
672 B
C#
using Content.Server.Xenoarchaeology.XenoArtifacts;
|
|
using Content.Shared.Chemistry.Reagent;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.Chemistry.ReagentEffects;
|
|
|
|
public sealed class ActivateArtifact : ReagentEffect
|
|
{
|
|
public override void Effect(ReagentEffectArgs args)
|
|
{
|
|
var artifact = args.EntityManager.EntitySysManager.GetEntitySystem<ArtifactSystem>();
|
|
artifact.TryActivateArtifact(args.SolutionEntity);
|
|
}
|
|
|
|
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) =>
|
|
Loc.GetString("reagent-effect-guidebook-activate-artifact", ("chance", Probability));
|
|
}
|