Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak: decreased speed of vehicles #6022

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/datums/components/riding/riding.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
ride_check_flags |= buckle_mob_flags

if(potion_boost)
vehicle_move_delay = round(CONFIG_GET(number/movedelay/run_delay) * 0.85, 0.01)
vehicle_move_delay = round(CONFIG_GET(number/movedelay/run_delay) * 1.5, 0.01)
Den109G marked this conversation as resolved.
Show resolved Hide resolved

/datum/component/riding/RegisterWithParent()
. = ..()
Expand Down
2 changes: 1 addition & 1 deletion code/datums/components/riding/riding_vehicle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
ride_check_flags = RIDER_NEEDS_LEGS | RIDER_NEEDS_ARMS | UNBUCKLE_DISABLED_RIDER

/datum/component/riding/vehicle/speedbike
vehicle_move_delay = 0.75
vehicle_move_delay = 1
override_allow_spacemove = TRUE
ride_check_flags = RIDER_NEEDS_LEGS | RIDER_NEEDS_ARMS | UNBUCKLE_DISABLED_RIDER

Expand Down
2 changes: 1 addition & 1 deletion code/datums/elements/ridable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
if(ridable_atom.has_buckled_mobs()) // effect won't take place til the next time someone mounts it, so just prevent that situation
to_chat(user, span_warning("It's too dangerous to smear [speed_potion] on [ridable_atom] while it's being ridden!"))
return
var/speed_limit = round(CONFIG_GET(number/movedelay/run_delay) * 0.85, 0.01)
var/speed_limit = round(CONFIG_GET(number/movedelay/run_delay) *1.5, 0.01)
Den109G marked this conversation as resolved.
Show resolved Hide resolved
var/datum/component/riding/theoretical_riding_component = riding_component_type
var/theoretical_speed = initial(theoretical_riding_component.vehicle_move_delay)
if(theoretical_speed <= speed_limit) // i say speed but this is actually move delay, so you have to be ABOVE the speed limit to pass
Expand Down