mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 08:29:57 +01:00
Some refactors, DMDoc and UT (#18365)
* dsfa * accessories fix * fixed "has been hit by" message with intent check * sdfa
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user