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

Destroy NRP vehicles #378

Merged
merged 4 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions modular_bandastation/balance/_balance.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/datum/modpack/balance
name = "Изменение баланса"
desc = "Любые изменения баланса идут сюда"
author = "larentoun"
3 changes: 3 additions & 0 deletions modular_bandastation/balance/_balance.dme
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include "_balance.dm"

#include "code/balance_riding.dm"
14 changes: 14 additions & 0 deletions modular_bandastation/balance/code/balance_riding.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#define TG_SPEED 1.5
#define RP_SPEED CONFIG_GET(number/movedelay/run_delay)

larentoun marked this conversation as resolved.
Show resolved Hide resolved
/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
1 change: 1 addition & 0 deletions modular_bandastation/modular_bandastation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading