Changed drinks to use ECS (#4948)

Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Fortune117
2021-11-02 11:40:55 +11:00
committed by GitHub
parent afc19aff32
commit 76bc00b218
4 changed files with 194 additions and 201 deletions

View File

@@ -109,6 +109,14 @@ namespace Content.Server.Chemistry.EntitySystems
return solution.CurrentVolume;
}
public ReagentUnit DrainAvailable(EntityUid uid)
{
if (!TryGetDrainableSolution(uid, out var solution))
return ReagentUnit.Zero;
return solution.CurrentVolume;
}
public bool HasFitsInDispenser(IEntity owner)
{
return !owner.Deleted && owner.HasComponent<FitsInDispenserComponent>();