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
@@ -35,12 +35,12 @@
to_chat(user, SPAN_NOTICE("The station AI is not to interact with these devices."))
return
/obj/machinery/keycard_auth/attackby(obj/item/W, mob/user)
/obj/machinery/keycard_auth/attackby(obj/item/attacking_item, mob/user)
if(stat & (NOPOWER|BROKEN))
to_chat(user, "This device is not powered.")
return
if(istype(W,/obj/item/card/id))
var/obj/item/card/id/ID = W
if(istype(attacking_item, /obj/item/card/id))
var/obj/item/card/id/ID = attacking_item
if(ACCESS_KEYCARD_AUTH in ID.access)
if(active == 1)
//This is not the device that made the initial request. It is the device confirming the request.