From f0476725d8244908e81925000c20227a3cf3199d Mon Sep 17 00:00:00 2001 From: Kyep Date: Mon, 6 Aug 2018 21:39:45 -0700 Subject: [PATCH] squash --- code/game/machinery/shieldgen.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/shieldgen.dm b/code/game/machinery/shieldgen.dm index b8e8b93fc91..035744daab1 100644 --- a/code/game/machinery/shieldgen.dm +++ b/code/game/machinery/shieldgen.dm @@ -457,27 +457,27 @@ CF.dir = field_dir -/obj/machinery/shieldwallgen/attackby(obj/item/W, mob/user, params) - if(istype(W, /obj/item/wrench)) +/obj/machinery/shieldwallgen/attackby(obj/item/I, mob/user, params) + if(istype(I, /obj/item/wrench)) if(active) to_chat(user, "Turn off the field generator first.") return else if(state == 0) state = 1 - playsound(loc, W.usesound, 75, 1) + playsound(loc, I.usesound, 75, 1) to_chat(user, "You secure the external reinforcing bolts to the floor.") anchored = 1 return else if(state == 1) state = 0 - playsound(loc, W.usesound, 75, 1) + playsound(loc, I.usesound, 75, 1) to_chat(user, "You undo the external reinforcing bolts.") anchored = 0 return - if(istype(W, /obj/item/card/id)||istype(W, /obj/item/pda)) + if(istype(I, /obj/item/card/id)||istype(I, /obj/item/pda)) if(allowed(user)) locked = !locked to_chat(user, "Controls are now [locked ? "locked." : "unlocked."]")