mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 00:53:23 +01:00
Projectiles no longer have a chance to get blocked by broken grilles (#21138)
* Projectiles no longer have a chance to get blocked by broken grilles * Better code is better * Removes errant space --------- Co-authored-by: adrermail@gmail.com <adrermail@gmail.com>
This commit is contained in:
@@ -110,15 +110,13 @@
|
||||
take_damage(20, BRUTE, MELEE, 1)
|
||||
|
||||
/obj/structure/grille/CanPass(atom/movable/mover, turf/target, height=0)
|
||||
. = !density
|
||||
if(height==0)
|
||||
return 1
|
||||
return TRUE
|
||||
if(istype(mover) && mover.checkpass(PASSGRILLE))
|
||||
return 1
|
||||
else
|
||||
if(istype(mover, /obj/item/projectile))
|
||||
return prob(30)
|
||||
else
|
||||
return !density
|
||||
return TRUE
|
||||
if(istype(mover, /obj/item/projectile))
|
||||
return (prob(30) || !density)
|
||||
|
||||
/obj/structure/grille/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE)
|
||||
. = !density
|
||||
|
||||
Reference in New Issue
Block a user