mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 14:31:59 +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:
@@ -11,10 +11,10 @@
|
||||
anchored = TRUE
|
||||
layer = 4
|
||||
|
||||
/obj/machinery/fusion_fuel_compressor/MouseDrop_T(atom/dropping, mob/user)
|
||||
/obj/machinery/fusion_fuel_compressor/mouse_drop_receive(atom/dropped, mob/user, params)
|
||||
if(user.incapacitated() || !user.Adjacent(src))
|
||||
return
|
||||
return do_fuel_compression(dropping, user)
|
||||
return do_fuel_compression(dropped, user)
|
||||
|
||||
/obj/machinery/fusion_fuel_compressor/attackby(obj/item/attacking_item, mob/user)
|
||||
return do_fuel_compression(attacking_item, user) || ..()
|
||||
|
||||
Reference in New Issue
Block a user