mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
fixes single tank bombs (#58818)
* fixes single tank bombs * move qdel later
This commit is contained in:
@@ -157,21 +157,17 @@
|
||||
|
||||
var/turf/ground_zero = get_turf(loc)
|
||||
|
||||
if(master)
|
||||
qdel(master)
|
||||
qdel(src)
|
||||
|
||||
if(bomb_mixture.temperature > (T0C + 400))
|
||||
strength = (fuel_moles/15)
|
||||
|
||||
if(strength >=2)
|
||||
explosion(src, devastation_range = round(strength,1), heavy_impact_range = round(strength*2,1), light_impact_range = round(strength*3,1), flash_range = round(strength*4,1))
|
||||
explosion(ground_zero, devastation_range = round(strength,1), heavy_impact_range = round(strength*2,1), light_impact_range = round(strength*3,1), flash_range = round(strength*4,1))
|
||||
else if(strength >=1)
|
||||
explosion(src, devastation_range = round(strength,1), heavy_impact_range = round(strength*2,1), light_impact_range = round(strength*2,1), flash_range = round(strength*3,1))
|
||||
explosion(ground_zero, devastation_range = round(strength,1), heavy_impact_range = round(strength*2,1), light_impact_range = round(strength*2,1), flash_range = round(strength*3,1))
|
||||
else if(strength >=0.5)
|
||||
explosion(src, heavy_impact_range = 1, light_impact_range = 2, flash_range = 4)
|
||||
explosion(ground_zero, heavy_impact_range = 1, light_impact_range = 2, flash_range = 4)
|
||||
else if(strength >=0.2)
|
||||
explosion(src, devastation_range = -1, light_impact_range = 1, flash_range = 2)
|
||||
explosion(ground_zero, devastation_range = -1, light_impact_range = 1, flash_range = 2)
|
||||
else
|
||||
ground_zero.assume_air(bomb_mixture)
|
||||
ground_zero.hotspot_expose(1000, 125)
|
||||
@@ -200,6 +196,10 @@
|
||||
ground_zero.assume_air(bomb_mixture)
|
||||
ground_zero.hotspot_expose(1000, 125)
|
||||
|
||||
if(master)
|
||||
qdel(master)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/tank/proc/release() //This happens when the bomb is not welded. Tank contents are just spat out.
|
||||
var/datum/gas_mixture/our_mix = return_air()
|
||||
var/datum/gas_mixture/removed = remove_air(our_mix.total_moles())
|
||||
|
||||
Reference in New Issue
Block a user