Modular Devices now have auditory feedback for disassembly. (#63986)

* Modular Console Bubble Message + Sounds

* Screwdriver Sounds

* Balloon Text Changes

* capitalization begone

* Tiny Edit

* Requested Changes
This commit is contained in:
Cheshify
2022-01-11 15:56:57 -05:00
committed by GitHub
parent 50c2ed0c07
commit 6643c9ff2b
@@ -487,7 +487,7 @@
/obj/item/modular_computer/screwdriver_act(mob/user, obj/item/tool)
if(!length(all_components))
to_chat(user, span_warning("This device doesn't have any components installed."))
balloon_alert(user, "no components installed!")
return
var/list/component_names = list()
for(var/h in all_components)
@@ -507,6 +507,7 @@
if(!H)
return
tool.play_tool_sound(src, user, 20, volume=20)
uninstall_component(H, user)
return
@@ -529,10 +530,11 @@
if(W.tool_behaviour == TOOL_WRENCH)
if(length(all_components))
to_chat(user, span_warning("Remove all components from \the [src] before disassembling it."))
balloon_alert(user, "remove the other components!")
return
W.play_tool_sound(src, user, 20, volume=20)
new /obj/item/stack/sheet/iron( get_turf(src.loc), steel_sheet_cost )
physical.visible_message(span_notice("\The [src] is disassembled by [user]."))
user.balloon_alert(user,"disassembled")
relay_qdel()
qdel(src)
return