1
0

TeslaCoilComponent.cs 587 B

1234567891011121314151617
  1. using Content.Server.Tesla.EntitySystems;
  2. namespace Content.Server.Tesla.Components;
  3. /// <summary>
  4. /// Generates electricity from lightning bolts
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(TeslaCoilSystem))]
  7. public sealed partial class TeslaCoilComponent : Component
  8. {
  9. /// <summary>
  10. /// How much power will the coil generate from a lightning strike
  11. /// </summary>
  12. // To Do: Different lightning bolts have different powers and generate different amounts of energy
  13. [DataField, ViewVariables(VVAccess.ReadWrite)]
  14. public float ChargeFromLightning = 50000f;
  15. }