Adding an ex_act() proc to ore_box so the ores it contains aren't all deleted when the box is deleted by an explosion.

This commit is contained in:
phil235
2014-10-11 15:42:29 +02:00
parent ac9a5bfe0e
commit 74db5df591
+18
View File
@@ -82,3 +82,21 @@
usr << "<span class='notice'>You empty the box.</span>"
src.updateUsrDialog()
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++)
qdel(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++)
qdel(src)
return
if(3.0)
return