mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Added a new random event: The immovable rod! It spawns somewhere outside the station, then proceeds to plow through the station in a straight line to a spot on the other side.
As a side effect, I had to add some ex_act() procs to things because the rods kept getting stuck on them. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@941 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -237,4 +237,24 @@
|
||||
user.drop_item()
|
||||
if(W)
|
||||
W.loc = src.loc
|
||||
else return attack_hand(user)
|
||||
else return attack_hand(user)
|
||||
|
||||
/obj/crate/ex_act(severity)
|
||||
switch(severity)
|
||||
if(1.0)
|
||||
for(var/obj/O in src.contents)
|
||||
del(O)
|
||||
del(src)
|
||||
return
|
||||
if(2.0)
|
||||
for(var/obj/O in src.contents)
|
||||
if(prob(50))
|
||||
del(O)
|
||||
del(src)
|
||||
return
|
||||
if(3.0)
|
||||
if (prob(50))
|
||||
del(src)
|
||||
return
|
||||
else
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user