Replaces sniper bullets ex_act with bonus obj damage (#36715)

* Replaces sniper bullets ex_act with bonus obj damage

* Update sniper.dm

* Update sniper.dm
This commit is contained in:
XDTM
2018-03-27 00:17:09 +02:00
committed by CitadelStationBot
parent c579d81f4c
commit 3d36b34650
@@ -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