Merge pull request #5106 from Citadel-Station-13/upstream-merge-34852

[MIRROR] Power Cell explosions are now log
This commit is contained in:
deathride58
2018-01-26 15:49:55 +00:00
committed by GitHub

View File

@@ -116,16 +116,12 @@
var/turf/T = get_turf(src.loc)
if (charge==0)
return
var/devastation_range = -1 //round(charge/11000)
var/heavy_impact_range = round(sqrt(charge)/60)
var/light_impact_range = round(sqrt(charge)/30)
var/flash_range = light_impact_range
if (light_impact_range==0)
var/explosion_power = round(sqrt(charge)/3)
if (explosion_power < 5)
rigged = 0
corrupt()
return
//explosion(T, 0, 1, 2, 2)
explosion(T, devastation_range, heavy_impact_range, light_impact_range, flash_range)
dyn_explosion(T, explosion_power, 2, ignorecap = FALSE, flame_range = 2)
qdel(src)
/obj/item/stock_parts/cell/proc/corrupt()