mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 12:04:48 +01:00
Just a miniupdate, more on the way later.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@954 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/proc/start_events()
|
||||
if(prob(50))//Every 120 seconds and prob 50 4-8 weak spacedusts will hit the station
|
||||
if(prob(50))//Every 120 seconds and prob 50 2-4 weak spacedusts will hit the station
|
||||
spawn(1)
|
||||
dust_swarm("weak")
|
||||
if (!event && prob(eventchance))
|
||||
|
||||
@@ -9,7 +9,7 @@ The "dust" will damage the hull of the station causin minor hull breaches.
|
||||
var/numbers = 1
|
||||
switch(strength)
|
||||
if("weak")
|
||||
numbers = rand(4,8)
|
||||
numbers = rand(2,4)
|
||||
for(var/i = 0 to numbers)
|
||||
new/obj/space_dust/weak()
|
||||
if("norm")
|
||||
|
||||
@@ -72,8 +72,10 @@
|
||||
mo.show_message(rendered, 2)
|
||||
return
|
||||
|
||||
/proc/is_item_in_list(var/list/L, var/atom/A)
|
||||
for(var/atom/O in L)
|
||||
if(O == A)
|
||||
/proc/is_type_in_list(var/list/L, var/atom/A)
|
||||
for(var/type in L)
|
||||
if(isnull(type))
|
||||
continue
|
||||
if(istype(A, type))
|
||||
return 1
|
||||
return 0
|
||||
Reference in New Issue
Block a user