mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
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:
@@ -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]!"))
|
||||
|
||||
Reference in New Issue
Block a user