mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
Mouse drop refactor (#20256)
Refactored mousedrag procs, added signals, some safeguards, did some cleanups around, renamed them to make a little more sense. Mostly put in line with TG's code. Fast clicking and releasing with a drag, depending on the grace period and how fast it is done, can be counted as clicks, to aid in combat scenarios where you spamclick.
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
underlays.Cut()
|
||||
desc = initial(desc)
|
||||
|
||||
/obj/machinery/artifact/MouseDrop(atom/over)
|
||||
/obj/machinery/artifact/mouse_drop_dragged(atom/over, mob/user, src_location, over_location, params)
|
||||
if(istype(over, /obj/structure/anomaly_container))
|
||||
var/obj/structure/anomaly_container/box = over
|
||||
box.contain(src)
|
||||
|
||||
Reference in New Issue
Block a user