mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-23 07:26:05 +00:00
31 lines
637 B
Plaintext
31 lines
637 B
Plaintext
/obj/effect/decal/cleanable/crayon
|
|
name = "rune"
|
|
desc = "A rune drawn in crayon."
|
|
icon = 'icons/effects/crayondecal.dmi'
|
|
icon_state = "rune1"
|
|
layer = 2.1
|
|
anchored = 1
|
|
|
|
|
|
/obj/effect/decal/cleanable/crayon/examine()
|
|
set src in view(2)
|
|
..()
|
|
return
|
|
|
|
|
|
/obj/effect/decal/cleanable/crayon/New(location,main = "#FFFFFF", var/type = "rune")
|
|
..()
|
|
loc = location
|
|
|
|
name = type
|
|
desc = "A [type] drawn in crayon."
|
|
|
|
switch(type)
|
|
if("rune")
|
|
type = "rune[rand(1,6)]"
|
|
if("graffiti")
|
|
type = pick("amyjon","face","matt","revolution","engie","guy","end","dwarf","uboa")
|
|
|
|
|
|
icon_state = type
|
|
color = main |