mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
[MIRROR] Mouse drag & drop refactored attack chain (#28156)
* Mouse drag & drop refactored attack chain * 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:
co-authored by
SyncIt21
Gandalf
parent
573ddb5f5f
commit
df90e547cc
@@ -12,6 +12,7 @@
|
||||
max_integrity = 100
|
||||
armor_type = /datum/armor/item_modular_computer
|
||||
light_system = OVERLAY_LIGHT_DIRECTIONAL
|
||||
interaction_flags_mouse_drop = NEED_HANDS | ALLOW_RESTING
|
||||
|
||||
///The ID currently stored in the computer.
|
||||
var/obj/item/card/id/computer_id_slot
|
||||
@@ -334,11 +335,9 @@
|
||||
update_appearance()
|
||||
return TRUE
|
||||
|
||||
/obj/item/modular_computer/MouseDrop(obj/over_object, src_location, over_location)
|
||||
var/mob/M = usr
|
||||
if((!istype(over_object, /atom/movable/screen)) && usr.can_perform_action(src))
|
||||
return attack_self(M)
|
||||
return ..()
|
||||
/obj/item/modular_computer/mouse_drop_dragged(atom/over_object, mob/user)
|
||||
if(!istype(over_object, /atom/movable/screen))
|
||||
return attack_self(user)
|
||||
|
||||
/obj/item/modular_computer/attack_ai(mob/user)
|
||||
return attack_self(user)
|
||||
|
||||
Reference in New Issue
Block a user