Files
wwdpublic/Content.Shared/Magic/Events/RandomGlobalSpawnSpellEvent.cs
ActiveMammmoth eab4c62b1e Wizard Summon Guns/Magic (#32692)
* mostly done but there's a bug with spawning

* RandomGlobalSpawnSpellEvent now actually works

* Summon Guns/Magic is working

* Added sound, cap gun, and auto pick up

* Added all requested changes/fixes from reviews

* Halving cooldowns

(cherry picked from commit 22987fc77f5ab508604be215cedc8bb59f7fb947)
2025-07-20 21:33:01 +10:00

27 lines
758 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; }
public InGameICChatType ChatType => InGameICChatType.Whisper;
}