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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user