mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
refactor: remove CanPass height arg (#26700)
This commit is contained in:
@@ -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,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)
|
||||
|
||||
Reference in New Issue
Block a user