Fixed args.Used instead of args.Target (#17838)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user