mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Windowpainter (#14888)
* adds a window painting tool * Update code/game/objects/items/devices/window_painter.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * gigit * edited code to match steelslayer's suggestion * Update code/game/objects/items/devices/window_painter.dm OOF thank you for catching that Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: danni-boy <32673848+danni-boy@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
co-authored by
AffectedArc07
danni-boy
parent
ec5f7dd8a5
commit
ca97f9a92d
@@ -33,7 +33,7 @@
|
||||
|
||||
|
||||
/obj/item/pipe_painter/attack_self(mob/user as mob)
|
||||
mode = input("Which colour do you want to use?", "Pipe Painter", mode) in modes
|
||||
mode = input("Which colour do you want to use?", name, mode) in modes
|
||||
|
||||
/obj/item/pipe_painter/examine(mob/user)
|
||||
. = ..()
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/obj/item/pipe_painter/window_painter
|
||||
name = "window painter"
|
||||
icon_state = "window_painter"
|
||||
|
||||
var/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)
|
||||
|
||||
/obj/item/pipe_painter/window_painter/afterattack(atom/A, mob/user as mob)
|
||||
if(!is_type_in_list(A, paintable_windows) || !in_range(user, A))
|
||||
return
|
||||
var/obj/structure/window/W = A
|
||||
|
||||
if(W.color == GLOB.pipe_colors[mode])
|
||||
to_chat(user, "<span class='notice'>This window is aready painted [mode]!</span>")
|
||||
return
|
||||
|
||||
playsound(loc, usesound, 30, TRUE)
|
||||
W.color = GLOB.pipe_colors[mode]
|
||||
@@ -187,6 +187,14 @@
|
||||
build_path = /obj/item/pipe_painter
|
||||
category = list("initial", "Miscellaneous")
|
||||
|
||||
/datum/design/window_painter
|
||||
name = "Window Painter"
|
||||
id = "window_painter"
|
||||
build_type = AUTOLATHE
|
||||
materials = list(MAT_METAL = 5000, MAT_GLASS = 2000)
|
||||
build_path = /obj/item/pipe_painter/window_painter
|
||||
category = list("initial", "Miscellaneous")
|
||||
|
||||
/datum/design/floorpainter
|
||||
name = "Floor painter"
|
||||
id = "floor_painter"
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
@@ -914,6 +914,7 @@
|
||||
#include "code\game\objects\items\devices\uplinks.dm"
|
||||
#include "code\game\objects\items\devices\voice.dm"
|
||||
#include "code\game\objects\items\devices\whistle.dm"
|
||||
#include "code\game\objects\items\devices\window_painter.dm"
|
||||
#include "code\game\objects\items\devices\radio\beacon.dm"
|
||||
#include "code\game\objects\items\devices\radio\electropack.dm"
|
||||
#include "code\game\objects\items\devices\radio\encryptionkey.dm"
|
||||
|
||||
Reference in New Issue
Block a user