mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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."
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user