* 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
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using Content.Shared._CP14.MagicRitual.Actions;
|
|
using Content.Shared._CP14.MagicRitual.Requirements;
|
|
using Content.Shared._CP14.MagicRitualTrigger;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared._CP14.MagicRitual;
|
|
|
|
/// <summary>
|
|
/// Magical entity that reacts to world events
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(CP14SharedRitualSystem))]
|
|
public sealed partial class CP14MagicRitualPhaseComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// A link to the ritual itself in which this phase is found
|
|
/// </summary>
|
|
[DataField]
|
|
public Entity<CP14MagicRitualComponent>? Ritual;
|
|
|
|
[DataField]
|
|
public Color PhaseColor = Color.White;
|
|
|
|
[DataField]
|
|
public List<RitualPhaseEdge> Edges = new();
|
|
|
|
/// <summary>
|
|
/// by moving to this node, the ritual will end instantly.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool DeadEnd = false;
|
|
}
|
|
|
|
[DataRecord]
|
|
public partial record struct RitualPhaseEdge()
|
|
{
|
|
public EntProtoId Target { get; set; }
|
|
|
|
public List<CP14RitualTrigger> Triggers { get; set; } = new();
|
|
public List<CP14RitualRequirement> Requirements { get; set; } = new();
|
|
public List<CP14RitualAction> Actions { get; set; } = new();
|
|
}
|