diff --git a/code/game/turfs/simulated/walls_reinforced.dm b/code/game/turfs/simulated/walls_reinforced.dm
index 613b9d4fcad..b7d3e092c19 100644
--- a/code/game/turfs/simulated/walls_reinforced.dm
+++ b/code/game/turfs/simulated/walls_reinforced.dm
@@ -33,19 +33,20 @@
if(SHEATH)
to_chat(user, "The support rods have been sliced through, and the outer sheath is connected loosely to the girder.")
-/turf/simulated/wall/r_wall/attackby(obj/item/W as obj, mob/user as mob, params)
+/turf/simulated/wall/r_wall/attackby(obj/item/W, mob/user, params)
user.changeNext_move(CLICK_CD_MELEE)
if(!user.IsAdvancedToolUser())
to_chat(user, "You don't have the dexterity to do this!")
return
//get the user's location
- if( !istype(user.loc, /turf) ) return //can't do this stuff whilst inside objects and such
+ if(!isturf(user.loc))
+ return //can't do this stuff whilst inside objects and such
if(rotting)
- if(istype(W, /obj/item/weapon/weldingtool) )
+ if(iswelder(W))
var/obj/item/weapon/weldingtool/WT = W
- if( WT.remove_fuel(0,user) )
+ if(WT.remove_fuel(0,user))
to_chat(user, "You burn away the fungi with \the [WT].")
playsound(src, WT.usesound, 10, 1)
for(var/obj/effect/overlay/wall_rot/WR in src)
@@ -54,14 +55,14 @@
return
else if(!is_sharp(W) && W.force >= 10 || W.force >= 20)
to_chat(user, "\The [src] crumbles away under the force of your [W.name].")
- src.dismantle_wall()
+ dismantle_wall()
return
//THERMITE related stuff. Calls src.thermitemelt() which handles melting simulated walls and the relevant effects
- if( thermite )
- if( istype(W, /obj/item/weapon/weldingtool) )
+ if(thermite)
+ if(iswelder(W))
var/obj/item/weapon/weldingtool/WT = W
- if( WT.remove_fuel(0,user) )
+ if(WT.remove_fuel(0,user))
thermitemelt(user)
return
@@ -69,7 +70,7 @@
thermitemelt(user)
return
- else if( istype(W, /obj/item/weapon/melee/energy/blade) )
+ else if(istype(W, /obj/item/weapon/melee/energy/blade))
var/obj/item/weapon/melee/energy/blade/EB = W
EB.spark_system.start()
@@ -84,7 +85,7 @@
to_chat(user, "This wall is too thick to slice through. You will need to find a different path.")
return
- if(damage && istype(W, /obj/item/weapon/weldingtool))
+ if(damage && iswelder(W))
var/obj/item/weapon/weldingtool/WT = W
if(WT.remove_fuel(0,user))
to_chat(user, "You start repairing the damage to [src].")
@@ -101,7 +102,7 @@
//DECONSTRUCTION
switch(d_state)
if(INTACT)
- if(istype(W, /obj/item/weapon/wirecutters))
+ if(iswirecutter(W))
playsound(src, W.usesound, 100, 1)
d_state = SUPPORT_LINES
update_icon()
@@ -110,7 +111,7 @@
return
if(SUPPORT_LINES)
- if(istype(W, /obj/item/weapon/screwdriver))
+ if(isscrewdriver(W))
to_chat(user, "You begin removing the support lines...")
playsound(src, W.usesound, 100, 1)
@@ -126,13 +127,13 @@
if(O.use(1))
d_state = INTACT
update_icon()
- src.icon_state = "r_wall"
+ icon_state = "r_wall"
to_chat(user, "You replace the outer grille.")
else
to_chat(user, "You don't have enough rods for that!")
if(COVER)
- if(istype(W, /obj/item/weapon/weldingtool))
+ if(iswelder(W))
var/obj/item/weapon/weldingtool/WT = W
if(WT.remove_fuel(0,user))
to_chat(user, "You begin slicing through the metal cover...")
@@ -158,7 +159,7 @@
return
if(CUT_COVER)
- if(istype(W, /obj/item/weapon/crowbar))
+ if(iscrowbar(W))
to_chat(user, "You struggle to pry off the cover...")
playsound(src, W.usesound, 100, 1)
@@ -169,7 +170,7 @@
return
if(BOLTS)
- if(istype(W, /obj/item/weapon/wrench))
+ if(iswrench(W))
to_chat(user, "You start loosening the anchoring bolts which secure the support rods to their frame...")
playsound(src, W.usesound, 100, 1)
@@ -180,7 +181,7 @@
return
if(SUPPORT_RODS)
- if(istype(W, /obj/item/weapon/weldingtool))
+ if(iswelder(W))
var/obj/item/weapon/weldingtool/WT = W
if(WT.remove_fuel(0,user))
to_chat(user, "You begin slicing through the support rods...")
@@ -207,7 +208,7 @@
return
if(SHEATH)
- if(istype(W, /obj/item/weapon/crowbar))
+ if(iscrowbar(W))
to_chat(user, "You struggle to pry off the outer sheath...")
playsound(src, W.usesound, 100, 1)