makes code prettier

This commit is contained in:
Time-Green
2020-08-04 20:35:14 +02:00
parent 4ff6041052
commit 09e70bcd6c
+13 -10
View File
@@ -113,21 +113,24 @@
continue
var/image/I
switch(D)
if(NORTH)
direction = "north"
if(SOUTH)
direction = "south"
if(EAST)
direction = "east"
if(WEST)
direction = "west"
if(turn_connects)
switch(D)
if(NORTH)
direction = "north"
if(SOUTH)
direction = "south"
if(EAST)
direction = "east"
if(WEST)
direction = "west"
I = image('icons/obj/plumbing/plumbers.dmi', "[direction]-[color]", layer = AM.layer - 1)
else
I = image('icons/obj/plumbing/plumbers.dmi', "north-[color]", layer = AM.layer - 1) //color is not color as in the var, it's just the name of the icon_state
I = image('icons/obj/plumbing/plumbers.dmi', "[direction]-[color]-s", layer = AM.layer - 1) //color is not color as in the var, it's just the name of the icon_state
I.dir = D
overlays += I
///we stop acting like a plumbing thing and disconnect if we are, so we can safely be moved and stuff