mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
* init * yeah * move folders * comments * i hate cloning sometimes * review * review squred * fix stuff
21 lines
676 B
C#
21 lines
676 B
C#
using Content.Shared.Body.Events;
|
|
using Content.Shared.StatusEffectNew;
|
|
|
|
namespace Content.Shared.Traits.Assorted;
|
|
|
|
public sealed class HemophiliaSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
SubscribeLocalEvent<HemophiliaStatusEffectComponent, StatusEffectRelayedEvent<BleedModifierEvent>>(OnBleedModifier);
|
|
}
|
|
|
|
private void OnBleedModifier(Entity<HemophiliaStatusEffectComponent> ent, ref StatusEffectRelayedEvent<BleedModifierEvent> args)
|
|
{
|
|
var ev = args.Args;
|
|
ev.BleedReductionAmount *= ent.Comp.BleedReductionMultiplier;
|
|
ev.BleedAmount *= ent.Comp.BleedAmountMultiplier;
|
|
args.Args = ev;
|
|
}
|
|
}
|