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:
@@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user