mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-23 07:42:16 +00:00
Refactored the attack proc signature. Added signals and components for the attack proc. Added signals and components for the attackby proc. Adjusted some leftover attackby procs signatures. Added grep test to ensure people don't keep adding attack/attackby procs with the wrong signature.
8 lines
552 B
Plaintext
8 lines
552 B
Plaintext
/obj/item/pai_cable/proc/plugin(obj/machinery/M as obj, mob/user as mob)
|
|
if(istype(M, /obj/machinery/door) || istype(M, /obj/machinery/camera))
|
|
user.visible_message("[user] inserts [src] into a data port on [M].", "You insert [src] into a data port on [M].", "You hear the satisfying click of a wire jack fastening into place.")
|
|
user.drop_from_inventory(src,M)
|
|
src.machine = M
|
|
else
|
|
user.visible_message("[user] dumbly fumbles to find a place on [M] to plug in [src].", "There aren't any ports on [M] that match the jack belonging to [src].")
|