mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
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>
This commit is contained in:
@@ -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, "<span class='warning'>The [C] can't be made any faster!</span>")
|
||||
return ..()
|
||||
R.vehicle_move_delay = 0
|
||||
R.vehicle_move_delay = vehicle_speed_mod
|
||||
|
||||
to_chat(user, "<span class='notice'>You slather the red gunk over the [C], making it faster.</span>")
|
||||
C.remove_atom_colour(WASHABLE_COLOUR_PRIORITY)
|
||||
|
||||
Reference in New Issue
Block a user