Merge pull request #5193 from phil235/OreBoxExFix

Fix for #5191
This commit is contained in:
Remie Richards
2014-10-13 11:49:41 +01:00
+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