Files
crystall-punk-14/Content.Shared/Silicons/Bots/EmaggableMedibotComponent.cs
deltanedas 47359cf70f medibot fixes and refactoring (#21852)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-12-07 08:30:32 +11:00

29 lines
865 B
C#

using Content.Shared.Mobs;
using Robust.Shared.Audio;
using Robust.Shared.GameStates;
namespace Content.Shared.Silicons.Bots;
/// <summary>
/// Replaces the medibot's meds with these when emagged. Could be poison, could be fun.
/// </summary>
[RegisterComponent, NetworkedComponent]
[Access(typeof(MedibotSystem))]
public sealed partial class EmaggableMedibotComponent : Component
{
/// <summary>
/// Treatments to replace from the original set.
/// </summary>
[DataField(required: true), ViewVariables(VVAccess.ReadWrite)]
public Dictionary<MobState, MedibotTreatment> Replacements = new();
/// <summary>
/// Sound to play when the bot has been emagged
/// </summary>
[DataField]
public SoundSpecifier SparkSound = new SoundCollectionSpecifier("sparks")
{
Params = AudioParams.Default.WithVolume(8f)
};
}