Localize diseases (#11916)

This commit is contained in:
Morb
2022-10-15 07:18:33 +03:00
committed by GitHub
parent 51acdefa4d
commit e397707cc7
5 changed files with 44 additions and 17 deletions

View File

@@ -11,12 +11,18 @@ namespace Content.Shared.Disease
[DataDefinition]
public sealed class DiseasePrototype : IPrototype, IInheritingPrototype
{
private string _name = string.Empty;
[ViewVariables]
[IdDataFieldAttribute]
public string ID { get; } = default!;
[DataField("name")]
public string Name { get; } = string.Empty;
public string Name
{
get => _name;
private set => _name = Loc.GetString(value);
}
[ParentDataFieldAttribute(typeof(AbstractPrototypeIdArraySerializer<DiseasePrototype>))]
public string[]? Parents { get; private set; }

View 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

View File

@@ -1,6 +1,6 @@
- type: disease
id: SpaceCold
name: space cold
name: disease-proto-space-cold
cureResist: 0
effects:
- !type:DiseaseAdjustReagent
@@ -25,7 +25,7 @@
- type: disease
id: VentCough
name: vent cough
name: disease-proto-vent-cough
effects:
- !type:DiseasePopUp
probability: 0.025
@@ -51,7 +51,7 @@
- type: disease
id: SpaceFlu
name: space flu
name: disease-proto-space-flu
cureResist: 0.08
effects:
- !type:DiseaseVomit
@@ -73,7 +73,7 @@
- type: disease
id: BirdFlew
name: bird flew
name: disease-proto-bird-flew
cureResist: 0.08
effects:
- !type:DiseaseVomit
@@ -96,7 +96,7 @@
- type: disease
id: VanAusdallsRobovirus
name: Van Ausdall's Robovirus
name: disease-proto-robovirus
cureResist: 0.1
effects:
- !type:DiseaseAdjustReagent
@@ -116,7 +116,7 @@
- type: disease
id: AMIV
name: AMIV
name: disease-proto-amiv
cureResist: 0.10
stages:
- 0
@@ -210,7 +210,7 @@
- type: disease
id: MemeticAmirmir
name: Memetic Amirmir
name: disease-proto-amirmir
effects:
- !type:DiseaseGenericStatusEffect
probability: 0.015
@@ -226,7 +226,7 @@
- type: disease
id: BleedersBite
name: Bleeder's Bite
name: disease-proto-bleeders
effects:
- !type:DiseaseAdjustReagent
reagent: TranexamicAcid
@@ -250,7 +250,7 @@
- type: disease
id: Plague
name: plague
name: disease-proto-plague
cureResist: 0.1
effects:
- !type:DiseaseVomit
@@ -275,7 +275,7 @@
- type: disease
id: OwOnavirus
name: OwOnavirus
name: disease-proto-owonavirus
cureResist: 0.25
effects:
- !type:DiseaseGenericStatusEffect
@@ -303,7 +303,7 @@
- type: disease
id: TongueTwister
name: Tongue Twister
name: disease-proto-tongue-twister
cureResist: 0.1
effects:
- !type:DiseaseGenericStatusEffect

View File

@@ -1,6 +1,6 @@
- type: disease
id: Ultragigacancer
name: ultragigacancer
name: disease-proto-ultragigacancer
infectious: false
cureResist: 0.15
effects:
@@ -20,7 +20,7 @@
- type: disease
id: SpectralTiredness
name: spectral tiredness
name: disease-proto-spectral-tiredness
infectious: false
effects:
- !type:DiseaseGenericStatusEffect
@@ -47,7 +47,7 @@
- type: disease
id: StageIIIALungCancer
name: Stage IIIA Lung Cancer
name: disease-proto-lung-cancer
infectious: false
cureResist: 1.0
effects:

View File

@@ -1,6 +1,6 @@
- type: disease
id: ActiveZombieVirus
name: Zombie Virus
name: disease-proto-zombie
infectious: false
cureResist: 0.2
effects:
@@ -27,7 +27,7 @@
- type: disease
id: PassiveZombieVirus
name: Zombie Virus
name: disease-proto-zombie-passive
infectious: false
cureResist: 1 #no cure. Death is your cure.
effects: