From 6f4ea6fc1bf1eb2b2df690f5cb97b25a37ddf8cc Mon Sep 17 00:00:00 2001 From: Theos Date: Fri, 31 May 2024 02:29:22 -0400 Subject: [PATCH] Fixes plasma thruster acceleration (#2980) ## About The Pull Request If you burned the expected amount of fuel you got full thrust regardless of throttle ## Why It's Good For The Game ## Changelog :cl: fix: fueled thruster throttling now works right /:cl: --------- Signed-off-by: Theos --- code/game/machinery/shuttle/shuttle_engine_types.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/machinery/shuttle/shuttle_engine_types.dm b/code/game/machinery/shuttle/shuttle_engine_types.dm index e5e3d812c0986..de9992e106d1c 100644 --- a/code/game/machinery/shuttle/shuttle_engine_types.dm +++ b/code/game/machinery/shuttle/shuttle_engine_types.dm @@ -29,7 +29,7 @@ if(heat_creation) heat_engine() var/to_use = fuel_use * (percentage / 100) * deltatime - return resolved_heater.consume_fuel(to_use, fuel_type) / to_use * thrust //This proc returns how much was actually burned, so let's use that and multiply it by the thrust to get all the thrust we CAN give. + return resolved_heater.consume_fuel(to_use, fuel_type) / to_use * percentage / 100 * thrust //This proc returns how much was actually burned, so let's use that and multiply it by the thrust to get all the thrust we CAN give. /obj/machinery/power/shuttle/engine/fueled/return_fuel() . = ..()