diff --git a/modular_bandastation/balance/_balance.dm b/modular_bandastation/balance/_balance.dm new file mode 100644 index 0000000000000..c246560c2bf2b --- /dev/null +++ b/modular_bandastation/balance/_balance.dm @@ -0,0 +1,4 @@ +/datum/modpack/balance + name = "Изменение баланса" + desc = "Любые изменения баланса идут сюда" + author = "larentoun" diff --git a/modular_bandastation/balance/_balance.dme b/modular_bandastation/balance/_balance.dme new file mode 100644 index 0000000000000..2f3cc14531f35 --- /dev/null +++ b/modular_bandastation/balance/_balance.dme @@ -0,0 +1,3 @@ +#include "_balance.dm" + +#include "code/balance_riding.dm" diff --git a/modular_bandastation/balance/code/balance_riding.dm b/modular_bandastation/balance/code/balance_riding.dm new file mode 100644 index 0000000000000..c63f14c45cb73 --- /dev/null +++ b/modular_bandastation/balance/code/balance_riding.dm @@ -0,0 +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(RP_SPEED - TG_SPEED, 0) * TG_SPEED, 0.01) + return + vehicle_move_delay = round(RP_SPEED / TG_SPEED * vehicle_move_delay, 0.01) + +#undef TG_SPEED +#undef RP_SPEED diff --git a/modular_bandastation/modular_bandastation.dme b/modular_bandastation/modular_bandastation.dme index 15cbaef82a810..f805bb52659d5 100644 --- a/modular_bandastation/modular_bandastation.dme +++ b/modular_bandastation/modular_bandastation.dme @@ -8,6 +8,7 @@ #include "aesthetics/_aesthetics.dme" #include "ai_laws/_ai_laws.dme" #include "autohiss/_autohiss.dme" +#include "balance/_balance.dme" #include "barsigns/_barsigns.dme" #include "communication/_communication.dme" //#include "crawl_speed/_crawl_speed.dme" // Fixing floored melee brawl, or first steps to remove RP speed