* ritual cucumber setup
* entities requirements
* try graph???
* Revert "try graph???"
This reverts commit c90c6353cb.
* pipyau
* fixes
* yay, it works
* spawn effect
* regex lower message restrictions
* unique speakers support
* apply entity effect ritual
* ritual chalk
* Update SpawnEntity.cs
* ritual stability
* stability event
* add guidebook description to all ritual actions
* Readability added
* Update RequiredResource.cs
* finish describer
* clean up describer
* Update triggers.ftl
* cave ambient loop
* parry sound update
* rituals end start
* magic ambience add
* global sharedization
* Update phases.yml
* daytime requirement
* Update phases.yml
* start ritual
* fixes
* more ambient work
* rritual visualizer
* end ritual
* magic orbs!
* required orbs
* orbs design
* consume orbs
* setup neutral cluster triggers and edges
* listener proxy
* restucture graph
* fix time triggers
* healing cluster
* fixes
* Create CP14RitualTest.cs
* test errors for check test
* YEEEE
* Fuck triggers, its broken now, YAY
* triggers redo
* fix
* fix test
* Update CP14RitualTest.cs
* Update neutral_cluster.yml
* Update CP14RitualSystem.Triggers.cs
* clean up, documentation
* redo triggers again
* and another one
* species sacrifice trigger
* whitelist trigger
* fix
* describer refactor
* fix memory leaking + hyperlinks
* dd
87 lines
1.9 KiB
C#
87 lines
1.9 KiB
C#
using Content.Shared.DoAfter;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared._CP14.MagicRitual;
|
|
|
|
/// <summary>
|
|
/// Called out a ritual when any of its phase triggers are activated
|
|
/// </summary>
|
|
public sealed class CP14RitualTriggerEvent : EntityEventArgs
|
|
{
|
|
public EntProtoId NextPhase;
|
|
|
|
public CP14RitualTriggerEvent(EntProtoId phase)
|
|
{
|
|
NextPhase = phase;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Called out at a ritual when his stability is altered
|
|
/// </summary>
|
|
public sealed class CP14RitualStabilityChangedEvent : EntityEventArgs
|
|
{
|
|
public float OldStability;
|
|
public float NewStability;
|
|
|
|
public CP14RitualStabilityChangedEvent(float oldS, float newS)
|
|
{
|
|
OldStability = oldS;
|
|
NewStability = newS;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Called on both the ritual and the phase when they link together
|
|
/// </summary>
|
|
public sealed class CP14RitualPhaseBoundEvent : EntityEventArgs
|
|
{
|
|
public EntityUid Ritual;
|
|
public EntityUid Phase;
|
|
|
|
public CP14RitualPhaseBoundEvent(EntityUid r, EntityUid p)
|
|
{
|
|
Ritual = r;
|
|
Phase = p;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Invoked at the ritual holder entity when the ritual is complete and the phase entities have been removed
|
|
/// </summary>
|
|
public sealed class CP14RitualEndEvent : EntityEventArgs
|
|
{
|
|
public EntityUid Ritual;
|
|
|
|
public CP14RitualEndEvent(EntityUid r)
|
|
{
|
|
Ritual = r;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Invoked at the ritual holder entity when the ritual begins, and invokes the starting phase
|
|
/// </summary>
|
|
public sealed class CP14RitualStartEvent : EntityEventArgs
|
|
{
|
|
public EntityUid Ritual;
|
|
|
|
public CP14RitualStartEvent(EntityUid r)
|
|
{
|
|
Ritual = r;
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public sealed partial class CP14ActivateRitualDoAfter : SimpleDoAfterEvent
|
|
{
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum RitualVisuals
|
|
{
|
|
Color,
|
|
Enabled,
|
|
}
|