Files
Polaris/code/modules/xenoarcheaology/artifacts/crystal.dm
2022-04-17 19:14:32 -08:00

36 lines
922 B
Plaintext

/obj/structure/crystal
name = "large crystal"
icon = 'icons/obj/xenoarchaeology.dmi'
icon_state = "crystal"
density = 1
/obj/structure/crystal/Initialize()
. = ..()
icon_state = pick("ano70","ano80")
desc = pick(
"It shines faintly as it catches the light.",
"It appears to have a faint inner glow.",
"It seems to draw you inward as you look it at.",
"Something twinkles faintly as you look at it.",
"It's mesmerizing to behold.")
/obj/structure/crystal/Destroy()
src.visible_message("<font color='red'><b>[src] shatters!</b></font>")
if(prob(75))
new /obj/item/material/shard/phoron(src.loc)
if(prob(50))
new /obj/item/material/shard/phoron(src.loc)
if(prob(25))
new /obj/item/material/shard/phoron(src.loc)
if(prob(75))
new /obj/item/material/shard(src.loc)
if(prob(50))
new /obj/item/material/shard(src.loc)
if(prob(25))
new /obj/item/material/shard(src.loc)
..()
//todo: laser_act