From c9c74ec263f6d8dc45a472dbfdb4f50ad451fb97 Mon Sep 17 00:00:00 2001 From: ihatethisengine <115417687+ihatethisengine@users.noreply.github.com> Date: Sun, 10 Sep 2023 00:09:45 +0300 Subject: [PATCH] Fix to whatever happens after lifeboats crash (#4366) # About the pull request Throws being called non-asynchronously caused a queue of throws immediately after the lifeboat crashed. Also buffed speed of the throw, because it was painfully slow. # Explain why it's good for the game Bug is bad. # Testing Photographs and Procedure
I did test it. Trust me bro.
# Changelog :cl: ihatethisengine fix: shuttles now throw mobs asynchronously and faster /:cl: --------- Co-authored-by: ihatethisengine --- code/modules/shuttle/on_move.dm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/modules/shuttle/on_move.dm b/code/modules/shuttle/on_move.dm index 15f1f6790591..d834822e884a 100644 --- a/code/modules/shuttle/on_move.dm +++ b/code/modules/shuttle/on_move.dm @@ -132,8 +132,7 @@ All ShuttleMove procs go here var/turf/target = get_edge_target_turf(src, move_dir) var/range = throw_force * 10 range = CEILING(rand(range-(range*0.1), range+(range*0.1)), 10)/10 - var/speed = range/5 - safe_throw_at(target, range, speed) //, force = MOVE_FORCE_EXTREMELY_STRONG) + INVOKE_ASYNC(src, TYPE_PROC_REF(/atom/movable, safe_throw_at), target, range, SPEED_AVERAGE) //=====================================================================//