some fixes

removes unused interface from DrinkComponent
adds capability to fit inside dispensers for TransformableContainer
removes stomach component from character setup dummy
This commit is contained in:
Injazz
2020-04-08 17:12:00 +05:00
parent 1b8215ee49
commit 4174891c87
3 changed files with 8 additions and 46 deletions

View File

@@ -37,6 +37,12 @@ namespace Content.Server.GameObjects.Components.Chemistry
_initialDescription = Owner.Description;
}
protected override void Startup()
{
base.Startup();
Owner.GetComponent<SolutionComponent>().Capabilities |= SolutionCaps.FitsInDispenser;;
}
public void CancelTransformation()
{
_currentReagent = null;
@@ -48,7 +54,6 @@ namespace Content.Server.GameObjects.Components.Chemistry
void ISolutionChange.SolutionChanged(SolutionChangeEventArgs eventArgs)
{
var solution = eventArgs.Owner.GetComponent<SolutionComponent>();
//Transform container into initial state when emptied
if (_currentReagent != null && solution.ReagentList.Count == 0)
{
@@ -71,7 +76,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
{
var spriteSpec = new SpriteSpecifier.Rsi(new ResourcePath("Objects/Drinks/" + proto.SpriteReplacementPath),"icon");
_sprite.LayerSetSprite(0, spriteSpec);
Owner.Name = proto.Name;
Owner.Name = proto.Name + " glass";
//Owner.Description = proto.Description;
_currentReagent = proto;
}