mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 22:42:26 +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:
@@ -33,14 +33,14 @@
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("You must be holding \the [src] in one of your hands before you can eject a drive."))
|
||||
|
||||
/obj/item/paper_scanner/attackby(obj/item/W, mob/user)
|
||||
if(istype(W, /obj/item/computer_hardware/hard_drive/portable))
|
||||
/obj/item/paper_scanner/attackby(obj/item/attacking_item, mob/user)
|
||||
if(istype(attacking_item, /obj/item/computer_hardware/hard_drive/portable))
|
||||
if(drive)
|
||||
to_chat(user, SPAN_WARNING("\The [src] already has a drive installed!"))
|
||||
return TRUE
|
||||
to_chat(user, SPAN_NOTICE("You insert \the [W] into \the [src]."))
|
||||
user.drop_from_inventory(W, src)
|
||||
drive = W
|
||||
to_chat(user, SPAN_NOTICE("You insert \the [attacking_item] into \the [src]."))
|
||||
user.drop_from_inventory(attacking_item, src)
|
||||
drive = attacking_item
|
||||
update_icon()
|
||||
return TRUE
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user