Add plant species mutations (#19960)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user