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

@@ -47,5 +47,10 @@ public sealed class TeslaEnergyBallSystem : EntitySystem
component.Energy -= component.NeedEnergyToSpawn;
Spawn(component.SpawnProto, Transform(uid).Coordinates);
}
if (component.Energy < component.EnergyToDespawn)
{
_audio.PlayPvs(component.SoundCollapse, uid);
QueueDel(uid);
}
}
}