diff --git a/code/modules/power/floodlight.dm b/code/modules/power/floodlight.dm index 6b33d6d1c5..74cecf0b1d 100644 --- a/code/modules/power/floodlight.dm +++ b/code/modules/power/floodlight.dm @@ -43,6 +43,8 @@ icon_state = "floodlight" anchored = TRUE density = TRUE + max_integrity = 100 + integrity_failure = 80 idle_power_usage = 100 active_power_usage = 1000 var/list/light_setting_list = list(0, 5, 10, 15) @@ -104,3 +106,14 @@ /obj/machinery/power/floodlight/attack_ai(mob/user) attack_hand(user) ..() + +/obj/machinery/power/floodlight/obj_break(damage_flag) + if(!(flags_1 & NODECONSTRUCT_1)) + playsound(loc, 'sound/effects/glassbr3.ogg', 100, 1) + var/obj/structure/floodlight_frame/F = new(loc) + F.state = FLOODLIGHT_NEEDS_LIGHTS + new /obj/item/light/tube/broken(loc) + qdel(src) + +/obj/machinery/power/floodlight/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0) + playsound(src, 'sound/effects/glasshit.ogg', 75, 1) \ No newline at end of file diff --git a/code/modules/power/lighting.dm b/code/modules/power/lighting.dm index d5b23670e3..def373f6b3 100644 --- a/code/modules/power/lighting.dm +++ b/code/modules/power/lighting.dm @@ -588,6 +588,9 @@ item_state = "c_tube" brightness = 8 +/obj/item/light/tube/broken + status = LIGHT_BROKEN + /obj/item/light/bulb name = "light bulb" desc = "A replacement light bulb." @@ -598,6 +601,9 @@ righthand_file = 'icons/mob/inhands/equipment/medical_righthand.dmi' brightness = 4 +/obj/item/light/bulb/broken + status = LIGHT_BROKEN + /obj/item/light/throw_impact(atom/hit_atom) if(!..()) //not caught by a mob shatter()