mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 07:12:55 +00:00
* Adds support for self-filling reagent containers * Sets tool_behaviour on the default set of tools * Fixing merge conflicts * Refactors welder to use tool behaviour * The refactor: part I * The refactor: part II * Tool Refactor Part III: Revenge of the Maint * Tool Refactor Part IV: A New Hope * Tool Refactor Part V: The Oldcoder Strikes Back * Tool Refactor Part VI: Return of the Coder * VII * Holy shit, it compiles?! * Nannek I completed your TODO, you owe me ice cream * Tool helpers; telepad is compliant * Bugtest, Round 1: Fight Fuck refactoring disposals * Buggfixing, Round 2: Electric Boogaloo * Personal crafting uses tool behaviours now * Construction datums use new tool behaviours; better way of handling fueltank refuelling; more bugfixing * multitool_check_buffer change; removes some useless things in tool_helpers * proc name change * TRUE/FALSE changes * Bugfixing, Round 3: A Good Day To Bugfix Hard Fixes multiple issues raised by the testmerge * Minor style changes
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
//Quick type checks for some tools
|
|
|
|
/proc/iswrench(O)
|
|
if(istype(O, /obj/item/wrench))
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/proc/iswelder(O)
|
|
if(istype(O, /obj/item/weldingtool))
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/proc/iswirecutter(O)
|
|
if(istype(O, /obj/item/wirecutters))
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/proc/isscrewdriver(O)
|
|
if(istype(O, /obj/item/screwdriver))
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/proc/ismultitool(O)
|
|
if(istype(O, /obj/item/multitool))
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/proc/iscrowbar(O)
|
|
if(istype(O, /obj/item/crowbar))
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/proc/iscoil(O)
|
|
if(istype(O, /obj/item/stack/cable_coil))
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/proc/ispowertool(O)//used to check if a tool can force powered doors
|
|
if(istype(O, /obj/item/crowbar/power) || istype(O, /obj/item/mecha_parts/mecha_equipment/medical/rescue_jaw))
|
|
return TRUE
|
|
return FALSE
|
|
|
|
/proc/is_surgery_tool(obj/item/W as obj)
|
|
return ( \
|
|
istype(W, /obj/item/scalpel) || \
|
|
istype(W, /obj/item/hemostat) || \
|
|
istype(W, /obj/item/retractor) || \
|
|
istype(W, /obj/item/cautery) || \
|
|
istype(W, /obj/item/bonegel) || \
|
|
istype(W, /obj/item/bonesetter)
|
|
)
|