mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-10 17:04:36 +00:00
* Initial work * more * ass * wsedfwedff * asss * test * stuff * fuck * sss a * kms * asdadwedwdfwefwef * start * test * dwwdew * ewefwfef * Redemption machine (#8) * Redemption machine * Removes debug messages * changes * fuckmyshitup * coin mint works with new material shenanigans (#10) * Auto stash before merge of "materials" and "origin/materials" * woops * furnace (#11) * autolathe manufacturing of toolboxes * eggs in a basket * some small changes * matcolors * documentation * more documentation and effects * done * Color man bad (#12) * fixes designs * ass * more fixes * fuck me * firestacks adder * epic fixes * fixes designs * DONE DIDDILY DOO * removes category macro * ch-ch-ch-changes * fixes some stuff * Fixes display of ore values (#9) * Redemption machine * Removes debug messages * Re-adds value display * Replaces the fire stacking component with an element instead (#13) * fixes examine * fixes ligma bugs * double ligma boofus * fix * misses some defines * fixes ORM * Update code/datums/components/material_container.dm Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com> * fixes * Makes glass objects weaker (#14) * Makes glass objects weaker * uses correct proc * fixes shit * honk honk * better * oh shit oh fuck * fixes * fuck ORMs * fixes the biogen * documentation * ass (#15) * component * changes * ass * ass * doc * Auto stash before merge of "materials-plasmacomponent" and "origin/materials-plasmacomponent" * fixes rounding * fixed
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
/obj/item/pipe_painter
|
|
name = "pipe painter"
|
|
icon = 'icons/obj/bureaucracy.dmi'
|
|
icon_state = "labeler1"
|
|
item_state = "flight"
|
|
item_flags = NOBLUDGEON
|
|
var/paint_color = "grey"
|
|
|
|
materials = list(/datum/material/iron=5000, /datum/material/glass=2000)
|
|
|
|
/obj/item/pipe_painter/afterattack(atom/A, mob/user, proximity_flag)
|
|
. = ..()
|
|
//Make sure we only paint adjacent items
|
|
if(!proximity_flag)
|
|
return
|
|
|
|
if(!istype(A, /obj/machinery/atmospherics/pipe))
|
|
return
|
|
|
|
var/obj/machinery/atmospherics/pipe/P = A
|
|
if(P.paint(GLOB.pipe_paint_colors[paint_color]))
|
|
playsound(src, 'sound/machines/click.ogg', 50, 1)
|
|
user.visible_message("<span class='notice'>[user] paints \the [P] [paint_color].</span>","<span class='notice'>You paint \the [P] [paint_color].</span>")
|
|
|
|
/obj/item/pipe_painter/attack_self(mob/user)
|
|
paint_color = input("Which colour do you want to use?","Pipe painter") in GLOB.pipe_paint_colors
|
|
|
|
/obj/item/pipe_painter/examine(mob/user)
|
|
. = ..()
|
|
. += "<span class='notice'>It is set to [paint_color].</span>"
|