mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Screwdrivers can now be recycled in autolathes (#21629)
* screwdriver can be put into autolathe * Redundant and misspelt comment * minutia Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * add COMSIG_TOOL_ATTACK * tools can be inserted on harm intent * use signal to allow screwdriver to be inserted into the autolathe * accidental spaces * parenthesis for clarity * snake_case 1 Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * snake_case 2 Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * dont direct istype check the screwdriver * . defaults to null Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * add SIGNAL_HANDLER to the proc that handles a signal --------- Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
co-authored by
JimKil3
Contrabang
parent
4748736c9e
commit
2f711fb321
@@ -10,6 +10,9 @@
|
||||
/obj/item/proc/tool_attack_chain(mob/user, atom/target)
|
||||
if(!tool_behaviour)
|
||||
return FALSE
|
||||
if(SEND_SIGNAL(target, COMSIG_TOOL_ATTACK, src, user) & COMPONENT_CANCEL_TOOLACT)
|
||||
return FALSE
|
||||
|
||||
return target.tool_act(user, src, tool_behaviour)
|
||||
|
||||
// Called when the item is in the active hand, and clicked; alternately, there is an 'activate held object' verb or you can hit pagedown.
|
||||
|
||||
Reference in New Issue
Block a user