mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 02:16:05 +00:00
Fixes emitter beams not being updated when forceMoved (#30509)
* Fixes emitters not updating beam when being forceMoved * Grammar * Comments and more stuff too, for making sense * On second thought, nah leave this in Co-authored-by: kanef <kanef9x@protonmail.com>
This commit is contained in:
@@ -189,6 +189,12 @@
|
||||
to_chat(user, "<span class='warning'>\The [src] needs to be firmly secured to the floor first.</span>")
|
||||
return 1
|
||||
|
||||
/obj/machinery/power/emitter/forceMove(atom/destination, no_tp=0, harderforce = FALSE, glide_size_override = 0)
|
||||
if(active) // You just removed it from the power cable it was on, what did you think would happen?
|
||||
visible_message("<span class='warning'>The [src] gets yanked off of its power source and turns off!</span>")
|
||||
turn_off()
|
||||
..()
|
||||
|
||||
//Important note, those procs not log the emitter being turned on or off, so please use the logs in attack_hand above
|
||||
/obj/machinery/power/emitter/proc/turn_on()
|
||||
active = 1
|
||||
|
||||
Reference in New Issue
Block a user