using Content.Shared.Random; using Robust.Shared.Prototypes; namespace Content.Shared.Mining.Components; /// /// Defines an entity that will drop a random ore after being destroyed. /// [RegisterComponent] public sealed partial class OreVeinComponent : Component { /// /// How often an entity will be seeded with ore. Note: the amount of ore /// that is dropped is dependent on the ore prototype. /// [DataField] public float OreChance = 0.1f; /// /// The weighted random prototype used for determining what ore will be dropped. /// [DataField] public ProtoId? OreRarityPrototypeId; /// /// The ore that this entity holds. /// If set in the prototype, it will not be overriden. /// [DataField] public ProtoId? CurrentOre; }