mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-13 17:22:41 +01:00
6f9ca19d1c
* Refactor of object spawners * Migrate loot spawner file * actually this doesn't seem like it does anything!
23 lines
864 B
Plaintext
23 lines
864 B
Plaintext
/obj/effect/spawner/graffiti
|
|
name = "old scrawling"
|
|
icon = 'icons/effects/map_effects.dmi'
|
|
icon_state = "graffiti"
|
|
|
|
/// Determines the appearance of the spawned graffiti. `rune` and `graffiti` both have unique appearances; otherwise this is jut an icon state overide.
|
|
var/graffiti_type
|
|
/// The hexcode for the desired secondary color of your graffiti. If blank, it will inherit this effect's color (unless it doesn't have one, in which case it'll be a random color).
|
|
var/color_secondary
|
|
|
|
/obj/effect/spawner/graffiti/do_spawn()
|
|
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/obj/effect/decal/cleanable/crayon/C = new(get_turf(src), color, color_secondary, graffiti_type)
|
|
C.name = name
|