mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Converts most istype(thing,tool) procs into an appropriate thing.is_tool() format
This commit is contained in:
@@ -43,12 +43,12 @@
|
||||
/obj/machinery/power/grid_checker/attackby(obj/item/W, mob/user)
|
||||
if(!user)
|
||||
return
|
||||
if(istype(W, /obj/item/weapon/screwdriver))
|
||||
if(W.is_screwdriver())
|
||||
default_deconstruction_screwdriver(user, W)
|
||||
opened = !opened
|
||||
else if(istype(W, /obj/item/weapon/crowbar))
|
||||
else if(W.is_crowbar())
|
||||
default_deconstruction_crowbar(user, W)
|
||||
else if(istype(W, /obj/item/device/multitool) || istype(W, /obj/item/weapon/wirecutters) )
|
||||
else if(W.is_multitool() || W.is_wirecutter())
|
||||
attack_hand(user)
|
||||
|
||||
/obj/machinery/power/grid_checker/attack_hand(mob/user)
|
||||
|
||||
Reference in New Issue
Block a user