Change plant clipping mechanics (#25326)

Make seeds from clipped plants inherit the decreased health from parents.
Also require one growth stage before clipping.
This commit is contained in:
Flesh
2024-02-17 06:02:12 +01:00
committed by GitHub
parent 95c9500630
commit dab2c48849
4 changed files with 34 additions and 9 deletions

View File

@@ -15,6 +15,12 @@ namespace Content.Server.Botany.Components
[DataField("seed")]
public SeedData? Seed;
/// <summary>
/// If not null, overrides the plant's initial health. Otherwise, the plant's initial health is set to the Endurance value.
/// </summary>
[DataField]
public float? HealthOverride = null;
/// <summary>
/// Name of a base seed prototype that is used if <see cref="Seed"/> is null.
/// </summary>