mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
/datum/event/dust/meaty/announce()
|
|
if(prob(16))
|
|
GLOB.minor_announcement.Announce("Unknown biological entities have been detected near [station_name()], please stand-by.", "Lifesign Alert")
|
|
else
|
|
GLOB.minor_announcement.Announce("Meaty ores have been detected on collision course with the station.", "Meaty Ore Alert", new_sound = 'sound/AI/meteors.ogg')
|
|
|
|
/datum/event/dust/meaty/setup()
|
|
qnty = rand(45,125)
|
|
|
|
/datum/event/dust/meaty/start()
|
|
INVOKE_ASYNC(src, PROC_REF(spawn_meaty_ores))
|
|
|
|
/datum/event/dust/meaty/proc/spawn_meaty_ores()
|
|
while(qnty-- > 0)
|
|
new /obj/effect/space_dust/meaty()
|
|
if(prob(10))
|
|
sleep(rand(10,15))
|
|
|
|
/obj/effect/space_dust/meaty
|
|
icon = 'icons/mob/animal.dmi'
|
|
icon_state = "cow"
|
|
|
|
strength = 1
|
|
life = 3
|
|
shake_chance = 20
|
|
|
|
/obj/effect/space_dust/meaty/impact_meteor(atom/A)
|
|
new /obj/effect/decal/cleanable/blood(get_turf(A))
|
|
..()
|
|
|
|
/obj/effect/space_dust/meaty/on_shatter(turf/where)
|
|
if(prob(80))
|
|
gibs(where)
|
|
if(prob(45))
|
|
new /obj/item/reagent_containers/food/snacks/meat(where)
|
|
else if(prob(10))
|
|
explosion(where, 0, pick(0,1), pick(2,3), 0)
|
|
else
|
|
new /mob/living/simple_animal/cow(where)
|