A quick-fix for RFD-P to dispense bent pipes (#9074)

A quick and simple fix that makes it so RFD-P dispenses bent pipes correctly. Fixes #9034
This commit is contained in:
aleksix
2020-06-09 18:50:29 +03:00
committed by GitHub
parent 1eb6d9b6c6
commit a8c777d042
2 changed files with 46 additions and 1 deletions
+5 -1
View File
@@ -547,7 +547,11 @@ RFD Piping-Class
if(build_delay && !can_use(user, T))
return FALSE
new /obj/item/pipe(T, selected_pipe, NORTH)
// Special case handling for bent pipes. They require a non-cardinal direction
var/pipe_dir = NORTH
if(selected_pipe in list(1, 30, 32))
pipe_dir = NORTHEAST
new /obj/item/pipe(T, selected_pipe, pipe_dir)
playsound(get_turf(src), 'sound/items/Deconstruct.ogg', 50, TRUE)
return TRUE