Files
VOREStation/code/game/objects/effects/spawners/graffiti.dm
T
Kashargul 46bea7cfa2 Initialize fixing (#17279)
* Initialoize fixing

* diff fix

* add init grep test

* fixed missed ones

* .

* some more

* ,
2025-03-08 13:59:29 -05:00

29 lines
829 B
Plaintext

/obj/effect/graffitispawner
name = "old scrawling"
icon = 'icons/effects/map_effects.dmi'
icon_state = "graffiti"
var/graffiti_type // The text string for the desired icon state of your graffiti.
// If the effect's color is not set, it will be chosen at random.
var/color_secondary // The hexcode for the desired secondary color of your graffiti. If blank, it will inherit this effect's color.
/obj/effect/graffitispawner/Initialize(mapload)
..()
if(!color)
color = rgb(rand(1,255),rand(1,255),rand(1,255))
if(!color_secondary)
color_secondary = color
if(!graffiti_type)
graffiti_type = pick("rune", "graffiti", "left", "right", "up", "down")
var/turf/T = get_turf(src)
var/obj/effect/decal/cleanable/crayon/C = new(T, color, color_secondary, graffiti_type)
C.name = name
return INITIALIZE_HINT_QDEL