Localize diseases (#11916)
This commit is contained in:
@@ -11,12 +11,18 @@ namespace Content.Shared.Disease
|
|||||||
[DataDefinition]
|
[DataDefinition]
|
||||||
public sealed class DiseasePrototype : IPrototype, IInheritingPrototype
|
public sealed class DiseasePrototype : IPrototype, IInheritingPrototype
|
||||||
{
|
{
|
||||||
|
private string _name = string.Empty;
|
||||||
|
|
||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
[IdDataFieldAttribute]
|
[IdDataFieldAttribute]
|
||||||
public string ID { get; } = default!;
|
public string ID { get; } = default!;
|
||||||
|
|
||||||
[DataField("name")]
|
[DataField("name")]
|
||||||
public string Name { get; } = string.Empty;
|
public string Name
|
||||||
|
{
|
||||||
|
get => _name;
|
||||||
|
private set => _name = Loc.GetString(value);
|
||||||
|
}
|
||||||
|
|
||||||
[ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer<DiseasePrototype>))]
|
[ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer<DiseasePrototype>))]
|
||||||
public string[]? Parents { get; private set; }
|
public string[]? Parents { get; private set; }
|
||||||
|
|||||||
21
Resources/Locale/en-US/disease/disease-proto.ftl
Normal file
21
Resources/Locale/en-US/disease/disease-proto.ftl
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# Noninfectious
|
||||||
|
disease-proto-ultragigacancer = ultragigacancer
|
||||||
|
disease-proto-spectral-tiredness = spectral tiredness
|
||||||
|
disease-proto-lung-cancer = Stage IIIA Lung Cancer
|
||||||
|
|
||||||
|
# Infectious
|
||||||
|
disease-proto-space-cold = space cold
|
||||||
|
disease-proto-vent-cough = vent cough
|
||||||
|
disease-proto-space-flu = space flu
|
||||||
|
disease-proto-bird-flew = bird flew
|
||||||
|
disease-proto-robovirus = Van Ausdall's Robovirus
|
||||||
|
disease-proto-amiv = AMIV
|
||||||
|
disease-proto-amirmir = Memetic Amirmir
|
||||||
|
disease-proto-bleeders = Bleeder's Bite
|
||||||
|
disease-proto-plague = plague
|
||||||
|
disease-proto-owonavirus = OwOnavirus
|
||||||
|
disease-proto-tongue-twister = Tongue Twister
|
||||||
|
|
||||||
|
# Zombie
|
||||||
|
disease-proto-zombie = Zombie Virus
|
||||||
|
disease-proto-zombie-passive = Zombie Virus
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
- type: disease
|
- type: disease
|
||||||
id: SpaceCold
|
id: SpaceCold
|
||||||
name: space cold
|
name: disease-proto-space-cold
|
||||||
cureResist: 0
|
cureResist: 0
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseAdjustReagent
|
- !type:DiseaseAdjustReagent
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: VentCough
|
id: VentCough
|
||||||
name: vent cough
|
name: disease-proto-vent-cough
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseasePopUp
|
- !type:DiseasePopUp
|
||||||
probability: 0.025
|
probability: 0.025
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: SpaceFlu
|
id: SpaceFlu
|
||||||
name: space flu
|
name: disease-proto-space-flu
|
||||||
cureResist: 0.08
|
cureResist: 0.08
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseVomit
|
- !type:DiseaseVomit
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: BirdFlew
|
id: BirdFlew
|
||||||
name: bird flew
|
name: disease-proto-bird-flew
|
||||||
cureResist: 0.08
|
cureResist: 0.08
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseVomit
|
- !type:DiseaseVomit
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: VanAusdallsRobovirus
|
id: VanAusdallsRobovirus
|
||||||
name: Van Ausdall's Robovirus
|
name: disease-proto-robovirus
|
||||||
cureResist: 0.1
|
cureResist: 0.1
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseAdjustReagent
|
- !type:DiseaseAdjustReagent
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: AMIV
|
id: AMIV
|
||||||
name: AMIV
|
name: disease-proto-amiv
|
||||||
cureResist: 0.10
|
cureResist: 0.10
|
||||||
stages:
|
stages:
|
||||||
- 0
|
- 0
|
||||||
@@ -210,7 +210,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: MemeticAmirmir
|
id: MemeticAmirmir
|
||||||
name: Memetic Amirmir
|
name: disease-proto-amirmir
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseGenericStatusEffect
|
- !type:DiseaseGenericStatusEffect
|
||||||
probability: 0.015
|
probability: 0.015
|
||||||
@@ -226,7 +226,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: BleedersBite
|
id: BleedersBite
|
||||||
name: Bleeder's Bite
|
name: disease-proto-bleeders
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseAdjustReagent
|
- !type:DiseaseAdjustReagent
|
||||||
reagent: TranexamicAcid
|
reagent: TranexamicAcid
|
||||||
@@ -250,7 +250,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: Plague
|
id: Plague
|
||||||
name: plague
|
name: disease-proto-plague
|
||||||
cureResist: 0.1
|
cureResist: 0.1
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseVomit
|
- !type:DiseaseVomit
|
||||||
@@ -275,7 +275,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: OwOnavirus
|
id: OwOnavirus
|
||||||
name: OwOnavirus
|
name: disease-proto-owonavirus
|
||||||
cureResist: 0.25
|
cureResist: 0.25
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseGenericStatusEffect
|
- !type:DiseaseGenericStatusEffect
|
||||||
@@ -303,7 +303,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: TongueTwister
|
id: TongueTwister
|
||||||
name: Tongue Twister
|
name: disease-proto-tongue-twister
|
||||||
cureResist: 0.1
|
cureResist: 0.1
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseGenericStatusEffect
|
- !type:DiseaseGenericStatusEffect
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
- type: disease
|
- type: disease
|
||||||
id: Ultragigacancer
|
id: Ultragigacancer
|
||||||
name: ultragigacancer
|
name: disease-proto-ultragigacancer
|
||||||
infectious: false
|
infectious: false
|
||||||
cureResist: 0.15
|
cureResist: 0.15
|
||||||
effects:
|
effects:
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: SpectralTiredness
|
id: SpectralTiredness
|
||||||
name: spectral tiredness
|
name: disease-proto-spectral-tiredness
|
||||||
infectious: false
|
infectious: false
|
||||||
effects:
|
effects:
|
||||||
- !type:DiseaseGenericStatusEffect
|
- !type:DiseaseGenericStatusEffect
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: StageIIIALungCancer
|
id: StageIIIALungCancer
|
||||||
name: Stage IIIA Lung Cancer
|
name: disease-proto-lung-cancer
|
||||||
infectious: false
|
infectious: false
|
||||||
cureResist: 1.0
|
cureResist: 1.0
|
||||||
effects:
|
effects:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
- type: disease
|
- type: disease
|
||||||
id: ActiveZombieVirus
|
id: ActiveZombieVirus
|
||||||
name: Zombie Virus
|
name: disease-proto-zombie
|
||||||
infectious: false
|
infectious: false
|
||||||
cureResist: 0.2
|
cureResist: 0.2
|
||||||
effects:
|
effects:
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
- type: disease
|
- type: disease
|
||||||
id: PassiveZombieVirus
|
id: PassiveZombieVirus
|
||||||
name: Zombie Virus
|
name: disease-proto-zombie-passive
|
||||||
infectious: false
|
infectious: false
|
||||||
cureResist: 1 #no cure. Death is your cure.
|
cureResist: 1 #no cure. Death is your cure.
|
||||||
effects:
|
effects:
|
||||||
|
|||||||
Reference in New Issue
Block a user