Alt Click 2 Rotate Pipes (#18184)

* Commit Comment

* god damned ghosts

* hal9000PR Request

removed base desc, it isnt shown usually but with the .=..() call in the new examine proc def in /obj/item/pipe/ it starts using that desc for examine on any pipe. Getting rid of it necessary.

* Farie82 Suggestions

* Bruh

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>

* SteelSlayer Suggestion

Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>

Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com>
Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
Kugamo
2022-07-09 11:41:01 -05:00
committed by GitHub
co-authored by Charlie SteelSlayer
parent f0550eeba4
commit 235454b5f3
+14 -1
View File
@@ -3,7 +3,6 @@
/obj/item/pipe
name = "pipe"
desc = "A pipe"
var/pipe_type = 0
var/pipename
var/connect_types[] = list(1) //1=regular, 2=supply, 3=scrubber
@@ -151,6 +150,10 @@
else
return ..()
/obj/item/pipe/examine(mob/user)
. = ..()
. += "<span class='info'>Alt-click it to rotate, Alt-Shift-click it to flip!</span>"
/obj/item/pipe/proc/update(obj/machinery/atmospherics/make_from)
name = "[get_pipe_name(pipe_type, PIPETYPE_ATMOS)] fitting"
icon_state = get_pipe_icon(pipe_type)
@@ -560,3 +563,13 @@
our_rpd.delete_single_pipe(user, src)
else
..()
/obj/item/pipe/AltClick(mob/user)
if(user.incapacitated() || !user.Adjacent(src))
return
rotate()
/obj/item/pipe/AltShiftClick(mob/user)
if(user.incapacitated() || !user.Adjacent(src))
return
flip()