Permit impact drills to work in IPC surgery and some minor tool fixes (#22840)

This permits the impact drills to work for surgeries where a screwdriver
would work. For the regular uses that would be opening the hatches on
prosthetic limbs and prosthetic organ repairs. This was done as
machinists, who primarily do those surgeries, usually print an impact
drill for themself anyway so it was an annoyance to have a screwdriver
just for that one thing in their entire workshop.

While at it, I also changed a few hardcoded tool checks elsewhere to not
be as hardcoded.
This commit is contained in:
Casper3667
2026-07-17 20:50:07 +00:00
committed by GitHub
parent 4a50853514
commit a0c5ab0a09
6 changed files with 12 additions and 8 deletions
@@ -38,7 +38,7 @@
powersupply = attacking_item
update_icon()
else if(istype(attacking_item, /obj/item/screwdriver) && powersupply)
else if(attacking_item.tool_behaviour == TOOL_SCREWDRIVER && powersupply)
to_chat(user, SPAN_NOTICE("You remove \the [powersupply] from \the [src]'s power socket"))
powersupply.forceMove(get_turf(src))
user.put_in_hands(powersupply)
-3
View File
@@ -861,9 +861,6 @@
update_tool(tool)
return TRUE
/obj/item/powerdrill/issurgerycompatible()
return FALSE // too unwieldy for most surgeries
/obj/item/steelwool
name = "steel wool"
desc = "Harvested from the finest NanoTrasen steel sheep."
+1 -1
View File
@@ -953,7 +953,7 @@
else
to_chat(user, SPAN_WARNING("You need at least twelve rods to complete \the [src]."))
return
else if(istype(attacking_item, /obj/item/screwdriver))
else if(attacking_item.tool_behaviour == TOOL_SCREWDRIVER)
return
else
..()
@@ -55,8 +55,8 @@
maxhealth += 50
/obj/structure/barricade/liquid/attackby(obj/item/attacking_item, mob/user)
if(istype(attacking_item, /obj/item/crowbar) && user.a_intent != I_HURT)
var/obj/item/crowbar/ET = attacking_item
if(attacking_item.tool_behaviour == TOOL_CROWBAR && user.a_intent != I_HURT)
var/obj/item/ET = attacking_item
user.visible_message(SPAN_NOTICE("[user] starts disassembling [src]."), \
SPAN_NOTICE("You start disassembling [src]."))
if(ET.use_tool(src, user, 4 SECONDS))