Skip to content

Commit

Permalink
cuffbusters - wirecutter-mode powered drivers can snip cablecuffs/zip…
Browse files Browse the repository at this point in the history
…ties (#368) (#1500)

cuffbustas

Co-authored-by: Hatterhat <31829017+Hatterhat@users.noreply.github.com>
Co-authored-by: Hatterhat <Hatterhat@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 9, 2024
1 parent 6b1ab69 commit 0aedb81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modular_nova/modules/colony_fabricator/code/tools/tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
greyscale_config_belt = null
greyscale_config_inhand_left = null
greyscale_config_inhand_right = null
/// Used on Initialize, how much time to cut cable restraints and zipties.
var/snap_time_weak_handcuffs = 0 SECONDS
/// Used on Initialize, how much time to cut real handcuffs. Null means it can't.
var/snap_time_strong_handcuffs = null

/obj/item/screwdriver/omni_drill/Initialize(mapload)
. = ..()
Expand Down Expand Up @@ -67,13 +71,15 @@
var/tool_result = show_radial_menu(user, src, tool_list, custom_check = CALLBACK(src, PROC_REF(check_menu), user), require_near = TRUE, tooltips = TRUE)
if(!check_menu(user) || !tool_result)
return
RemoveElement(/datum/element/cuffsnapping, snap_time_weak_handcuffs, snap_time_strong_handcuffs)
switch(tool_result)
if("Wrench")
tool_behaviour = TOOL_WRENCH
sharpness = NONE
if("Wirecutters")
tool_behaviour = TOOL_WIRECUTTER
sharpness = NONE
AddElement(/datum/element/cuffsnapping, snap_time_weak_handcuffs, snap_time_strong_handcuffs)
if("Screwdriver")
tool_behaviour = TOOL_SCREWDRIVER
sharpness = SHARP_POINTY
Expand Down

0 comments on commit 0aedb81

Please sign in to comment.