forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## About The Pull Request Что замедляло замедляет сильнее; что ускоряло, ускоряет быстрее. Простое умножение модификатора на `(RP_SPEED / TG_SPEED)`. Пример с ножками генокрада. ТГ скорость - 1.5 Ножки генокрада - -0.55 Итоговая скорость - 0.95, или же ~36% быстрее РП скорость - 2.2 Ножки генокрада - -0.81 Итоговая скорость - 1.39, или же ~36% быстрее
- Loading branch information
Showing
13 changed files
with
21 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
#include "_balance.dm" | ||
|
||
#include "code/balance_riding.dm" | ||
#include "code/~defines.dm" | ||
|
||
#include "code/speed/movespeed_modifier.dm" | ||
#include "code/dynamic.dm" | ||
#include "code/events.dm" | ||
#include "code/station_traits.dm" | ||
#include "code/supply_packs.dm" | ||
#include "code/crew_manifest.dm" | ||
|
||
#include "code/~undefs.dm" |
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
modular_bandastation/balance/code/speed/movespeed_modifier.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/proc/modified_move_delay(move_delay, ignore_zero = FALSE) | ||
if(move_delay == 0 && !ignore_zero) | ||
return round(max(RP_SPEED - TG_SPEED, 0) * TG_SPEED, 0.01) | ||
return round(RP_SPEED / TG_SPEED * move_delay, 0.01) | ||
|
||
/datum/movespeed_modifier/proc/get_rp_speed() | ||
return modified_move_delay(multiplicative_slowdown, ignore_zero = TRUE) | ||
|
||
/datum/movespeed_modifier/config_walk_run/get_rp_speed() | ||
return multiplicative_slowdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define TG_SPEED 1.5 | ||
#define RP_SPEED CONFIG_GET(number/movedelay/run_delay) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#undef TG_SPEED | ||
#undef RP_SPEED |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
modular_bandastation/crawl_speed/code/_crawl_speed_defines.dm
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
modular_bandastation/crawl_speed/code/crawl_speed_component.dm
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
modular_bandastation/crawl_speed/code/~crawl_speed_defines.dm
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters