mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Soggy Shadekin Fixes (#11302)
Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7973df9bbb
commit
dc9209f71b
@@ -106,6 +106,8 @@
|
||||
/turf/simulated/floor/water/Entered(atom/movable/AM, atom/oldloc)
|
||||
if(isliving(AM))
|
||||
var/mob/living/L = AM
|
||||
if(L.hovering || L.flying || L.is_incorporeal())
|
||||
return
|
||||
L.update_water()
|
||||
if(L.check_submerged() <= 0)
|
||||
return
|
||||
@@ -117,6 +119,8 @@
|
||||
/turf/simulated/floor/water/Exited(atom/movable/AM, atom/newloc)
|
||||
if(isliving(AM))
|
||||
var/mob/living/L = AM
|
||||
if(L.hovering || L.flying || L.is_incorporeal())
|
||||
return
|
||||
L.update_water()
|
||||
if(L.check_submerged() <= 0)
|
||||
return
|
||||
@@ -164,7 +168,7 @@
|
||||
/mob/living/proc/check_submerged()
|
||||
if(buckled)
|
||||
return 0
|
||||
if(hovering || flying)
|
||||
if(hovering || flying || is_incorporeal())
|
||||
if(flying)
|
||||
adjust_nutrition(-0.5)
|
||||
return 0
|
||||
|
||||
@@ -278,7 +278,7 @@
|
||||
|
||||
// Turf related slowdown
|
||||
var/turf/T = get_turf(src)
|
||||
if(T && T.movement_cost && (!hovering || !flying)) // Flying mobs ignore turf-based slowdown. Aquatic mobs ignore water slowdown, and can gain bonus speed in it.
|
||||
if(T && T.movement_cost && !(hovering || flying || is_incorporeal())) // Flying mobs ignore turf-based slowdown. Aquatic mobs ignore water slowdown, and can gain bonus speed in it.
|
||||
if(istype(T,/turf/simulated/floor/water) && aquatic_movement)
|
||||
. -= aquatic_movement - 1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user