Deathgasp + last words / succumbing / fake deathgasp as crit actions (#18993)

This commit is contained in:
Kara
2023-08-11 22:56:34 -07:00
committed by GitHub
parent eff36d2fe9
commit 7b51cebfea
20 changed files with 459 additions and 35 deletions

View File

@@ -0,0 +1,27 @@
using Content.Shared.Mobs.Systems;
namespace Content.Shared.Mobs.Components;
/// <summary>
/// Used for specifying actions that should be automatically added/removed on mob state transitions
/// </summary>
/// <remarks>
/// Mostly for crit-specific actions.
/// </remarks>
/// <see cref="MobStateActionsSystem"/>
[RegisterComponent]
public sealed class MobStateActionsComponent : Component
{
/// <summary>
/// Specifies a list of actions that should be available if a mob is in a given state.
/// </summary>
/// <example>
/// actions:
/// Critical:
/// - CritSuccumb
/// Alive:
/// - AnimalLayEgg
/// </example>
[DataField("actions")]
public Dictionary<MobState, List<string>> Actions = new();
}