Fix molotovs (#19928)

Fixed molotovs not breaking on impact.
Fixed burning rags runtiming.
Made burning rags processing time constant.

Fixes #19901
This commit is contained in:
Fluffy
2024-09-22 17:42:01 +00:00
committed by GitHub
parent 64d913b36d
commit 3ace4077d6
3 changed files with 65 additions and 5 deletions
@@ -36,9 +36,9 @@
/obj/item/reagent_containers/food/drinks/bottle/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum)
..()
var/mob/M = throwing?.thrower?.resolve()
var/mob/M = throwingdatum?.thrower?.resolve()
if((drink_flags & IS_GLASS) && istype(M) && M.a_intent == I_HURT)
var/throw_dist = get_dist(throwing?.thrower?.resolve(), loc)
var/throw_dist = get_dist(get_turf(M), get_turf(src))
if(throwingdatum.speed >= throw_speed && smash_check(throw_dist)) //not as reliable as smashing directly
if(reagents)
hit_atom.visible_message(SPAN_NOTICE("The contents of \the [src] splash all over [hit_atom]!"))