mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
Indestructible objects don't explode from tesla (#46895)
Title. Prevents indestructible objects such as turret controller and authentication keys from exploding dozens of times from a tesloose. Could also stop lag and unintended deletion of objects not meant to be deleted such as the self destruct terminal.
This commit is contained in:
@@ -530,7 +530,7 @@ Class Procs:
|
||||
|
||||
/obj/machinery/tesla_act(power, tesla_flags, shocked_objects)
|
||||
..()
|
||||
if(prob(85) && (tesla_flags & TESLA_MACHINE_EXPLOSIVE))
|
||||
if(prob(85) && (tesla_flags & TESLA_MACHINE_EXPLOSIVE) && !(resistance_flags & INDESTRUCTIBLE))
|
||||
explosion(src, 1, 2, 4, flame_range = 2, adminlog = FALSE, smoke = FALSE)
|
||||
if(tesla_flags & TESLA_OBJ_DAMAGE)
|
||||
take_damage(power/2000, BURN, "energy")
|
||||
|
||||
Reference in New Issue
Block a user