From 2349a3eba3ed2a128e870a58746ff582b35b108b Mon Sep 17 00:00:00 2001 From: Topy Date: Wed, 5 Jul 2023 22:31:30 +0200 Subject: [PATCH] Fixed args.Used instead of args.Target (#17838) --- Content.Server/Fluids/EntitySystems/DrainSystem.cs | 2 +- Content.Shared/Fluids/Components/DrainComponent.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Fluids/EntitySystems/DrainSystem.cs b/Content.Server/Fluids/EntitySystems/DrainSystem.cs index 8d415599f5..425e21153c 100644 --- a/Content.Server/Fluids/EntitySystems/DrainSystem.cs +++ b/Content.Server/Fluids/EntitySystems/DrainSystem.cs @@ -228,7 +228,7 @@ public sealed class DrainSystem : SharedDrainSystem _audioSystem.PlayPvs(component.PlungerSound, uid); - var doAfterArgs = new DoAfterArgs(args.User, component.UnclogDuration, new DrainDoAfterEvent(),uid, args.Used) + var doAfterArgs = new DoAfterArgs(args.User, component.UnclogDuration, new DrainDoAfterEvent(),uid, args.Target, args.Used) { BreakOnTargetMove = true, BreakOnUserMove = true, diff --git a/Content.Shared/Fluids/Components/DrainComponent.cs b/Content.Shared/Fluids/Components/DrainComponent.cs index f7a88c80e4..0be6213839 100644 --- a/Content.Shared/Fluids/Components/DrainComponent.cs +++ b/Content.Shared/Fluids/Components/DrainComponent.cs @@ -64,7 +64,7 @@ public sealed class DrainComponent : Component /// What's the probability of uncloging on each try /// [DataField("unclogProbability"), ViewVariables(VVAccess.ReadWrite)] - public float UnclogProbability = 0.3f; + public float UnclogProbability = 0.75f; [DataField("manualDrainSound"), ViewVariables(VVAccess.ReadOnly)] public SoundSpecifier ManualDrainSound = new SoundPathSpecifier("/Audio/Effects/Fluids/slosh.ogg");