1
0

SinguloFoodComponent.cs 863 B

12345678910111213141516171819202122232425
  1. namespace Content.Server.Singularity.Components
  2. {
  3. /// <summary>
  4. /// Overrides exactly how much energy this object gives to a singularity.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class SinguloFoodComponent : Component
  8. {
  9. /// <summary>
  10. /// Flat adjustment to the singularity's energy when this entity is eaten by the event horizon.
  11. /// </summary>
  12. [DataField]
  13. public float Energy = 1f;
  14. /// <summary>
  15. /// Multiplier applied to singularity's energy.
  16. /// 1.0 = no change, 0.97 = 3% reduction, 1.05 = 5% increase
  17. /// </summary>
  18. /// /// <remarks>
  19. /// This is calculated using the singularity's energy level before <see cref="Energy"/> has been added.
  20. /// </remarks>
  21. [DataField]
  22. public float EnergyFactor = 1f;
  23. }
  24. }