refactor: remove CanPass height arg (#26700)

This commit is contained in:
warriorstar-orion
2024-09-11 14:49:30 +00:00
committed by GitHub
parent 9f8c2c219c
commit 9a5db8f91e
36 changed files with 48 additions and 92 deletions
@@ -167,7 +167,7 @@ GLOBAL_DATUM_INIT(ghost_crew_monitor, /datum/ui_module/crew_monitor/ghost, new)
MA.plane = GAME_PLANE
. = MA
/mob/dead/CanPass(atom/movable/mover, turf/target, height=0)
/mob/dead/CanPass(atom/movable/mover, turf/target)
return 1
@@ -237,12 +237,12 @@
new /obj/effect/gibspawner/human(get_turf(src))
return ..()
/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/CanPass(atom/movable/mover, turf/target, height=0)
/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/CanPass(atom/movable/mover, turf/target)
if(isliving(mover))
var/mob/living/blocker = mover
if(faction_check_mob(blocker))
return 1
return ..(mover, target, height)
return ..()
/mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/officer
+1 -3
View File
@@ -1,11 +1,9 @@
/mob/CanPass(atom/movable/mover, turf/target, height=0)
/mob/CanPass(atom/movable/mover, turf/target)
var/horizontal = FALSE
if(isliving(src))
var/mob/living/L = src
horizontal = IS_HORIZONTAL(L)
if(height==0)
return 1
if(isprojectile(mover))
return projectile_hit_check(mover)
if(mover.throwing)