mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +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:
@@ -65,7 +65,9 @@
|
||||
var/list/tc = allowed_typecache
|
||||
if(disable_attackby)
|
||||
return
|
||||
if(user.a_intent != INTENT_HELP)
|
||||
// Allow tools to be inserted on harm and help intent since they might be used for construction
|
||||
// otherwise user needs to be on help intent
|
||||
if(!((I.tool_behaviour && user.a_intent == INTENT_HARM) || user.a_intent == INTENT_HELP))
|
||||
return
|
||||
if(I.flags & ABSTRACT)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user