mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
blitz rod impact fix (#11442)
This commit is contained in:
@@ -26,10 +26,15 @@
|
|||||||
hud_state = "rocket_thermobaric"
|
hud_state = "rocket_thermobaric"
|
||||||
|
|
||||||
/obj/item/projectile/bullet/magnetic/fuelrod/blitz/on_impact(var/atom/A)
|
/obj/item/projectile/bullet/magnetic/fuelrod/blitz/on_impact(var/atom/A)
|
||||||
if(src.loc)
|
if(isturf(loc))
|
||||||
var/mob/living/M = A
|
explosion(loc, 3, 4, 5, 10)
|
||||||
if(istype(M) && M.maxHealth<=200)
|
|
||||||
M.dust()
|
|
||||||
visible_message(span_warning("\The [src] impacts energetically with its target and shatters in a violent explosion!"))
|
|
||||||
explosion(src.loc, 3, 4, 5, 10)
|
|
||||||
..(A)
|
..(A)
|
||||||
|
|
||||||
|
/obj/item/projectile/bullet/magnetic/fuelrod/blitz/on_hit(atom/target, blocked = 0, def_zone)
|
||||||
|
var/mob/living/M = target
|
||||||
|
if(istype(M) && M.maxHealth<=200)
|
||||||
|
M.dust()
|
||||||
|
if(isturf(loc))
|
||||||
|
explosion(loc, 3, 4, 5, 10)
|
||||||
|
visible_message(span_warning("\The [src] impacts energetically with its target and shatters in a violent explosion!"))
|
||||||
|
..(target, blocked, def_zone)
|
||||||
|
|||||||
Reference in New Issue
Block a user