Visually updates contents of the beaker

also adds new syringe sprite from eris
also adds colors to ALL reagents
This commit is contained in:
Injazz
2020-04-09 16:43:56 +05:00
parent 4174891c87
commit 8f580ecc1b
96 changed files with 107 additions and 43 deletions

View File

@@ -20,6 +20,9 @@ namespace Content.Server.GameObjects.Components.Chemistry
public override string Name => "TransformableContainer";
private bool _transformed = false;
public bool Transformed { get => _transformed; }
private SpriteSpecifier _initialSprite;
private string _initialName;
private string _initialDescription;
@@ -46,6 +49,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
public void CancelTransformation()
{
_currentReagent = null;
_transformed = false;
_sprite.LayerSetSprite(0, _initialSprite);
Owner.Name = _initialName;
//Owner.Description = _initialDescription;
@@ -79,6 +83,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
Owner.Name = proto.Name + " glass";
//Owner.Description = proto.Description;
_currentReagent = proto;
_transformed = true;
}
}
}