about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Archipelago/effects.gd31
1 files changed, 16 insertions, 15 deletions
diff --git a/Archipelago/effects.gd b/Archipelago/effects.gd index 5c3efe2..ae134bc 100644 --- a/Archipelago/effects.gd +++ b/Archipelago/effects.gd
@@ -168,21 +168,22 @@ func _process_effects():
168 168
169 yield(get_tree().create_timer(1.0), "timeout") 169 yield(get_tree().create_timer(1.0), "timeout")
170 170
171 if slowness_remaining > 0: 171 if !get_tree().paused:
172 slowness_remaining -= 1 172 if slowness_remaining > 0:
173 173 slowness_remaining -= 1
174 if slowness_remaining == 0: 174
175 var player = get_tree().get_root().get_node("Spatial/player") 175 if slowness_remaining == 0:
176 player.walk_speed = orig_walk 176 var player = get_tree().get_root().get_node("Spatial/player")
177 player.run_speed = orig_run 177 player.walk_speed = orig_walk
178 178 player.run_speed = orig_run
179 if iceland_remaining > 0: 179
180 iceland_remaining -= 1 180 if iceland_remaining > 0:
181 181 iceland_remaining -= 1
182 if iceland_remaining == 0: 182
183 get_tree().get_root().get_node("Spatial/player/pivot/camera").set_environment( 183 if iceland_remaining == 0:
184 orig_env 184 get_tree().get_root().get_node("Spatial/player/pivot/camera").set_environment(
185 ) 185 orig_env
186 )
186 187
187 self.get_node("label").text = "" 188 self.get_node("label").text = ""
188 effect_running = false 189 effect_running = false