Add extensions for spilling solutions into puddles (#1991)

This commit is contained in:
DrSmugleaf
2020-09-02 01:16:25 +02:00
committed by GitHub
parent 682b6b9568
commit 61f64e15f2
6 changed files with 133 additions and 99 deletions

View File

@@ -172,7 +172,7 @@ namespace Content.Server.GameObjects.Components.Nutrition
Opened = true;
var solution = component.SplitSolution(component.CurrentVolume);
SpillHelper.SpillAt(Owner, solution, "PuddleSmear");
solution.SpillAt(Owner, "PuddleSmear");
EntitySystem.Get<AudioSystem>().PlayFromEntity(_burstSound, Owner,
AudioParams.Default.WithVolume(-4));