Polymorph Artifact Effect (#20660)

Co-authored-by: Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
This commit is contained in:
brainfood1183
2023-10-10 00:49:42 +01:00
committed by GitHub
parent e7a453e022
commit ad17adfb63
5 changed files with 122 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
using Robust.Shared.Audio;
using Content.Shared.Polymorph;
using Robust.Shared.Prototypes;
namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
/// <summary>
/// Artifact polymorphs surrounding entities when triggered.
/// </summary>
[RegisterComponent]
public sealed partial class PolyArtifactComponent : Component
{
/// <summary>
/// The polymorph effect to trigger.
/// </summary>
[DataField]
public ProtoId<PolymorphPrototype> PolymorphPrototypeName = "ArtifactMonkey";
/// <summary>
/// range of the effect.
/// </summary>
[DataField]
public float Range = 2f;
/// <summary>
/// Sound to play on polymorph.
/// </summary>
[DataField]
public SoundSpecifier PolySound = new SoundPathSpecifier("/Audio/Weapons/Guns/Gunshots/Magic/staff_animation.ogg");
}