mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
adds an ex_act to ore boxes. Explosions no longer del all the ore in a box
This commit is contained in:
@@ -96,3 +96,21 @@
|
|||||||
usr << "\blue You empty the ore box"
|
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
|
||||||
Reference in New Issue
Block a user