[MIRROR] Modular Devices Deconstruction QOL [MDB IGNORE] (#10605)

* 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

* Modular Devices Deconstruction QOL

Co-authored-by: Cheshify <73589390+Cheshify@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-01-12 03:22:59 +01:00
committed by GitHub
parent b93cd52b89
commit f9c68f99a0

View File

@@ -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