internal explosions

if some explosive reaction occurs - it firstly tries to explode container, next the surroundings
if container is alive - it cuts half of explosion power, if it is dead in process - cut an half again
This commit is contained in:
Ater Ignis
2012-11-09 20:24:44 +04:00
parent 3cfb201846
commit 116b17e2be
3 changed files with 36 additions and 5 deletions

View File

@@ -1092,4 +1092,17 @@ steam.start() -- spawns the effect
for(var/mob/M in viewers(8, location))
M << "\red The solution violently explodes."
explosion(location, devastation, heavy, light, flash)
explosion(location, devastation, heavy, light, flash)
proc/holder_damage(var/atom/holder)
if(holder)
var/dmglevel = 4
if (round(amount/8) > 0)
dmglevel = 1
else if (round(amount/4) > 0)
dmglevel = 2
else if (round(amount/2) > 0)
dmglevel = 3
if(dmglevel<4) holder.ex_act(dmglevel)