Merge pull request #38527 from AutomaticFrenzy/patch/ripples

Fix ripples appearing too broadly and disappearing too soon
This commit is contained in:
Jordan Brown
2018-06-18 09:38:42 -05:00
committed by letterjay
parent 3fe0ec584c
commit a70cbed1f7
2 changed files with 12 additions and 12 deletions
+3 -5
View File
@@ -1,4 +1,4 @@
/obj/effect/temp_visual/ripple
/obj/effect/abstract/ripple
name = "hyperspace ripple"
desc = "Something is coming through hyperspace, you can see the \
visual disturbances. It's probably best not to be on top of these \
@@ -11,12 +11,10 @@
mouse_opacity = MOUSE_OPACITY_ICON
alpha = 0
duration = 3 * SHUTTLE_RIPPLE_TIME
/obj/effect/temp_visual/ripple/Initialize(mapload, time_left)
/obj/effect/abstract/ripple/Initialize(mapload, time_left)
. = ..()
animate(src, alpha=255, time=time_left)
addtimer(CALLBACK(src, .proc/stop_animation), 8, TIMER_CLIENT_TIME)
/obj/effect/temp_visual/ripple/proc/stop_animation()
/obj/effect/abstract/ripple/proc/stop_animation()
icon_state = "medi_holo_no_anim"