Unhardcode glass locale postfix (#11721)

* Unhardcode glass locale postfix

* Add drink name to locale
This commit is contained in:
Morb
2022-10-08 07:51:14 +03:00
committed by GitHub
parent d60702bfb7
commit 4252284a71
2 changed files with 2 additions and 1 deletions

View File

@@ -53,7 +53,7 @@ namespace Content.Server.Chemistry.EntitySystems
sprite?.LayerSetSprite(0, spriteSpec);
}
string val = proto.LocalizedName + " glass";
string val = Loc.GetString("transformable-container-component-glass", ("name", proto.LocalizedName));
EntityManager.GetComponent<MetaDataComponent>(owner).EntityName = val;
EntityManager.GetComponent<MetaDataComponent>(owner).EntityDescription = proto.LocalizedDescription;
component.CurrentReagent = proto;

View File

@@ -0,0 +1 @@
transformable-container-component-glass = {$name} glass