mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Converts most istype(thing,tool) procs into an appropriate thing.is_tool() format
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/datum/category_item/autolathe/tools/crowbar
|
||||
name = "crowbar"
|
||||
path =/obj/item/weapon/crowbar
|
||||
path =/obj/item/weapon/tool/crowbar
|
||||
|
||||
/datum/category_item/autolathe/tools/multitool
|
||||
name = "multitool"
|
||||
@@ -21,15 +21,15 @@
|
||||
|
||||
/datum/category_item/autolathe/tools/screwdriver
|
||||
name = "screwdriver"
|
||||
path =/obj/item/weapon/screwdriver
|
||||
path =/obj/item/weapon/tool/screwdriver
|
||||
|
||||
/datum/category_item/autolathe/tools/wirecutters
|
||||
name = "wirecutters"
|
||||
path =/obj/item/weapon/wirecutters
|
||||
path =/obj/item/weapon/tool/wirecutters
|
||||
|
||||
/datum/category_item/autolathe/tools/wrench
|
||||
name = "wrench"
|
||||
path =/obj/item/weapon/wrench
|
||||
path =/obj/item/weapon/tool/wrench
|
||||
|
||||
/datum/category_item/autolathe/tools/hatchet
|
||||
name = "hatchet"
|
||||
|
||||
@@ -25,5 +25,5 @@
|
||||
satchel_one = /obj/item/weapon/storage/backpack/satchel/eng
|
||||
id_type = /obj/item/weapon/card/id/cargo/mining
|
||||
pda_type = /obj/item/device/pda/shaftminer
|
||||
backpack_contents = list(/obj/item/weapon/crowbar = 1, /obj/item/weapon/storage/bag/ore = 1)
|
||||
backpack_contents = list(/obj/item/weapon/tool/crowbar = 1, /obj/item/weapon/storage/bag/ore = 1)
|
||||
flags = OUTFIT_HAS_BACKPACK|OUTFIT_EXTENDED_SURVIVAL
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
/datum/recipe
|
||||
var/list/reagents // example: = list("berryjuice" = 5) // do not list same reagent twice
|
||||
var/list/items // example: = list(/obj/item/weapon/crowbar, /obj/item/weapon/welder) // place /foo/bar before /foo
|
||||
var/list/items // example: = list(/obj/item/weapon/tool/crowbar, /obj/item/weapon/welder) // place /foo/bar before /foo
|
||||
var/list/fruit // example: = list("fruit" = 3)
|
||||
var/result // example: = /obj/item/weapon/reagent_containers/food/snacks/donut/normal
|
||||
var/time = 100 // 1/10 part of second
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
/obj/item/weapon/wrapping_paper = 2,
|
||||
/obj/item/device/destTagger,
|
||||
/obj/item/weapon/hand_labeler,
|
||||
/obj/item/weapon/wirecutters,
|
||||
/obj/item/weapon/tool/wirecutters,
|
||||
/obj/item/weapon/tape_roll = 2)
|
||||
cost = 10
|
||||
containertype = "/obj/structure/closet/crate"
|
||||
|
||||
@@ -117,7 +117,7 @@ var/list/wireColours = list("red", "blue", "green", "darkred", "orange", "brown"
|
||||
var/obj/item/I = L.get_active_hand()
|
||||
holder.add_hiddenprint(L)
|
||||
if(href_list["cut"]) // Toggles the cut/mend status
|
||||
if(istype(I, /obj/item/weapon/wirecutters))
|
||||
if(I.is_wirecutter())
|
||||
var/colour = href_list["cut"]
|
||||
CutWireColour(colour)
|
||||
playsound(holder, I.usesound, 20, 1)
|
||||
|
||||
Reference in New Issue
Block a user