mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Refactor incapacitated optional arguments (#63771)
This commit is contained in:
@@ -178,7 +178,7 @@
|
||||
|
||||
/// Called when an activated module without a device is used
|
||||
/obj/item/mod/module/proc/on_select_use(atom/target)
|
||||
if(mod.wearer.incapacitated(ignore_grab = TRUE))
|
||||
if(mod.wearer.incapacitated(IGNORE_GRAB))
|
||||
return FALSE
|
||||
mod.wearer.face_atom(target)
|
||||
if(!on_use())
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
clear_grab()
|
||||
|
||||
/obj/item/mod/module/anomaly_locked/kinesis/process(delta_time)
|
||||
if(!mod.wearer.client || mod.wearer.incapacitated(ignore_grab = TRUE))
|
||||
if(!mod.wearer.client || mod.wearer.incapacitated(IGNORE_GRAB))
|
||||
clear_grab()
|
||||
return
|
||||
if(!range_check(grabbed_atom))
|
||||
|
||||
Reference in New Issue
Block a user