Localize gases (#11376)
This commit is contained in:
@@ -7,7 +7,14 @@ namespace Content.Shared.Atmos.Prototypes
|
|||||||
[Prototype("gas")]
|
[Prototype("gas")]
|
||||||
public sealed class GasPrototype : IPrototype
|
public sealed class GasPrototype : IPrototype
|
||||||
{
|
{
|
||||||
[DataField("name")] public string Name { get; } = string.Empty;
|
private string _name = string.Empty;
|
||||||
|
|
||||||
|
[DataField("name")]
|
||||||
|
public string Name
|
||||||
|
{
|
||||||
|
get => _name;
|
||||||
|
private set => _name = Loc.GetString(value);
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Control gas amount necessary for overlay to appear
|
// TODO: Control gas amount necessary for overlay to appear
|
||||||
// TODO: Add interfaces for gas behaviours e.g. breathing, burning
|
// TODO: Add interfaces for gas behaviours e.g. breathing, burning
|
||||||
|
|||||||
9
Resources/Locale/en-US/gases/gases.ftl
Normal file
9
Resources/Locale/en-US/gases/gases.ftl
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
gases-oxygen = Oxygen
|
||||||
|
gases-nitrogen = Nitrogen
|
||||||
|
gases-co2 = Carbon Dioxide
|
||||||
|
gases-plasma = Plasma
|
||||||
|
gases-tritium = Tritium
|
||||||
|
gases-water-vapor = Water Vapor
|
||||||
|
gases-miasma = Miasma
|
||||||
|
gases-n2o = Nitrous Oxide
|
||||||
|
gases-frezon = Frezon
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
- type: gas
|
- type: gas
|
||||||
id: 0
|
id: 0
|
||||||
name: Oxygen
|
name: gases-oxygen
|
||||||
specificHeat: 20
|
specificHeat: 20
|
||||||
heatCapacityRatio: 1.4
|
heatCapacityRatio: 1.4
|
||||||
molarMass: 32
|
molarMass: 32
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
- type: gas
|
- type: gas
|
||||||
id: 1
|
id: 1
|
||||||
name: Nitrogen
|
name: gases-nitrogen
|
||||||
specificHeat: 30
|
specificHeat: 30
|
||||||
heatCapacityRatio: 1.4
|
heatCapacityRatio: 1.4
|
||||||
molarMass: 28
|
molarMass: 28
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
- type: gas
|
- type: gas
|
||||||
id: 2
|
id: 2
|
||||||
name: Carbon Dioxide
|
name: gases-co2
|
||||||
specificHeat: 30
|
specificHeat: 30
|
||||||
heatCapacityRatio: 1.3
|
heatCapacityRatio: 1.3
|
||||||
molarMass: 44
|
molarMass: 44
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
- type: gas
|
- type: gas
|
||||||
id: 3
|
id: 3
|
||||||
name: Plasma
|
name: gases-plasma
|
||||||
specificHeat: 200
|
specificHeat: 200
|
||||||
heatCapacityRatio: 1.7
|
heatCapacityRatio: 1.7
|
||||||
molarMass: 120
|
molarMass: 120
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
- type: gas
|
- type: gas
|
||||||
id: 4
|
id: 4
|
||||||
name: Tritium
|
name: gases-tritium
|
||||||
specificHeat: 10
|
specificHeat: 10
|
||||||
heatCapacityRatio: 1.3
|
heatCapacityRatio: 1.3
|
||||||
molarMass: 6
|
molarMass: 6
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
- type: gas
|
- type: gas
|
||||||
id: 5
|
id: 5
|
||||||
name: Water Vapor
|
name: gases-water-vapor
|
||||||
specificHeat: 40
|
specificHeat: 40
|
||||||
heatCapacityRatio: 1.33
|
heatCapacityRatio: 1.33
|
||||||
molarMass: 18
|
molarMass: 18
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
- type: gas
|
- type: gas
|
||||||
id: 6
|
id: 6
|
||||||
name: Miasma
|
name: gases-miasma
|
||||||
specificHeat: 20
|
specificHeat: 20
|
||||||
heatCapacityRatio: 1.4
|
heatCapacityRatio: 1.4
|
||||||
molarMass: 44
|
molarMass: 44
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
- type: gas
|
- type: gas
|
||||||
id: 7
|
id: 7
|
||||||
name: NitrousOxide
|
name: gases-n2o
|
||||||
specificHeat: 40
|
specificHeat: 40
|
||||||
heatCapacityRatio: 1.3
|
heatCapacityRatio: 1.3
|
||||||
molarMass: 44
|
molarMass: 44
|
||||||
|
|||||||
Reference in New Issue
Block a user