mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-19 13:20:47 +01:00
37779acf01
* Gets rid of hasvar usage * thiiis * moves damtype to /obj/item * throwing * Move vars moved * matter as well Pretty much only used for the robot lathe and when crafting...When you could only smelt down obj/item for its materials * Update floor_light.dm * exploitable * this can be moved up... * move persist to /item you can't ever place /obj in storage anyway...It would imply you can store the supermatter, which I think we don't want. * gets rid of being_used I added this for xenoarch, that was a mistake * move these * move these to the base file * Makes floorlight autolathe recipe not shit * Update floor_light.dm * Update floor_light.dm * Mechs no longer gib when hitting things --------- Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
31 lines
933 B
Plaintext
31 lines
933 B
Plaintext
/// Used to check for a specific tool quality on an item.
|
|
/// Returns TRUE or FALSE depending on whether `tool_quality` is found.
|
|
/obj/item/proc/has_tool_quality(tool_quality)
|
|
return !!LAZYFIND(tool_qualities, tool_quality)
|
|
|
|
/* Legacy Support */
|
|
|
|
/// DEPRECATED PROC: DO NOT USE IN NEW CODE
|
|
/obj/item/proc/is_screwdriver()
|
|
return has_tool_quality(TOOL_SCREWDRIVER)
|
|
|
|
/// DEPRECATED PROC: DO NOT USE IN NEW CODE
|
|
/obj/item/proc/is_wrench()
|
|
return has_tool_quality(TOOL_WRENCH)
|
|
|
|
/// DEPRECATED PROC: DO NOT USE IN NEW CODE
|
|
/obj/item/proc/is_crowbar()
|
|
return has_tool_quality(TOOL_CROWBAR)
|
|
|
|
/// DEPRECATED PROC: DO NOT USE IN NEW CODE
|
|
/obj/item/proc/is_wirecutter()
|
|
return has_tool_quality(TOOL_WIRECUTTER)
|
|
|
|
/// DEPRECATED PROC: DO NOT USE IN NEW CODE
|
|
/obj/item/proc/is_multitool()
|
|
return has_tool_quality(TOOL_MULTITOOL)
|
|
|
|
/// DEPRECATED PROC: DO NOT USE IN NEW CODE
|
|
/obj/item/proc/is_welder()
|
|
return has_tool_quality(TOOL_WELDER)
|