From 76e17b18c6ffe48b325acd31c070ca90ff9eefbb Mon Sep 17 00:00:00 2001
From: Hathkar <30916002+Hathkar@users.noreply.github.com>
Date: Fri, 1 Feb 2019 11:47:13 -0500
Subject: [PATCH] Nerfs Speed Potion (#42447)
* Capped slowdown to 1 for applying speed potion to vehicles.
* Update xenobiology.dm
Modified the movement delay to match the config on the servers.
* Update xenobiology.dm
Adjusted back to 1.0
* Update xenobiology.dm
* Update xenobiology.dm
Speed potions applied to vehicles now make them 15% faster than a normal running person, unless that vehicle was already faster than a running person.
* Update xenobiology.dm
Now with correct numbers.
* Update xenobiology.dm
Updated to pull from the config's vehicle speed.
* Update code/modules/research/xenobiology/xenobiology.dm
Co-Authored-By: Hathkar <30916002+Hathkar@users.noreply.github.com>
* Update code/modules/research/xenobiology/xenobiology.dm
Co-Authored-By: Hathkar <30916002+Hathkar@users.noreply.github.com>
---
code/modules/research/xenobiology/xenobiology.dm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/code/modules/research/xenobiology/xenobiology.dm b/code/modules/research/xenobiology/xenobiology.dm
index 60b205c7809..3cf99843ab9 100644
--- a/code/modules/research/xenobiology/xenobiology.dm
+++ b/code/modules/research/xenobiology/xenobiology.dm
@@ -848,10 +848,11 @@
var/obj/vehicle/V = C
var/datum/component/riding/R = V.GetComponent(/datum/component/riding)
if(R)
- if(R.vehicle_move_delay <= 0 )
+ var/vehicle_speed_mod = round(CONFIG_GET(number/movedelay/run_delay) * 0.85, 0.01)
+ if(R.vehicle_move_delay <= vehicle_speed_mod)
to_chat(user, "The [C] can't be made any faster!")
return ..()
- R.vehicle_move_delay = 0
+ R.vehicle_move_delay = vehicle_speed_mod
to_chat(user, "You slather the red gunk over the [C], making it faster.")
C.remove_atom_colour(WASHABLE_COLOUR_PRIORITY)