Some refactors, DMDoc and UT (#18365)

* dsfa

* accessories fix

* fixed "has been hit by" message with intent check

* sdfa
This commit is contained in:
Fluffy
2024-02-12 15:32:23 +00:00
committed by GitHub
parent 58dbaf8be6
commit 9afe761db3
620 changed files with 5733 additions and 5200 deletions
@@ -121,17 +121,17 @@
GLOB.ntnet_global.add_log("Quantum relay connection severed. Current amount of linked relays: [NTNet.relays.len]")
return ..()
/obj/machinery/ntnet_relay/attackby(obj/item/W, mob/user)
if(W.isscrewdriver())
playsound(get_turf(src), W.usesound, 50, TRUE)
/obj/machinery/ntnet_relay/attackby(obj/item/attacking_item, mob/user)
if(attacking_item.isscrewdriver())
playsound(get_turf(src), attacking_item.usesound, 50, TRUE)
panel_open = !panel_open
to_chat(user, SPAN_NOTICE("You [panel_open ? "open" : "close"] the maintenance hatch."))
return
if(W.iscrowbar())
if(attacking_item.iscrowbar())
if(!panel_open)
to_chat(user, SPAN_WARNING("Open the maintenance panel first."))
return
playsound(get_turf(src), W.usesound, 50, 1)
playsound(get_turf(src), attacking_item.usesound, 50, 1)
to_chat(user, SPAN_NOTICE("You disassemble \the [src]!"))
for(var/atom/movable/A in component_parts)