mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-22 12:46:40 +01:00
36 lines
922 B
Plaintext
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
|