* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
54 lines
1.4 KiB
Plaintext
54 lines
1.4 KiB
Plaintext
/obj/effect/decal/cleanable/crayon
|
|
name = "rune"
|
|
desc = "Graffiti. Damn kids."
|
|
icon = 'icons/effects/crayondecal.dmi'
|
|
icon_state = "rune1"
|
|
gender = NEUTER
|
|
var/do_icon_rotate = TRUE
|
|
|
|
/obj/effect/decal/cleanable/crayon/Initialize(mapload, main = "#FFFFFF", var/type = "rune1", var/e_name = "rune", var/rotation = 0, var/alt_icon = null)
|
|
..()
|
|
|
|
name = e_name
|
|
desc = "A [name] vandalizing the station."
|
|
if(type == "poseur tag")
|
|
type = pick(GLOB.gang_name_pool)
|
|
|
|
if(alt_icon)
|
|
icon = alt_icon
|
|
icon_state = type
|
|
|
|
if(rotation && do_icon_rotate)
|
|
var/matrix/M = matrix()
|
|
M.Turn(rotation)
|
|
src.transform = M
|
|
|
|
add_atom_colour(main, FIXED_COLOUR_PRIORITY)
|
|
|
|
|
|
/obj/effect/decal/cleanable/crayon/gang
|
|
layer = HIGH_OBJ_LAYER //Harder to hide
|
|
do_icon_rotate = FALSE //These are designed to always face south, so no rotation please.
|
|
var/datum/gang/gang
|
|
|
|
/obj/effect/decal/cleanable/crayon/gang/Initialize(mapload, var/datum/gang/G, var/e_name = "gang tag", var/rotation = 0)
|
|
if(!type || !G)
|
|
qdel(src)
|
|
|
|
var/area/territory = get_area(src)
|
|
gang = G
|
|
var/newcolor = G.color_hex
|
|
icon_state = G.name
|
|
G.territory_new |= list(territory.type = territory.name)
|
|
|
|
..(mapload, newcolor, icon_state, e_name, rotation)
|
|
|
|
/obj/effect/decal/cleanable/crayon/gang/Destroy()
|
|
var/area/territory = get_area(src)
|
|
|
|
if(gang)
|
|
gang.territory -= territory.type
|
|
gang.territory_new -= territory.type
|
|
gang.territory_lost |= list(territory.type = territory.name)
|
|
return ..()
|