[MIRROR] Cleaned up some emag_acts (#2018)

* Cleaned up some emag_acts

* Delete port_gen.dm.rej

* Update port_gen.dm
This commit is contained in:
CitadelStationBot
2017-07-15 15:17:56 -05:00
committed by kevinz000
parent 099b908d64
commit d21766956e
40 changed files with 200 additions and 169 deletions
+6 -5
View File
@@ -342,11 +342,12 @@
return ..()
/obj/machinery/power/emitter/emag_act(mob/user)
if(!emagged)
locked = FALSE
emagged = TRUE
if(user)
user.visible_message("[user.name] emags the [src.name].","<span class='notice'>You short out the lock.</span>")
if(emagged)
return
locked = FALSE
emagged = TRUE
if(user)
user.visible_message("[user.name] emags the [src].","<span class='notice'>You short out the lock.</span>")
/obj/machinery/power/emitter/prototype