@@ -141,8 +141,10 @@ By design, d1 is the smallest direction and d2 is the highest
141
141
update_icon ()
142
142
143
143
/ obj / structure/ cable/ update_icon()
144
- alpha = invisibility ? 128 : 255
145
- icon_state = " [ d1] - [ d2] "
144
+ if (invisibility)
145
+ icon_state = " [ d1] - [ d2] -f"
146
+ else
147
+ icon_state = " [ d1] - [ d2] "
146
148
147
149
/ obj / structure/ cable/ t_scanner_expose()
148
150
if (level != LEVEL_BELOW_FLOOR )
@@ -554,74 +556,3 @@ By design, d1 is the smallest direction and d2 is the highest
554
556
555
557
/ obj / structure/ cable/ proc / hasDir(var /dir )
556
558
return (d1 == dir || d2 == dir)
557
-
558
- / obj / structure/ cable/ mapping
559
- icon_state = " auto"
560
-
561
- / obj / structure/ cable/ mapping/ canSmoothWith()
562
- var /static /list /smoothables = list (/ obj / structure/ cable)
563
- return smoothables
564
-
565
- / obj / structure/ cable/ mapping/ isSmoothableNeighbor( atom / A)
566
- if (istype(A,/ obj / structure/ cable))
567
- if (istype(A,/ obj / structure/ cable/ mapping))
568
- return TRUE
569
- var /obj /structure/cable/C = A
570
- return C. hasDir(get_dir(C,src ))
571
-
572
- / obj / structure/ cable/ mapping/ relativewall()
573
- . = .. ()
574
- var /list /found_dirs = list ()
575
- for (var /subdir in cardinal)
576
- if (junction & subdir)
577
- found_dirs += list (subdir)
578
- var /dir_in_found = (dir in found_dirs) ? TRUE : FALSE
579
- if (found_dirs. len > 1 && dir_in_found)
580
- found_dirs. Remove(dir)
581
- unshift (found_dirs,dir)
582
- if (found_dirs. len > 2 )
583
- for (var /i in 3 to found_dirs. len)
584
- var /list /subfound = dir_in_found ? list (dir,found_dirs[i]) : list (found_dirs[i- 1 ],found_dirs[i])
585
- sortTim (subfound)
586
- var /obj /structure/cable/C = new (loc)
587
- C. d1 = subfound[1 ]
588
- C. d2 = subfound[2 ]
589
- C. color = src . color
590
- C. update_icon()
591
- if (found_dirs. len >= 2 )
592
- var /list /subfound = list (found_dirs[1 ],found_dirs[2 ])
593
- sortTim (subfound)
594
- d1 = subfound[1 ]
595
- d2 = subfound[2 ]
596
- if ((locate (/ obj / machinery/ power) in loc) || (locate (/ obj / structure/ grille) in loc))
597
- var /obj /structure/cable/C = new (loc)
598
- C. d1 = 0
599
- C. d2 = found_dirs[1 ]
600
- C. color = src . color
601
- C. update_icon()
602
- else if (found_dirs. len == 1 )
603
- d1 = 0
604
- d2 = found_dirs[1 ]
605
- update_icon ()
606
- dir = SOUTH
607
-
608
- / obj / structure/ cable/ mapping/ yellow
609
- color = " #FFED00"
610
-
611
- / obj / structure/ cable/ mapping/ green
612
- color = " #0B8400"
613
-
614
- / obj / structure/ cable/ mapping/ blue
615
- color = " #005C84"
616
-
617
- / obj / structure/ cable/ mapping/ pink
618
- color = " #CA00B6"
619
-
620
- / obj / structure/ cable/ mapping/ orange
621
- color = " #CA6900"
622
-
623
- / obj / structure/ cable/ mapping/ cyan
624
- color = " #00B5CA"
625
-
626
- / obj / structure/ cable/ mapping/ white
627
- color = " #D0D0D0"
0 commit comments