Unhardcode glass locale postfix (#11721)
* Unhardcode glass locale postfix * Add drink name to locale
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
transformable-container-component-glass = {$name} glass
|
||||
Reference in New Issue
Block a user