More blood tweaks (#6811)

This commit is contained in:
mirrorcult
2022-02-20 17:18:24 -07:00
committed by GitHub
parent d91f969451
commit e85bdc2d87
9 changed files with 52 additions and 7 deletions

View File

@@ -36,6 +36,12 @@ namespace Content.Server.Body.Components
[DataField("bleedReductionAmount")]
public float BleedReductionAmount = 1.0f;
/// <summary>
/// How high can <see cref="BleedAmount"/> go?
/// </summary>
[DataField("maxBleedAmount")]
public float MaxBleedAmount = 20.0f;
/// <summary>
/// What percentage of current blood is necessary to avoid dealing blood loss damage?
/// </summary>
@@ -89,6 +95,12 @@ namespace Content.Server.Body.Components
[DataField("instantBloodSound")]
public SoundSpecifier InstantBloodSound = new SoundCollectionSpecifier("blood");
/// <summary>
/// The sound to be played when some damage actually heals bleeding rather than starting it.
/// </summary>
[DataField("bloodHealedSound")]
public SoundSpecifier BloodHealedSound = new SoundPathSpecifier("/Audio/Effects/lightburn.ogg");
// TODO probably damage bleed thresholds.
/// <summary>