2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Singularity.Components
|
2021-05-28 10:44:13 +01:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Overrides exactly how much energy this object gives to a singularity.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class SinguloFoodComponent : Component
|
2021-05-28 10:44:13 +01:00
|
|
|
{
|
2025-03-03 17:37:28 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Flat adjustment to the singularity's energy when this entity is eaten by the event horizon.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField]
|
|
|
|
|
public float Energy = 1f;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Multiplier applied to singularity's energy.
|
|
|
|
|
/// 1.0 = no change, 0.97 = 3% reduction, 1.05 = 5% increase
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// /// <remarks>
|
|
|
|
|
/// This is calculated using the singularity's energy level before <see cref="Energy"/> has been added.
|
|
|
|
|
/// </remarks>
|
|
|
|
|
[DataField]
|
|
|
|
|
public float EnergyFactor = 1f;
|
2021-05-28 10:44:13 +01:00
|
|
|
}
|
|
|
|
|
}
|