Replace tool istypes() with macros

This commit is contained in:
unid15
2016-03-13 18:39:44 +01:00
parent f9253904c5
commit f3ff0f65c1
140 changed files with 296 additions and 296 deletions

View File

@@ -486,7 +486,7 @@
if(user.drop_item(W, src.loc))
to_chat(user, "<span class='notice'>You attach [W] to [src].</span>")
return
else if(istype(W, /obj/item/weapon/wirecutters))
else if(iswirecutter(W))
if(rigged)
to_chat(user, "<span class='notice'>You cut away the wiring.</span>")
playsound(loc, 'sound/items/Wirecutter.ogg', 100, 1)