29 lines
865 B
C#
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)
|
|
};
|
|
}
|