Teslaloose and Singuloose counterplay (#23444)

* add tesla dissapear mechanic
add field holobarrier

* add PD

* add crafting

* spacing

* added to cargo

* Fix

* resprite + damageable

* oopsie

* Update Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml

Co-authored-by: Kara <lunarautomaton6@gmail.com>

* Update Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml

Co-authored-by: Kara <lunarautomaton6@gmail.com>

* Update Resources/Locale/en-US/research/technologies.ftl

Co-authored-by: Kara <lunarautomaton6@gmail.com>

---------

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Ed
2024-01-05 05:48:09 +03:00
committed by GitHub
parent bb100e54ce
commit 0f8c004a2f
22 changed files with 253 additions and 0 deletions

View File

@@ -28,6 +28,18 @@ public sealed partial class TeslaEnergyBallComponent : Component
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float NeedEnergyToSpawn = 100f;
/// <summary>
/// The amount of energy to which the tesla must reach in order to be destroyed.
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float EnergyToDespawn = -100f;
/// <summary>
/// Played when energy reaches the lower limit (and entity destroyed)
/// </summary>
[DataField]
public SoundSpecifier? SoundCollapse;
/// <summary>
/// Entities that spawn when the energy limit is reached
/// </summary>