Improves bartending with some tweaks. (#14169)
* Improves bartending with some tweaks. - Glasses got resprited and now support fill levels. - * New glass type and improve shotglass visuals. * oobsy * fixes * get flasked * flask * flask --------- Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
This commit is contained in:
@@ -102,6 +102,15 @@ public sealed partial class SolutionContainerSystem : EntitySystem
|
||||
|
||||
_appearance.SetData(uid, SolutionContainerVisuals.FillFraction, solution.FillFraction, appearanceComponent);
|
||||
_appearance.SetData(uid, SolutionContainerVisuals.Color, solution.GetColor(_prototypeManager), appearanceComponent);
|
||||
|
||||
if (solution.GetPrimaryReagentId() is { } reagent)
|
||||
{
|
||||
_appearance.SetData(uid, SolutionContainerVisuals.BaseOverride, reagent, appearanceComponent);
|
||||
}
|
||||
else
|
||||
{
|
||||
_appearance.SetData(uid, SolutionContainerVisuals.BaseOverride, string.Empty, appearanceComponent);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user