[MIRROR] Ctrl click refactor (#28157)

* Ctrl click refactor

* fex

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-06-15 18:29:40 +01:00
committed by GitHub
co-authored by SyncIt21 Gandalf
parent 526bbc0b11
commit 6005276433
64 changed files with 329 additions and 254 deletions
@@ -472,10 +472,7 @@
update_appearance(UPDATE_ICON)
return ..()
/obj/item/modular_computer/CtrlShiftClick(mob/user)
. = ..()
if(.)
return
/obj/item/modular_computer/click_ctrl_shift(mob/user)
if(!inserted_disk)
return
user.put_in_hands(inserted_disk)
@@ -162,12 +162,9 @@
return ITEM_INTERACT_SUCCESS
/obj/item/modular_computer/pda/CtrlClick(mob/user)
. = ..()
if(.)
return
/obj/item/modular_computer/pda/item_ctrl_click(mob/user)
remove_pen(user)
return CLICK_ACTION_SUCCESS
///Finds how hard it is to send a virus to this tablet, checking all programs downloaded.
/obj/item/modular_computer/pda/proc/get_detomatix_difficulty()