mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 19:52:12 +00:00
* Modular Painter V1 * Improved Suicide * Type & Text Also `item_state` just goes from `icon_state` so it's not needed. * Modular Painter V2 Big refactor of everything to use datums rather than separate objects. * Steel airlock stuff Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * Vile Heresy Co-authored-by: Sean Williams <12197162+S34NW@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> Co-authored-by: Sean Williams <12197162+S34NW@users.noreply.github.com>
22 lines
720 B
Plaintext
22 lines
720 B
Plaintext
/datum/painter/pipe/window // Yes, this is a pipe painter subtype.
|
|
module_name = "window painter"
|
|
module_state = "window_painter"
|
|
var/static/list/paintable_windows = list(
|
|
/obj/structure/window/reinforced,
|
|
/obj/structure/window/basic,
|
|
/obj/structure/window/full/reinforced,
|
|
/obj/structure/window/full/basic,
|
|
/obj/machinery/door/window)
|
|
|
|
/datum/painter/pipe/window/paint_atom(atom/target, mob/user)
|
|
if(!is_type_in_list(target, paintable_windows))
|
|
return
|
|
var/obj/structure/window/W = target
|
|
|
|
if(W.color == GLOB.pipe_colors[paint_setting])
|
|
to_chat(user, "<span class='notice'>This window is aready painted [paint_setting]!</span>")
|
|
return
|
|
|
|
W.color = GLOB.pipe_colors[paint_setting]
|
|
return TRUE
|