|
19 | 19 | name = "light fixture frame" |
20 | 20 | desc = "Used for building lights." |
21 | 21 | icon = 'icons/obj/lighting.dmi' |
22 | | - icon_state = "tube-construct-item" |
| 22 | + icon_state = "tube_construct_item" |
23 | 23 | result_path = /obj/structure/light_construct |
24 | 24 | inverse = TRUE |
25 | 25 |
|
26 | 26 | /obj/item/wallframe/light_fixture/small |
27 | 27 | name = "small light fixture frame" |
28 | | - icon_state = "bulb-construct-item" |
| 28 | + icon_state = "bulb_construct_item" |
29 | 29 | result_path = /obj/structure/light_construct/small |
30 | 30 | materials = list(/datum/material/iron=MINERAL_MATERIAL_AMOUNT) |
31 | 31 |
|
|
43 | 43 | name = "light fixture frame" |
44 | 44 | desc = "A light fixture under construction." |
45 | 45 | icon = 'icons/obj/lighting.dmi' |
46 | | - icon_state = "tube-construct-stage1" |
| 46 | + icon_state = "tube_construct_stage1" |
47 | 47 | anchored = TRUE |
48 | 48 | layer = WALL_OBJ_LAYER |
49 | 49 | max_integrity = 200 |
|
143 | 143 | if(istype(W, /obj/item/stack/cable_coil)) |
144 | 144 | var/obj/item/stack/cable_coil/coil = W |
145 | 145 | if(coil.use(1)) |
146 | | - icon_state = "[fixture_type]-construct-stage2" |
| 146 | + icon_state = "[fixture_type]_construct_stage2" |
147 | 147 | stage = 2 |
148 | 148 | user.visible_message("[user.name] adds wires to [src].", \ |
149 | 149 | span_notice("You add wires to [src].")) |
|
157 | 157 |
|
158 | 158 | if(W.tool_behaviour == TOOL_WIRECUTTER) |
159 | 159 | stage = 1 |
160 | | - icon_state = "[fixture_type]-construct-stage1" |
| 160 | + icon_state = "[fixture_type]_construct_stage1" |
161 | 161 | new /obj/item/stack/cable_coil(drop_location(), 1, "red") |
162 | 162 | user.visible_message("[user.name] removes the wiring from [src].", \ |
163 | 163 | span_notice("You remove the wiring from [src]."), span_italics("You hear clicking.")) |
|
197 | 197 |
|
198 | 198 | /obj/structure/light_construct/small |
199 | 199 | name = "small light fixture frame" |
200 | | - icon_state = "bulb-construct-stage1" |
| 200 | + icon_state = "bulb_construct_stage1" |
201 | 201 | fixture_type = "bulb" |
202 | 202 | sheets_refunded = 1 |
203 | 203 |
|
204 | 204 | /obj/structure/light_construct/floor |
205 | 205 | name = "floor light fixture frame" |
206 | | - icon_state = "floor-construct-stage1" |
| 206 | + icon_state = "floor_construct_stage1" |
207 | 207 | fixture_type = "floor" |
208 | 208 | sheets_refunded = 1 |
209 | 209 | layer = LOW_OBJ_LAYER |
|
292 | 292 |
|
293 | 293 | /obj/machinery/light/broken |
294 | 294 | status = LIGHT_BROKEN |
295 | | - icon_state = "tube-broken" |
| 295 | + icon_state = "tube_broken" |
296 | 296 |
|
297 | 297 | // the smaller bulb light fixture |
298 | 298 |
|
|
306 | 306 |
|
307 | 307 | /obj/machinery/light/small/broken |
308 | 308 | status = LIGHT_BROKEN |
309 | | - icon_state = "bulb-broken" |
| 309 | + icon_state = "bulb_broken" |
310 | 310 |
|
311 | 311 | /obj/machinery/light/Move() |
312 | 312 | if(status != LIGHT_BROKEN) |
|
315 | 315 |
|
316 | 316 | /obj/machinery/light/built |
317 | 317 | status = LIGHT_EMPTY |
318 | | - icon_state = "tube-empty" |
| 318 | + icon_state = "tube_empty" |
319 | 319 | start_with_cell = FALSE |
320 | 320 |
|
321 | 321 | /obj/machinery/light/floor/built |
322 | 322 | status = LIGHT_EMPTY |
323 | | - icon_state = "floor-empty" |
| 323 | + icon_state = "floor_empty" |
324 | 324 | start_with_cell = FALSE |
325 | 325 |
|
326 | 326 | /obj/machinery/light/small/built |
327 | 327 | status = LIGHT_EMPTY |
328 | | - icon_state = "bulb-empty" |
| 328 | + icon_state = "bulb_empty" |
329 | 329 | start_with_cell = FALSE |
330 | 330 |
|
331 | 331 | // create a new lighting fixture |
|
397 | 397 | else |
398 | 398 | icon_state = "[base_state]" |
399 | 399 | if(LIGHT_EMPTY) |
400 | | - icon_state = "[base_state]-empty" |
| 400 | + icon_state = "[base_state]_empty" |
401 | 401 | if(LIGHT_BURNED) |
402 | | - icon_state = "[base_state]-burned" |
| 402 | + icon_state = "[base_state]_burned" |
403 | 403 | if(LIGHT_BROKEN) |
404 | | - icon_state = "[base_state]-broken" |
| 404 | + icon_state = "[base_state]_broken" |
405 | 405 | return ..() |
406 | 406 |
|
407 | 407 | /obj/machinery/light/update_overlays() |
|
540 | 540 | /obj/machinery/light/proc/burn_out() |
541 | 541 | if(status == LIGHT_OK) |
542 | 542 | status = LIGHT_BURNED |
543 | | - icon_state = "[base_state]-burned" |
| 543 | + icon_state = "[base_state]_burned" |
544 | 544 | on = FALSE |
545 | 545 | set_light(l_range = 0) |
546 | 546 | playsound(src.loc, 'sound/effects/burnout.ogg', 65) |
|
644 | 644 | switch(fitting) |
645 | 645 | if("tube") |
646 | 646 | newlight = new /obj/structure/light_construct(loc) |
647 | | - newlight.icon_state = "tube-construct-stage[current_stage]" |
| 647 | + newlight.icon_state = "tube_construct_stage[current_stage]" |
648 | 648 |
|
649 | 649 | if("bulb") |
650 | 650 | newlight = new /obj/structure/light_construct/small(loc) |
651 | | - newlight.icon_state = "bulb-construct-stage[current_stage]" |
| 651 | + newlight.icon_state = "bulb_construct_stage[current_stage]" |
652 | 652 |
|
653 | 653 | if("floor bulb") |
654 | 654 | newlight = new /obj/structure/light_construct/floor(loc) |
655 | | - newlight.icon_state = "floor-construct-stage[current_stage]" |
| 655 | + newlight.icon_state = "floor_construct_stage[current_stage]" |
656 | 656 | newlight.setDir(dir) |
657 | 657 | newlight.stage = current_stage |
658 | 658 | if(!disassembled) |
|
954 | 954 | desc = "A replacement light tube." |
955 | 955 | icon_state = "ltube" |
956 | 956 | base_state = "ltube" |
957 | | - item_state = "c_tube" |
| 957 | + item_state = "ltube" |
| 958 | + lefthand_file = 'icons/mob/inhands/items_lefthand.dmi' |
| 959 | + righthand_file = 'icons/mob/inhands/items_righthand.dmi' |
958 | 960 | brightness = 8 |
959 | 961 |
|
| 962 | +/obj/item/light/tube/update_icon_state() |
| 963 | + . = ..() |
| 964 | + switch(status) |
| 965 | + if(LIGHT_BURNED) |
| 966 | + item_state = "[base_state]_burned" |
| 967 | + if(LIGHT_BROKEN) |
| 968 | + item_state = "[base_state]_broken" |
| 969 | + |
960 | 970 | /obj/item/light/tube/broken |
961 | 971 | status = LIGHT_BROKEN |
962 | 972 | sharpness = SHARP_POINTY |
|
987 | 997 | if(LIGHT_OK) |
988 | 998 | icon_state = base_state |
989 | 999 | if(LIGHT_BURNED) |
990 | | - icon_state = "[base_state]-burned" |
| 1000 | + icon_state = "[base_state]_burned" |
991 | 1001 | if(LIGHT_BROKEN) |
992 | | - icon_state = "[base_state]-broken" |
| 1002 | + icon_state = "[base_state]_broken" |
993 | 1003 |
|
994 | 1004 | /obj/item/light/update_desc() |
995 | 1005 | . = ..() |
|
1066 | 1076 | name = "floor light frame" |
1067 | 1077 | desc = "Used for building lights." |
1068 | 1078 | icon = 'icons/obj/lighting.dmi' |
1069 | | - icon_state = "floor-construct-stage1" |
| 1079 | + icon_state = "floor_construct_stage1" |
1070 | 1080 |
|
1071 | 1081 | /obj/item/floor_light/examine(mob/user) |
1072 | 1082 | . = ..() |
|
0 commit comments