First YML fixes

This commit is contained in:
SirSmith148 2025-10-01 13:45:53 -07:00
parent ccdb1b161d
commit 50b7b5fa2d
4 changed files with 78 additions and 22053 deletions

View File

@ -0,0 +1,44 @@
using Content.Shared.Item;
using Content.Shared.Whitelist;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.Xenoarchaeology.XenoArtifacts;
/// <summary>
/// This is a prototype for...
/// </summary>
[Prototype]
[DataDefinition]
public sealed partial class ArtifactEffectPrototype : IPrototype
{
/// <inheritdoc/>
[IdDataField]
public string ID { get; private set; } = default!;
/// <summary>
/// Components that are added to the artifact when the specfic effect is active.
/// These are removed after the node is exited and the effect is changed.
/// </summary>
[DataField("components", serverOnly: true)]
public ComponentRegistry Components = new();
/// <summary>
/// Components that are permanently added to an entity when the effect's node is entered.
/// </summary>
[DataField("permanentComponents")]
public ComponentRegistry PermanentComponents = new();
//TODO: make this a list so we can have multiple target depths
[DataField("targetDepth")]
public int TargetDepth = 0;
[DataField("effectHint")]
public string? EffectHint;
[DataField("whitelist")]
public EntityWhitelist? Whitelist;
[DataField("blacklist")]
public EntityWhitelist? Blacklist;
}

View File

@ -0,0 +1,33 @@
using Content.Shared.Item;
using Content.Shared.Whitelist;
using Robust.Shared.Prototypes;
using Robust.Shared.Serialization;
namespace Content.Shared.Xenoarchaeology.XenoArtifacts;
/// <summary>
/// This is a prototype for...
/// </summary>
[Prototype]
[DataDefinition]
public sealed partial class ArtifactTriggerPrototype : IPrototype
{
/// <inheritdoc/>
[IdDataField]
public string ID { get; private set; } = default!;
[DataField("components", serverOnly: true)]
public ComponentRegistry Components = new();
[DataField("targetDepth")]
public int TargetDepth = 0;
[DataField("triggerHint")]
public string? TriggerHint;
[DataField("whitelist")]
public EntityWhitelist? Whitelist;
[DataField("blacklist")]
public EntityWhitelist? Blacklist;
}

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
id: TriggerMetapsionic
tip: xenoarch-trigger-tip-psionic
components:
- type: XATMetapsionic
- type: ArtifactMetapsionicTrigger
- type: MetapsionicPower # so the trigger receives the event from people using psionics
# TODO: when golemization is ported, add a trigger for golemizing someone, target 7 or something