diff --git a/Content.Shared/Materials/MaterialPrototype.cs b/Content.Shared/Materials/MaterialPrototype.cs index 043b94bda4..68b055e52a 100644 --- a/Content.Shared/Materials/MaterialPrototype.cs +++ b/Content.Shared/Materials/MaterialPrototype.cs @@ -13,6 +13,8 @@ namespace Content.Shared.Materials [Prototype("material")] public sealed class MaterialPrototype : IPrototype, IInheritingPrototype { + private string _name = string.Empty; + [ViewVariables] [ParentDataField(typeof(AbstractPrototypeIdArraySerializer))] public string[]? Parents { get; } @@ -31,7 +33,11 @@ namespace Content.Shared.Materials [ViewVariables] [DataField("name")] - public string Name { get; } = "unobtanium"; + public string Name + { + get => _name; + private set => _name = Loc.GetString(value); + } [ViewVariables] [DataField("color")] diff --git a/Resources/Locale/en-US/materials/materials.ftl b/Resources/Locale/en-US/materials/materials.ftl new file mode 100644 index 0000000000..f3cb457d73 --- /dev/null +++ b/Resources/Locale/en-US/materials/materials.ftl @@ -0,0 +1,20 @@ +# Glass +materials-glass = glass +materials-reinforced-glass = reinforced glass +materials-plasma-glass = plasma glass +materials-reinforced-plasma-glass = reinforced plasma glass + +# Metals +materials-steel = steel +materials-gold = gold +materials-silver = silver +materials-plasteel = plasteel + +# Other +materials-biomass = biomass +materials-cloth = cloth +materials-durathread = durathread +materials-plasma = plasma +materials-plastic = plastic +materials-wood = wood +materials-uranium = uranium diff --git a/Resources/Prototypes/Reagents/Materials/glass.yml b/Resources/Prototypes/Reagents/Materials/glass.yml index 2859705c67..777463eebe 100644 --- a/Resources/Prototypes/Reagents/Materials/glass.yml +++ b/Resources/Prototypes/Reagents/Materials/glass.yml @@ -1,7 +1,7 @@ - type: material id: Glass stack: Glass - name: glass + name: materials-glass icon: Objects/Materials/Sheets/glass.rsi/glass.png color: "#a8ccd7" price: 0.0025 @@ -9,7 +9,7 @@ - type: material id: ReinforcedGlass stack: ReinforcedGlass - name: reinforced glass + name: materials-reinforced-glass icon: Objects/Materials/Sheets/glass.rsi/rglass.png color: "#549bb0" price: 0.00375 # 2-1 mix of glass and metal. @@ -17,7 +17,7 @@ - type: material id: PlasmaGlass stack: PlasmaGlass - name: plasma glass + name: materials-plasma-glass icon: Objects/Materials/Sheets/glass.rsi/pglass.png color: "#b35989" price: 0.1025 # 1-1 mix of plasma and glass. @@ -25,7 +25,7 @@ - type: material id: ReinforcedPlasmaGlass stack: ReinforcedPlasmaGlass - name: reinforced plasma glass + name: materials-reinforced-plasma-glass icon: Objects/Materials/Sheets/glass.rsi/rpglass.png color: "#8c4069" price: 0.10375 # 2-2-1 mix of plasma, glass, and metal. diff --git a/Resources/Prototypes/Reagents/Materials/materials.yml b/Resources/Prototypes/Reagents/Materials/materials.yml index 0b9efa08e3..9603987ea4 100644 --- a/Resources/Prototypes/Reagents/Materials/materials.yml +++ b/Resources/Prototypes/Reagents/Materials/materials.yml @@ -1,7 +1,7 @@ - type: material id: Biomass stack: Biomass - name: biomass + name: materials-biomass icon: /Textures/Objects/Misc/monkeycube.rsi/cube.png color: "#8A9A5B" price: 0.05 @@ -9,7 +9,7 @@ - type: material id: Cloth stack: Cloth - name: cloth + name: materials-cloth icon: /Textures/Objects/Materials/materials.rsi/cloth.png color: "#e7e7de" price: 0.005 @@ -17,7 +17,7 @@ - type: material id: Durathread stack: Durathread - name: durathread + name: materials-durathread icon: /Textures/Objects/Materials/materials.rsi/durathread.png color: "#8291a1" price: 0.0175 # 1-1 mix of plastic and cloth. @@ -25,7 +25,7 @@ - type: material id: Plasma stack: Plasma - name: plasma + name: materials-plasma icon: Objects/Materials/Sheets/other.rsi/plasma.png color: "#7e009e" price: 0.1 @@ -33,7 +33,7 @@ - type: material id: Plastic stack: Plastic - name: plastic + name: materials-plastic icon: Objects/Materials/Sheets/other.rsi/plastic.png color: "#d9d9d9" price: 0.0125 @@ -41,7 +41,7 @@ - type: material id: Wood stack: WoodPlank - name: wood + name: materials-wood icon: Objects/Materials/materials.rsi/wood.png color: "#966F33" price: 0.01 @@ -49,7 +49,7 @@ - type: material id: Uranium stack: Uranium - name: uranium + name: materials-uranium icon: Objects/Materials/Sheets/other.rsi/uranium.png color: "#32a852" price: 0.05 diff --git a/Resources/Prototypes/Reagents/Materials/metals.yml b/Resources/Prototypes/Reagents/Materials/metals.yml index b04e9bdc84..dec7bfff99 100644 --- a/Resources/Prototypes/Reagents/Materials/metals.yml +++ b/Resources/Prototypes/Reagents/Materials/metals.yml @@ -1,14 +1,14 @@ - type: material id: Steel stack: Steel - name: steel + name: materials-steel icon: Objects/Materials/Sheets/metal.rsi/steel.png price: 0.0025 - type: material id: Gold stack: Gold - name: gold + name: materials-gold icon: Objects/Materials/ingots.rsi/gold.png color: "#FFD700" price: 0.0625 @@ -16,7 +16,7 @@ - type: material id: Silver stack: Silver - name: silver + name: materials-silver icon: Objects/Materials/ingots.rsi/silver.png color: "#C0C0C0" price: 0.025 @@ -24,7 +24,7 @@ - type: material id: Plasteel stack: Plasteel - name: plasteel + name: materials-plasteel icon: Objects/Materials/Sheets/metal.rsi/plasteel.png color: "#696969" #Okay, this is epic price: 0.1025 # 1-1 mix of plasma and steel.