Merge pull request #6126 from Citadel-Station-13/upstream-merge-36715

[MIRROR] Replaces sniper bullets ex_act with bonus obj damage
This commit is contained in:
deathride58
2018-03-27 17:49:53 +00:00
committed by GitHub
@@ -10,8 +10,9 @@
var/breakthings = TRUE
/obj/item/projectile/bullet/p50/on_hit(atom/target, blocked = 0)
if((blocked != 100) && (!ismob(target) && breakthings))
target.ex_act(rand(1,2))
if(isobj(target) && (blocked != 100) && breakthings)
var/obj/O = target
O.take_damage(80, BRUTE, "bullet", FALSE)
return ..()
/obj/item/projectile/bullet/p50/soporific