2022-01-30 10:20:22 -05:00
|
|
|
using Content.Shared.Damage;
|
2022-07-29 14:13:12 +12:00
|
|
|
using Robust.Shared.Audio;
|
2022-01-30 10:20:22 -05:00
|
|
|
|
|
|
|
|
namespace Content.Server.Bible.Components
|
|
|
|
|
{
|
2022-02-08 00:42:49 -08:00
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class BibleComponent : Component
|
2022-01-30 10:20:22 -05:00
|
|
|
{
|
2022-09-17 00:27:05 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Damage that will be healed on a success
|
|
|
|
|
/// </summary>
|
2022-01-30 10:20:22 -05:00
|
|
|
[DataField("damage", required: true)]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public DamageSpecifier Damage = default!;
|
2022-09-17 00:27:05 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Damage that will be dealt on a failure
|
|
|
|
|
/// </summary>
|
2022-01-30 10:20:22 -05:00
|
|
|
[DataField("damageOnFail", required: true)]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public DamageSpecifier DamageOnFail = default!;
|
2022-09-17 00:27:05 +10:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Damage that will be dealt when a non-chaplain attempts to heal
|
|
|
|
|
/// </summary>
|
2022-01-30 10:20:22 -05:00
|
|
|
[DataField("damageOnUntrainedUse", required: true)]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public DamageSpecifier DamageOnUntrainedUse = default!;
|
|
|
|
|
|
2022-09-17 00:27:05 +10:00
|
|
|
/// <summary>
|
|
|
|
|
/// Chance the bible will fail to heal someone with no helmet
|
|
|
|
|
/// </summary>
|
2022-04-03 02:01:22 +02:00
|
|
|
[DataField("failChance")]
|
2022-01-30 10:20:22 -05:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public float FailChance = 0.34f;
|
|
|
|
|
|
2022-04-17 03:16:02 -04:00
|
|
|
[DataField("sizzleSound")]
|
|
|
|
|
public SoundSpecifier SizzleSoundPath = new SoundPathSpecifier("/Audio/Effects/lightburn.ogg");
|
|
|
|
|
[DataField("healSound")]
|
|
|
|
|
public SoundSpecifier HealSoundPath = new SoundPathSpecifier("/Audio/Effects/holy.ogg");
|
|
|
|
|
|
|
|
|
|
[DataField("locPrefix")]
|
|
|
|
|
public string LocPrefix = "bible";
|
2022-01-30 10:20:22 -05:00
|
|
|
}
|
|
|
|
|
}
|