Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Doubleumc committed Jun 8, 2024
1 parent 93d95b5 commit 22f7326
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/modules/vehicles/multitile/multitile_movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@

// Crashed with something that stopped us
if(!can_move)
move_momentum = Floor(move_momentum/2)
move_momentum = trunc(move_momentum/2)
update_next_move()
interior_crash_effect()

Expand Down Expand Up @@ -251,10 +251,10 @@
return

// Not enough momentum for anything serious
if(abs(move_momentum) <= 1)
if(abs(move_momentum) < 1)
return

var/fling_distance = Ceiling(move_momentum/move_max_momentum) * 2
var/fling_distance = Ceiling(abs(move_momentum)/move_max_momentum) * 2
var/turf/target = interior.get_middle_turf()

for (var/x in 0 to fling_distance-1)
Expand All @@ -272,7 +272,7 @@
if(isliving(A))
var/mob/living/M = A

shake_camera(M, 2, Ceiling(move_momentum/move_max_momentum) * 1)
shake_camera(M, 2, Ceiling(abs(move_momentum)/move_max_momentum) * 1)
if(!M.buckled)
M.apply_effect(1, STUN)
M.apply_effect(2, WEAKEN)
Expand Down

0 comments on commit 22f7326

Please sign in to comment.