using Robust.Shared.Audio;
namespace Content.Server.Guardian
{
///
/// Given to guardians to monitor their link with the host
///
[RegisterComponent]
public sealed partial class GuardianComponent : Component
{
///
/// The guardian host entity
///
[DataField]
public EntityUid? Host;
///
/// Percentage of damage reflected from the guardian to the host
///
[DataField]
public float DamageShare { get; set; } = 0.65f;
///
/// Maximum distance the guardian can travel before it's forced to recall, use YAML to set
///
[DataField]
public float DistanceAllowed { get; set; } = 5f;
///
/// If the guardian is currently manifested
///
[DataField]
public bool GuardianLoose;
///
/// Sound played when a mob starts hosting the guardian.
///
[DataField]
public SoundSpecifier InjectSound = new SoundPathSpecifier("/Audio/Effects/guardian_inject.ogg");
///
/// Sound played when the guardian enters critical state.
///
[DataField]
public SoundSpecifier CriticalSound = new SoundPathSpecifier("/Audio/Effects/guardian_warn.ogg");
///
/// Sound played when the guardian dies.
///
[DataField]
public SoundSpecifier DeathSound = new SoundPathSpecifier("/Audio/Voice/Human/malescream_guardian.ogg", AudioParams.Default.WithVariation(0.2f));
}
}