Files
Paradise/code/__HELPERS/tool_helpers.dm
AffectedArc07 1feb9fbd38 [READY] Atmos Refactor Part 7 (I think) - Kills signals + TGUIs stuff (#19867)
* I AM NOT A KING. I AM NOT A GOD. I AM LUNACY.

* THE SCOPE CREEP

* This was done in vi. No langserver. Send help.

* Progress

* Some issues fixed

* The code builds, but the maps dont

* CC builds, I doubt anything else does

* Do this now

* Safety

* The map compiles

* THE MAPPING HELL

* Airlock controllers dont work

* Fixed bombs

* AND THATS FIXED

* Phantom edit

* Restores LL I think

* The mapmerge hooks are actually retarded

* Fixes spawners

* Half working air control

* Picky

* Hyper efficient tank monitor

* Sanity

* Laying the framework

* Improved alert console

* Dont think this is actually done anywhere

* Metering

* ONE HUNDRED AND ~~EIGHTY~~ TWENTY SEVEN

* WE ARE READY FOR BOX TO BUILD

* One map done

* Well that was easy

* Another one

* I think this is done

* I should have removed this

* I would make a russian joke but <current event>

* Delta WIP

* Makes delta work

* Early review

* TM safeguard

* oops

* METAAAAAAAAAAAAAAAAAAAAAAAAA

* Fix #4213

* Trailing

* oh for piss sake

* Shutter fix

* Roundstart ATs can go away

* Review pass 1

* What could go wrong

* BOOM BOOM BOOM

* Not needed

* Fix seed vault

* Oops

* Review changes
2023-01-03 20:59:35 +00:00

70 lines
1.4 KiB
Plaintext

//Quick type checks for some tools
// Why are these not defines?
/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)
)
/proc/is_surgery_tool_by_behavior(obj/item/W)
if(!istype(W))
return FALSE
var/tool_behavior = W.tool_behaviour
return tool_behavior in list(
TOOL_BONEGEL,
TOOL_BONESET,
TOOL_CAUTERY,
TOOL_DRILL,
TOOL_FIXOVEIN,
TOOL_HEMOSTAT,
TOOL_RETRACTOR,
TOOL_SAW,
TOOL_SCALPEL,
TOOL_SCREWDRIVER
)