mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
Making bullets and tachyon penetrate closets (#6449)
This Pr makes any bullet or tachyon projectiles penetrate closets. Upon penetration each mob inside of locker will get damaged by the projectile.
This commit is contained in:
committed by
Erki
parent
166e3bc896
commit
c41b1b72a1
@@ -209,6 +209,11 @@
|
||||
var/proj_damage = Proj.get_structure_damage()
|
||||
if(!proj_damage)
|
||||
return
|
||||
|
||||
if(Proj.penetrating || istype(Proj, /obj/item/projectile/bullet))
|
||||
var/distance = get_dist(Proj.starting, get_turf(loc))
|
||||
for(var/mob/living/L in contents)
|
||||
Proj.attack_mob(L, distance)
|
||||
|
||||
..()
|
||||
damage(proj_damage)
|
||||
|
||||
Reference in New Issue
Block a user