2
2
/ obj / item/ taperoll
3
3
name = " tape roll"
4
4
icon = ' icons/policetape.dmi'
5
- icon_state = " rollstart "
5
+ icon_state = " tape "
6
6
w_class = ITEMSIZE_SMALL
7
7
var /turf /start
8
8
var /turf /end
9
9
var /tape_type = / obj / item/ tape
10
- var /icon_base
10
+ var /icon_base = " tape "
11
11
12
12
var /apply_tape = FALSE
13
13
@@ -33,7 +33,7 @@ var/list/tape_roll_applications = list()
33
33
var /lifted = 0
34
34
var /crumpled = 0
35
35
var /tape_dir = 0
36
- var /icon_base
36
+ var /icon_base = " tape "
37
37
38
38
/ obj / item/ tape/ update_icon()
39
39
// Possible directional bitflags: 0 (AIRLOCK), 1 (NORTH), 2 (SOUTH), 4 (EAST), 8 (WEST), 3 (VERTICAL), 12 (HORIZONTAL)
@@ -60,22 +60,20 @@ var/list/tape_roll_applications = list()
60
60
/ obj / item/ taperoll/ police
61
61
name = " police tape"
62
62
desc = " A roll of police tape used to block off crime scenes from the public."
63
- icon_state = " police"
64
63
tape_type = / obj / item/ tape/ police
65
- icon_base = " police "
64
+ color = COLOR_RED_LIGHT
66
65
67
66
/ obj / item/ tape/ police
68
67
name = " police tape"
69
68
desc = " A length of police tape. Do not cross."
70
69
req_access = list (access_security)
71
- icon_base = " police "
70
+ color = COLOR_RED_LIGHT
72
71
73
72
/ obj / item/ taperoll/ engineering
74
73
name = " engineering tape"
75
74
desc = " A roll of engineering tape used to block off working areas from the public."
76
- icon_state = " engineering"
77
75
tape_type = / obj / item/ tape/ engineering
78
- icon_base = " engineering "
76
+ color = COLOR_YELLOW
79
77
80
78
/ obj / item/ taperoll/ engineering/ applied
81
79
apply_tape = TRUE
@@ -84,28 +82,31 @@ var/list/tape_roll_applications = list()
84
82
name = " engineering tape"
85
83
desc = " A length of engineering tape. Better not cross it."
86
84
req_one_access = list (access_engine,access_atmospherics)
87
- icon_base = " engineering "
85
+ color = COLOR_YELLOW
88
86
89
87
/ obj / item/ taperoll/ atmos
90
88
name = " atmospherics tape"
91
89
desc = " A roll of atmospherics tape used to block off working areas from the public."
92
- icon_state = " atmos"
93
90
tape_type = / obj / item/ tape/ atmos
94
- icon_base = " atmos "
91
+ color = COLOR_DEEP_SKY_BLUE
95
92
96
93
/ obj / item/ tape/ atmos
97
94
name = " atmospherics tape"
98
95
desc = " A length of atmospherics tape. Better not cross it."
99
96
req_one_access = list (access_engine,access_atmospherics)
100
- icon_base = " atmos "
97
+ color = COLOR_DEEP_SKY_BLUE
101
98
102
99
/ obj / item/ taperoll/ update_icon()
103
100
overlays. Cut()
101
+ var /image /overlay = image(icon = src . icon)
102
+ overlay. appearance_flags = RESET_COLOR
104
103
if (ismob(loc))
105
104
if (! start)
106
- overlays + = " start"
105
+ overlay . icon_state = " start"
107
106
else
108
- overlays += " stop"
107
+ overlay. icon_state = " stop"
108
+ overlays += overlay
109
+
109
110
110
111
/ obj / item/ taperoll/ dropped( mob / user)
111
112
update_icon ()
0 commit comments