mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] clickon signal procs cleanup (fixes inability to examine things in certain situations). [MDB IGNORE] (#8928)
* clickon signal procs cleanup (fixes inability to examine things in certain situations). * Mirror! Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: Funce <funce.973@gmail.com>
This commit is contained in:
@@ -79,8 +79,10 @@
|
||||
|
||||
|
||||
|
||||
/datum/component/shy/proc/on_clickon(datum/source, atom/target, params)
|
||||
/datum/component/shy/proc/on_clickon(datum/source, atom/target, list/modifiers)
|
||||
SIGNAL_HANDLER
|
||||
if(modifiers[SHIFT_CLICK]) //let them examine their surroundings.
|
||||
return
|
||||
return is_shy(target) && COMSIG_MOB_CANCEL_CLICKON
|
||||
|
||||
/datum/component/shy/proc/on_try_pull(datum/source, atom/movable/target, force)
|
||||
|
||||
@@ -52,8 +52,10 @@
|
||||
to_chat(owner, span_warning("[replacetext(message, "%ROOM", room)]"))
|
||||
return TRUE
|
||||
|
||||
/datum/component/shy_in_room/proc/on_clickon(datum/source, atom/target, params)
|
||||
/datum/component/shy_in_room/proc/on_clickon(datum/source, atom/target, list/modifiers)
|
||||
SIGNAL_HANDLER
|
||||
if(modifiers[SHIFT_CLICK]) //let them examine their surroundings.
|
||||
return
|
||||
return is_shy(target) && COMSIG_MOB_CANCEL_CLICKON
|
||||
|
||||
/datum/component/shy_in_room/proc/on_try_pull(datum/source, atom/movable/target, force)
|
||||
|
||||
@@ -68,9 +68,12 @@
|
||||
tackle.thrower = user
|
||||
|
||||
///See if we can tackle or not. If we can, leap!
|
||||
/datum/component/tackler/proc/checkTackle(mob/living/carbon/user, atom/A, params)
|
||||
/datum/component/tackler/proc/checkTackle(mob/living/carbon/user, atom/A, list/modifiers)
|
||||
SIGNAL_HANDLER
|
||||
|
||||
if(modifiers[ALT_CLICK] || modifiers[SHIFT_CLICK] || modifiers[CTRL_CLICK] || modifiers[MIDDLE_CLICK])
|
||||
return
|
||||
|
||||
if(!user.throw_mode || user.get_active_held_item() || user.pulling || user.buckled || user.incapacitated())
|
||||
return
|
||||
|
||||
@@ -99,9 +102,6 @@
|
||||
|
||||
user.face_atom(A)
|
||||
|
||||
var/list/modifiers = params2list(params)
|
||||
if(LAZYACCESS(modifiers, ALT_CLICK) || LAZYACCESS(modifiers, SHIFT_CLICK) || LAZYACCESS(modifiers, CTRL_CLICK) || LAZYACCESS(modifiers, MIDDLE_CLICK))
|
||||
return
|
||||
|
||||
tackling = TRUE
|
||||
RegisterSignal(user, COMSIG_MOVABLE_MOVED, .proc/checkObstacle)
|
||||
|
||||
Reference in New Issue
Block a user