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:
Moony
2023-02-18 19:00:31 -06:00
committed by GitHub
parent e29a3874b8
commit cc0c516e02
61 changed files with 799 additions and 533 deletions

View File

@@ -1,43 +0,0 @@
using Content.Server.Chemistry.Components.SolutionManager;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.Reagent;
using Robust.Server.GameObjects;
using Robust.Shared.Utility;
namespace Content.Server.Chemistry.Components
{
[RegisterComponent]
public sealed class TransformableContainerComponent : Component
{
[Dependency] private readonly IEntityManager _entMan = default!;
public SpriteSpecifier? InitialSprite;
public string InitialName = default!;
public string InitialDescription = default!;
public ReagentPrototype? CurrentReagent;
public bool Transformed { get; internal set; }
protected override void Initialize()
{
base.Initialize();
if (_entMan.TryGetComponent(Owner, out SpriteComponent? sprite) &&
sprite.BaseRSIPath != null)
{
InitialSprite = new SpriteSpecifier.Rsi(new ResourcePath(sprite.BaseRSIPath), "icon");
}
InitialName = _entMan.GetComponent<MetaDataComponent>(Owner).EntityName;
InitialDescription = _entMan.GetComponent<MetaDataComponent>(Owner).EntityDescription;
}
protected override void Startup()
{
base.Startup();
Owner.EnsureComponentWarn<SolutionContainerManagerComponent>();
Owner.EnsureComponentWarn<FitsInDispenserComponent>();
}
}
}