mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-25 01:22:24 +00:00
Merge pull request #7554 from Heroman3003/turfslow
Fixes turf slowdown not applying on non-water/snow turfs
This commit is contained in:
@@ -133,8 +133,7 @@
|
||||
if(feet.water_speed)
|
||||
turf_move_cost = CLAMP(turf_move_cost + feet.water_speed, HUMAN_LOWEST_SLOWDOWN, 15)
|
||||
. += turf_move_cost
|
||||
|
||||
if(istype(T, /turf/simulated/floor/outdoors/snow))
|
||||
else if(istype(T, /turf/simulated/floor/outdoors/snow))
|
||||
if(species.snow_movement)
|
||||
turf_move_cost = CLAMP(turf_move_cost + species.snow_movement, HUMAN_LOWEST_SLOWDOWN, 15)
|
||||
if(shoes)
|
||||
@@ -142,6 +141,9 @@
|
||||
if(feet.water_speed)
|
||||
turf_move_cost = CLAMP(turf_move_cost + feet.snow_speed, HUMAN_LOWEST_SLOWDOWN, 15)
|
||||
. += turf_move_cost
|
||||
else
|
||||
turf_move_cost = CLAMP(turf_move_cost, HUMAN_LOWEST_SLOWDOWN, 15)
|
||||
. += turf_move_cost
|
||||
|
||||
// Wind makes it easier or harder to move, depending on if you're with or against the wind.
|
||||
if(T.outdoors && (T.z <= SSplanets.z_to_planet.len))
|
||||
|
||||
Reference in New Issue
Block a user