mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 07:22:15 +00:00
Converts some istype's to use helpers (#3224)
Converts various istype's to use helpers. Mainly: Cable Wrench Screwdriver Multitool Crowbar Wirecutter And makes the helpers defines.
This commit is contained in:
@@ -453,7 +453,7 @@
|
||||
if (O.is_open_container())
|
||||
return 0
|
||||
|
||||
if(istype(O, /obj/item/weapon/wirecutters) || istype(O, /obj/item/weapon/scalpel))
|
||||
if(iswirecutter(O) || istype(O, /obj/item/weapon/scalpel))
|
||||
|
||||
if(!seed)
|
||||
user << "There is nothing to take a sample from in \the [src]."
|
||||
@@ -558,7 +558,7 @@
|
||||
qdel(O)
|
||||
check_health()
|
||||
|
||||
else if(mechanical && istype(O, /obj/item/weapon/wrench))
|
||||
else if(mechanical && iswrench(O))
|
||||
|
||||
//If there's a connector here, the portable_atmospherics setup can handle it.
|
||||
if(locate(/obj/machinery/atmospherics/portables_connector/) in loc)
|
||||
|
||||
Reference in New Issue
Block a user