Disease artifact cleanup (#7359)
This commit is contained in:
@@ -8,14 +8,14 @@ namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
|
||||
[RegisterComponent]
|
||||
public sealed class DiseaseArtifactComponent : Component
|
||||
{
|
||||
public override string Name => "DiseaseArtifact";
|
||||
/// <summary>
|
||||
/// Disease the artifact will spawn
|
||||
/// If empty, picks a random one from its list
|
||||
/// </summary>
|
||||
[DataField("disease", customTypeSerializer: typeof(PrototypeIdSerializer<DiseasePrototype>))]
|
||||
[DataField("disease")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public string SpawnDisease = string.Empty;
|
||||
public DiseasePrototype? SpawnDisease;
|
||||
|
||||
/// <summary>
|
||||
/// How far away it will check for people
|
||||
/// If empty, picks a random one from its list
|
||||
@@ -23,15 +23,4 @@ public sealed class DiseaseArtifactComponent : Component
|
||||
[DataField("range")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public float Range = 5f;
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public DiseasePrototype ResolveDisease = default!;
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public readonly IReadOnlyList<string> ArtifactDiseases = new[]
|
||||
{
|
||||
"VanAusdallsRobovirus",
|
||||
"OwOnavirus",
|
||||
"BleedersBite",
|
||||
"Ultragigacancer",
|
||||
"AMIV"
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user