Files
crystall-punk-14/Content.Shared/_CP14/Farming/Components/CP14PlantFadingComponent.cs
Ed 48831380b4 Give some love to farming (#1124)
* give some love to farming

* Queryptimization

* Fuck soil!!!

* fuck soil in prototypes!

* seeds improve

* partial merge wild and farm

* some strange fix

* plant kills refactor, add compost

* fix compost

* Update migration.yml

* rain can watering plants

* sage update

* Update seeds.yml

* sage smoking update

* Update seeds.yml
2025-04-03 15:29:08 +03:00

27 lines
741 B
C#

using Content.Shared.Damage;
using Content.Shared.FixedPoint;
namespace Content.Shared._CP14.Farming.Components;
/// <summary>
/// Gradually wastes the plant's resources, killing it if there aren't enough. The waste gradually increases over time, reflecting the "Old Age" of the plant
/// </summary>
[RegisterComponent, Access(typeof(CP14SharedFarmingSystem))]
public sealed partial class CP14PlantFadingComponent : Component
{
[DataField]
public TimeSpan BirthTime = TimeSpan.Zero;
[DataField]
public float ResourcePerMinute = 0f;
[DataField]
public DamageSpecifier FadeDamage = new()
{
DamageDict = new Dictionary<string, FixedPoint2>
{
{ "Cellular", 0.05 },
},
};
}