Files
VOREStation/code/modules/xenoarcheaology/artifacts/crystal.dm
T
SatinIsle 94e61bdfc0 Fixes some bad Destroy()s (#17511)
* Fixes some bad Destroy()s

Fixes some bad destroys on request of Kash, will need checking over that I've not misunderstood the instructions! This is all I had time to look through for now. Checked around 200-ish files.

* The rest of them

Found a quick way to look through them all

* Update chicken.dm

* fix that

* don't abuse destroy

* .

* move this up

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-04-12 00:15:42 +02:00

36 lines
921 B
Plaintext

/obj/structure/crystal
name = "large crystal"
icon = 'icons/obj/xenoarchaeology.dmi'
icon_state = "crystal"
density = TRUE
/obj/structure/crystal/Initialize(mapload)
. = ..()
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(span_bolddanger("[src] shatters!"))
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