using Content.Shared.Random;
using Robust.Shared.Prototypes;
using Content.Shared.Whitelist; // Frontier
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;
///
/// Frontier: if this ore is somehow "ruined", set this to true before destroying the entity.
///
[DataField]
public bool PreventSpawning;
///
/// Frontier: whitelist to check when gathering materials - these entities are too strong and ruin the ore.
///
[DataField]
public EntityWhitelist? GatherDestructionWhitelist;
}