Removes pulling claw instant messageless stun (#34742)
This commit is contained in:
committed by
CitadelStationBot
parent
5e1ff26276
commit
54e9c47e99
@@ -363,14 +363,13 @@
|
||||
activators = list("pulse in" = IC_PINTYPE_PULSE_IN,"pulse out" = IC_PINTYPE_PULSE_OUT,"released" = IC_PINTYPE_PULSE_OUT)
|
||||
spawn_flags = IC_SPAWN_RESEARCH
|
||||
power_draw_per_use = 50
|
||||
var/max_grab = 2 //change it to 1 if you tired of drone kung-fu.Return it to 2 if you miss it.
|
||||
var/max_grab = GRAB_PASSIVE
|
||||
|
||||
/obj/item/integrated_circuit/manipulation/claw/do_work()
|
||||
var/obj/acting_object = get_object()
|
||||
var/atom/movable/AM = get_pin_data_as_type(IC_INPUT, 1, /atom/movable)
|
||||
var/mode = get_pin_data(IC_INPUT, 2)
|
||||
if(mode>max_grab)
|
||||
return
|
||||
mode = CLAMP(mode, GRAB_PASSIVE, max_grab)
|
||||
if(AM)
|
||||
if(check_target(AM, exclude_contents = TRUE))
|
||||
acting_object.start_pulling(AM,mode)
|
||||
|
||||
Reference in New Issue
Block a user