PolyOthersArtifactComponent.cs 959 B

1234567891011121314151617181920212223242526272829303132
  1. using Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Systems;
  2. using Robust.Shared.Audio;
  3. using Content.Shared.Polymorph;
  4. using Robust.Shared.Prototypes;
  5. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
  6. /// <summary>
  7. /// Artifact polymorphs surrounding entities when triggered.
  8. /// </summary>
  9. [RegisterComponent]
  10. [Access(typeof(PolyOthersArtifactSystem))]
  11. public sealed partial class PolyOthersArtifactComponent : Component
  12. {
  13. /// <summary>
  14. /// The polymorph effect to trigger.
  15. /// </summary>
  16. [DataField]
  17. public ProtoId<PolymorphPrototype> PolymorphPrototypeName = "ArtifactMonkey";
  18. /// <summary>
  19. /// range of the effect.
  20. /// </summary>
  21. [DataField]
  22. public float Range = 2f;
  23. /// <summary>
  24. /// Sound to play on polymorph.
  25. /// </summary>
  26. [DataField]
  27. public SoundSpecifier PolySound = new SoundPathSpecifier("/Audio/Weapons/Guns/Gunshots/Magic/staff_animation.ogg");
  28. }