Add plant species mutations (#19960)

This commit is contained in:
Doru991
2023-09-14 07:56:24 +03:00
committed by GitHub
parent 78373d5975
commit 3f51795cc7
99 changed files with 1021 additions and 9 deletions

View File

@@ -168,7 +168,7 @@ public partial class SeedData
[DataField("seedless")] public bool Seedless = false;
/// <summary>
/// If true, rapidly decrease health while growing. Used to kill off
/// If false, rapidly decrease health while growing. Used to kill off
/// plants with "bad" mutations.
/// </summary>
[DataField("viable")] public bool Viable = true;
@@ -228,6 +228,12 @@ public partial class SeedData
#endregion
/// <summary>
/// The seed prototypes this seed may mutate into when prompted to.
/// </summary>
[DataField("mutationPrototypes", customTypeSerializer: typeof(PrototypeIdListSerializer<SeedPrototype>))]
public List<string> MutationPrototypes = new();
public SeedData Clone()
{
DebugTools.Assert(!Immutable, "There should be no need to clone an immutable seed.");
@@ -241,6 +247,7 @@ public partial class SeedData
PacketPrototype = PacketPrototype,
ProductPrototypes = new List<string>(ProductPrototypes),
MutationPrototypes = new List<string>(MutationPrototypes),
Chemicals = new Dictionary<string, SeedChemQuantity>(Chemicals),
ConsumeGasses = new Dictionary<Gas, float>(ConsumeGasses),
ExudeGasses = new Dictionary<Gas, float>(ExudeGasses),