RandomGlobalSpawnSpellEvent.cs 887 B

123456789101112131415161718192021222324252627282930
  1. using Content.Shared.Actions;
  2. using Content.Shared.Storage;
  3. using Robust.Shared.Audio;
  4. namespace Content.Shared.Magic.Events;
  5. public sealed partial class RandomGlobalSpawnSpellEvent : InstantActionEvent, ISpeakSpell
  6. {
  7. /// <summary>
  8. /// The list of prototypes this spell can spawn, will select one randomly
  9. /// </summary>
  10. [DataField]
  11. public List<EntitySpawnEntry> Spawns = new();
  12. /// <summary>
  13. /// Sound that will play globally when cast
  14. /// </summary>
  15. [DataField]
  16. public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Magic/staff_animation.ogg");
  17. [DataField]
  18. public string? Speech { get; private set; }
  19. /// <summary>
  20. /// Should this Global spawn spell turn its targets into a Survivor Antagonist?
  21. /// Ignores the caster for this.
  22. /// </summary>
  23. [DataField]
  24. public bool MakeSurvivorAntagonist = false;
  25. }