Merge pull request #16336 from TankTheBirb/flying-ignores-terrain

Flying over water/snow does not slow
This commit is contained in:
Heroman3003
2024-09-21 21:53:43 +10:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -73,7 +73,7 @@
water_breath.adjust_gas(gasid, BREATH_MOLES) // They have no oxygen, but non-zero moles and temp
water_breath.temperature = above_air.temperature
return water_breath
if(L && L.is_bad_swimmer() && depth >= 2 && !L.buckled())
if(L && L.is_bad_swimmer() && depth >= 2 && !L.buckled() && !L.flying)
if(prob(10))
L.visible_message("<span class='notice'>[L] splashes wildly.</span>","<span class='warning'>You struggle to keep your head above the water!</span>")
if(L.can_breathe_water())
@@ -147,7 +147,7 @@
if(!T)
return 0
if(T.movement_cost)
if(T.movement_cost && !flying) //VOREStation Add: If you are flying you are probably not affected by the terrain on the ground.
var/turf_move_cost = T.movement_cost
if(istype(T, /turf/simulated/floor/water))
if(species.water_movement)