[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
+1
View File
@@ -612,6 +612,7 @@
to_chat(user, "<span class='warning'>Nothing happens!</span>")
else
flick("apc-spark", src)
playsound(src, "sparks", 75, 1)
emagged = TRUE
locked = FALSE
to_chat(user, "<span class='notice'>You emag the APC interface.</span>")
+4 -3
View File
@@ -216,9 +216,10 @@
return ..()
/obj/machinery/power/port_gen/pacman/emag_act(mob/user)
if(!emagged)
emagged = TRUE
emp_act(EMP_HEAVY)
if(emagged)
return
emagged = TRUE
emp_act(EMP_HEAVY)
/obj/machinery/power/port_gen/pacman/attack_hand(mob/user)
..()
+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