Fixed args.Used instead of args.Target (#17838)

This commit is contained in:
Topy 2023-07-05 22:31:30 +02:00 committed by GitHub
parent f1d03d9081
commit 2349a3eba3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -64,7 +64,7 @@ public sealed class DrainComponent : Component
/// What's the probability of uncloging on each try
/// </summary>
[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");