Skip to content

Commit 6509ee7

Browse files
committed
TGS Test Merge (#22095)
2 parents 4072b36 + cdd5080 commit 6509ee7

File tree

9 files changed

+35
-24
lines changed

9 files changed

+35
-24
lines changed

code/modules/antagonists/traitor/equipment/Malf_Modules.dm

+2-1
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,8 @@ GLOBAL_LIST_INIT(malf_modules, subtypesof(/datum/AI_Module))
673673
/datum/action/innate/ai/emergency_lights
674674
name = "Disable Emergency Lights"
675675
desc = "Disables all emergency lighting. Note that emergency lights can be restored through reboot at an APC."
676-
button_icon_state = "emergency_lights"
676+
button_icon = 'icons/obj/lighting.dmi'
677+
button_icon_state = "floor_emergency"
677678
uses = 1
678679

679680
/datum/action/innate/ai/emergency_lights/Activate()

code/modules/power/lighting.dm

+33-23
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
name = "light fixture frame"
2020
desc = "Used for building lights."
2121
icon = 'icons/obj/lighting.dmi'
22-
icon_state = "tube-construct-item"
22+
icon_state = "tube_construct_item"
2323
result_path = /obj/structure/light_construct
2424
inverse = TRUE
2525

2626
/obj/item/wallframe/light_fixture/small
2727
name = "small light fixture frame"
28-
icon_state = "bulb-construct-item"
28+
icon_state = "bulb_construct_item"
2929
result_path = /obj/structure/light_construct/small
3030
materials = list(/datum/material/iron=MINERAL_MATERIAL_AMOUNT)
3131

@@ -43,7 +43,7 @@
4343
name = "light fixture frame"
4444
desc = "A light fixture under construction."
4545
icon = 'icons/obj/lighting.dmi'
46-
icon_state = "tube-construct-stage1"
46+
icon_state = "tube_construct_stage1"
4747
anchored = TRUE
4848
layer = WALL_OBJ_LAYER
4949
max_integrity = 200
@@ -143,7 +143,7 @@
143143
if(istype(W, /obj/item/stack/cable_coil))
144144
var/obj/item/stack/cable_coil/coil = W
145145
if(coil.use(1))
146-
icon_state = "[fixture_type]-construct-stage2"
146+
icon_state = "[fixture_type]_construct_stage2"
147147
stage = 2
148148
user.visible_message("[user.name] adds wires to [src].", \
149149
span_notice("You add wires to [src]."))
@@ -157,7 +157,7 @@
157157

158158
if(W.tool_behaviour == TOOL_WIRECUTTER)
159159
stage = 1
160-
icon_state = "[fixture_type]-construct-stage1"
160+
icon_state = "[fixture_type]_construct_stage1"
161161
new /obj/item/stack/cable_coil(drop_location(), 1, "red")
162162
user.visible_message("[user.name] removes the wiring from [src].", \
163163
span_notice("You remove the wiring from [src]."), span_italics("You hear clicking."))
@@ -197,13 +197,13 @@
197197

198198
/obj/structure/light_construct/small
199199
name = "small light fixture frame"
200-
icon_state = "bulb-construct-stage1"
200+
icon_state = "bulb_construct_stage1"
201201
fixture_type = "bulb"
202202
sheets_refunded = 1
203203

204204
/obj/structure/light_construct/floor
205205
name = "floor light fixture frame"
206-
icon_state = "floor-construct-stage1"
206+
icon_state = "floor_construct_stage1"
207207
fixture_type = "floor"
208208
sheets_refunded = 1
209209
layer = LOW_OBJ_LAYER
@@ -292,7 +292,7 @@
292292

293293
/obj/machinery/light/broken
294294
status = LIGHT_BROKEN
295-
icon_state = "tube-broken"
295+
icon_state = "tube_broken"
296296

297297
// the smaller bulb light fixture
298298

@@ -306,7 +306,7 @@
306306

307307
/obj/machinery/light/small/broken
308308
status = LIGHT_BROKEN
309-
icon_state = "bulb-broken"
309+
icon_state = "bulb_broken"
310310

311311
/obj/machinery/light/Move()
312312
if(status != LIGHT_BROKEN)
@@ -315,17 +315,17 @@
315315

316316
/obj/machinery/light/built
317317
status = LIGHT_EMPTY
318-
icon_state = "tube-empty"
318+
icon_state = "tube_empty"
319319
start_with_cell = FALSE
320320

321321
/obj/machinery/light/floor/built
322322
status = LIGHT_EMPTY
323-
icon_state = "floor-empty"
323+
icon_state = "floor_empty"
324324
start_with_cell = FALSE
325325

326326
/obj/machinery/light/small/built
327327
status = LIGHT_EMPTY
328-
icon_state = "bulb-empty"
328+
icon_state = "bulb_empty"
329329
start_with_cell = FALSE
330330

331331
// create a new lighting fixture
@@ -397,11 +397,11 @@
397397
else
398398
icon_state = "[base_state]"
399399
if(LIGHT_EMPTY)
400-
icon_state = "[base_state]-empty"
400+
icon_state = "[base_state]_empty"
401401
if(LIGHT_BURNED)
402-
icon_state = "[base_state]-burned"
402+
icon_state = "[base_state]_burned"
403403
if(LIGHT_BROKEN)
404-
icon_state = "[base_state]-broken"
404+
icon_state = "[base_state]_broken"
405405
return ..()
406406

407407
/obj/machinery/light/update_overlays()
@@ -540,7 +540,7 @@
540540
/obj/machinery/light/proc/burn_out()
541541
if(status == LIGHT_OK)
542542
status = LIGHT_BURNED
543-
icon_state = "[base_state]-burned"
543+
icon_state = "[base_state]_burned"
544544
on = FALSE
545545
set_light(l_range = 0)
546546
playsound(src.loc, 'sound/effects/burnout.ogg', 65)
@@ -644,15 +644,15 @@
644644
switch(fitting)
645645
if("tube")
646646
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]"
648648

649649
if("bulb")
650650
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]"
652652

653653
if("floor bulb")
654654
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]"
656656
newlight.setDir(dir)
657657
newlight.stage = current_stage
658658
if(!disassembled)
@@ -954,9 +954,19 @@
954954
desc = "A replacement light tube."
955955
icon_state = "ltube"
956956
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'
958960
brightness = 8
959961

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+
960970
/obj/item/light/tube/broken
961971
status = LIGHT_BROKEN
962972
sharpness = SHARP_POINTY
@@ -987,9 +997,9 @@
987997
if(LIGHT_OK)
988998
icon_state = base_state
989999
if(LIGHT_BURNED)
990-
icon_state = "[base_state]-burned"
1000+
icon_state = "[base_state]_burned"
9911001
if(LIGHT_BROKEN)
992-
icon_state = "[base_state]-broken"
1002+
icon_state = "[base_state]_broken"
9931003

9941004
/obj/item/light/update_desc()
9951005
. = ..()
@@ -1066,7 +1076,7 @@
10661076
name = "floor light frame"
10671077
desc = "Used for building lights."
10681078
icon = 'icons/obj/lighting.dmi'
1069-
icon_state = "floor-construct-stage1"
1079+
icon_state = "floor_construct_stage1"
10701080

10711081
/obj/item/floor_light/examine(mob/user)
10721082
. = ..()

icons/mob/actions/actions_AI.dmi

445 Bytes
Binary file not shown.

icons/mob/inhands/items_lefthand.dmi

135 Bytes
Binary file not shown.

icons/mob/inhands/items_righthand.dmi

838 Bytes
Binary file not shown.

icons/obj/janitor.dmi

185 Bytes
Binary file not shown.

icons/obj/lighting.dmi

-1.1 KB
Binary file not shown.

icons/obj/lighting_overlay.dmi

528 Bytes
Binary file not shown.

icons/obj/storage.dmi

5.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)