Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Jul 15, 2024
1 parent 9efee46 commit ac1a6eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modular_bandastation/balance/code/balance_riding.dm
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#define TG_SPEED 1.5
#define RP_SPEED CONFIG_GET(number/movedelay/run_delay)

/datum/component/riding/Initialize(mob/living/riding_mob, force, buckle_mob_flags, potion_boost)
. = ..()
if(. == COMPONENT_INCOMPATIBLE)
return
if(vehicle_move_delay == 0)
vehicle_move_delay = round(max(CONFIG_GET(number/movedelay/run_delay) - TG_SPEED, 0) * TG_SPEED, 0.01)
vehicle_move_delay = round(max(RP_SPEED - TG_SPEED, 0) * TG_SPEED, 0.01)
return
vehicle_move_delay = round(CONFIG_GET(number/movedelay/run_delay) / TG_SPEED * vehicle_move_delay, 0.01)
vehicle_move_delay = round(RP_SPEED / TG_SPEED * vehicle_move_delay, 0.01)

#undef TG_SPEED
#undef RP_SPEED

0 comments on commit ac1a6eb

Please sign in to comment.