Recursive explosion resistance values for walls, space tiles, grilles and airlocks tweaked

Lattices now spawn properly when a floor tile is destroyed by an explosion. Probabilities involved tweaked
This commit is contained in:
RavingManiac
2015-05-03 21:53:02 +10:00
parent d068b57388
commit 97adee16db
5 changed files with 24 additions and 19 deletions

View File

@@ -82,19 +82,19 @@ var/list/wood_icons = list("wood","wood-broken")
if(1.0)
src.ChangeTurf(/turf/space)
if(2.0)
switch(pick(1,2;75,3))
switch(pick(40;1,40;2,3))
if (1)
src.ReplaceWithLattice()
if(prob(33)) new /obj/item/stack/sheet/metal(src)
src.ReplaceWithLattice()
if(2)
src.ChangeTurf(/turf/space)
if(3)
if(prob(33)) new /obj/item/stack/sheet/metal(src)
if(prob(80))
src.break_tile_to_plating()
else
src.break_tile()
src.hotspot_expose(1000,CELL_VOLUME)
if(prob(33)) new /obj/item/stack/sheet/metal(src)
if(3.0)
if (prob(50))
src.break_tile()

View File

@@ -338,7 +338,8 @@
/turf/proc/ReplaceWithLattice()
src.ChangeTurf(/turf/space)
new /obj/structure/lattice( locate(src.x, src.y, src.z) )
spawn()
new /obj/structure/lattice( locate(src.x, src.y, src.z) )
/turf/proc/kill_creatures(mob/U = null)//Will kill people/creatures and damage mechs./N
//Useful to batch-add creatures to the list.