diff --git a/code/game/objects/effects/spawners/graffiti.dm b/code/game/objects/effects/spawners/graffiti.dm new file mode 100644 index 0000000000..afac11f4f1 --- /dev/null +++ b/code/game/objects/effects/spawners/graffiti.dm @@ -0,0 +1,28 @@ +/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() + ..() + + 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 + + qdel(src) diff --git a/icons/effects/map_effects.dmi b/icons/effects/map_effects.dmi index 0f28f9d2da..8b2dc22e3c 100644 Binary files a/icons/effects/map_effects.dmi and b/icons/effects/map_effects.dmi differ diff --git a/polaris.dme b/polaris.dme index a3784bec3d..1484dc6a00 100644 --- a/polaris.dme +++ b/polaris.dme @@ -969,6 +969,7 @@ #include "code\game\objects\effects\prop\snake.dm" #include "code\game\objects\effects\spawners\bombspawner.dm" #include "code\game\objects\effects\spawners\gibspawner.dm" +#include "code\game\objects\effects\spawners\graffiti.dm" #include "code\game\objects\effects\temporary_visuals\miscellaneous.dm" #include "code\game\objects\effects\temporary_visuals\temporary_visual.dm" #include "code\game\objects\effects\temporary_visuals\projectiles\impact.dm"