adds an ex_act to ore boxes. Explosions no longer del all the ore in a box

This commit is contained in:
Graham Lloyd
2014-10-22 16:58:44 -04:00
parent dfee656826
commit 6ff6abf7b4

View File

@@ -95,4 +95,22 @@
O.loc = src.loc
usr << "\blue You empty the ore box"
return
return
/obj/structure/ore_box/ex_act(severity)
switch(severity)
if(1.0)
for(var/obj/item/weapon/ore/O in contents)
O.loc = src.loc
O.ex_act(severity++)
del(src)
return
if(2.0)
if(prob(50))
for(var/obj/item/weapon/ore/O in contents)
O.loc = src.loc
O.ex_act(severity++)
del(src)
return
if(3.0)
return