using Robust.Shared.Prototypes;
namespace Content.Shared.TreeBranch;
[RegisterComponent]
public sealed partial class TreeBranchesComponent : Component
{
///
/// The current number of branches on the tree.
///
[DataField("currentBranches")]
public int CurrentBranches = 0;
///
/// The maximum number of branches the tree can have.
///
[DataField("maxBranches")]
public int MaxBranches = 3;
///
/// Time (in seconds) between each branch growth.
///
[DataField("growthTime")]
public float GrowthTime = 3600.0f; // 1 hour per branch
///
/// Probability of spawning an item when collecting a branch.
/// There is a chance that the collection attempt yields no usable branch.
///
[DataField("spawnProbability")]
public float SpawnProbability = 0.8f;
///
/// The timestamp of the last branch growth.
///
[DataField("lastGrowthTime")]
public TimeSpan LastGrowthTime = TimeSpan.Zero;
///
/// The time taken to collect branch from a tree
///
[DataField("collectionTime")]
public float CollectionTime { get; set; } = 5.0f;
}