Files
wwdpublic/Content.Shared/Magic/Events/RandomGlobalSpawnSpellEvent.cs
keronshb 55244bc407 Fix/Addition - Wizard Survivor Antag Status (#35226)
(cherry picked from commit 3192914fc532d492b6c6e396662227c0171d2c9a)
2025-09-20 20:34:26 +03:00

34 lines
981 B
C#

using Content.Shared.Actions;
using Content.Shared.Chat;
using Content.Shared.Storage;
using Robust.Shared.Audio;
namespace Content.Shared.Magic.Events;
public sealed partial class RandomGlobalSpawnSpellEvent : InstantActionEvent, ISpeakSpell
{
/// <summary>
/// The list of prototypes this spell can spawn, will select one randomly
/// </summary>
[DataField]
public List<EntitySpawnEntry> Spawns = new();
/// <summary>
/// Sound that will play globally when cast
/// </summary>
[DataField]
public SoundSpecifier Sound = new SoundPathSpecifier("/Audio/Magic/staff_animation.ogg");
[DataField]
public string? Speech { get; private set; }
/// <summary>
/// Should this Global spawn spell turn its targets into a Survivor Antagonist?
/// Ignores the caster for this.
/// </summary>
[DataField]
public bool MakeSurvivorAntagonist = false;
public InGameICChatType ChatType => InGameICChatType.Whisper;
}