make healing sounds audible (#23211)

This commit is contained in:
Whisper
2023-12-30 17:32:00 -05:00
committed by GitHub
parent f7a923624a
commit da055fcd98

View File

@@ -111,7 +111,7 @@ public sealed class HealingSystem : EntitySystem
$"{EntityManager.ToPrettyString(args.User):user} healed themselves for {total:damage} damage");
}
_audio.PlayPvs(healing.HealingEndSound, entity.Owner, AudioHelpers.WithVariation(0.125f, _random).WithVolume(-5f));
_audio.PlayPvs(healing.HealingEndSound, entity.Owner, AudioHelpers.WithVariation(0.125f, _random).WithVolume(1f));
// Logic to determine the whether or not to repeat the healing action
args.Repeat = (HasDamage(entity.Comp, healing) && !dontRepeat);
@@ -185,7 +185,7 @@ public sealed class HealingSystem : EntitySystem
}
_audio.PlayPvs(component.HealingBeginSound, uid,
AudioHelpers.WithVariation(0.125f, _random).WithVolume(-5f));
AudioHelpers.WithVariation(0.125f, _random).WithVolume(1f));
var isNotSelf = user != target;