mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 13:37:47 +03:00
* add ignore chance * twekas * add damaging and repairing * grounding rod undestructable by tesla (cherry picked from commit 5e1fcfc63ead8749aeb0b2c77b477d2762ba62d9)
18 lines
587 B
C#
18 lines
587 B
C#
using Content.Server.Tesla.EntitySystems;
|
|
|
|
namespace Content.Server.Tesla.Components;
|
|
|
|
/// <summary>
|
|
/// Generates electricity from lightning bolts
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(TeslaCoilSystem))]
|
|
public sealed partial class TeslaCoilComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// How much power will the coil generate from a lightning strike
|
|
/// </summary>
|
|
// To Do: Different lightning bolts have different powers and generate different amounts of energy
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public float ChargeFromLightning = 50000f;
|
|
}
|