diff --git a/code/modules/detectivework/tools/rag.dm b/code/modules/detectivework/tools/rag.dm index 1f543593fd9..a6f99bad07b 100644 --- a/code/modules/detectivework/tools/rag.dm +++ b/code/modules/detectivework/tools/rag.dm @@ -264,7 +264,7 @@ update_name() update_icon() -/obj/item/reagent_containers/glass/rag/process() +/obj/item/reagent_containers/glass/rag/process(seconds_per_tick) if(!can_ignite()) visible_message(SPAN_WARNING("\The [src] burns out.")) extinguish() @@ -289,11 +289,11 @@ for(var/fuel_type in reagents.reagent_volumes) if(ispath(fuel_type, /singleton/reagent/fuel) || ispath(fuel_type, /singleton/reagent/alcohol)) - reagents.remove_reagent(reagents.reagent_volumes[fuel_type], reagents.maximum_volume/25) + reagents.remove_reagent(fuel_type, ((reagents.maximum_volume/25) * seconds_per_tick)) break update_name() update_icon() - burn_time-- + burn_time -= seconds_per_tick /obj/item/reagent_containers/glass/rag/advanced name = "microfiber cloth" diff --git a/code/modules/reagents/reagent_containers/food/drinks/bottle.dm b/code/modules/reagents/reagent_containers/food/drinks/bottle.dm index 2e05c96716a..672c6d91b89 100644 --- a/code/modules/reagents/reagent_containers/food/drinks/bottle.dm +++ b/code/modules/reagents/reagent_containers/food/drinks/bottle.dm @@ -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]!")) diff --git a/html/changelogs/fluffyghost-fixmolotovs.yml b/html/changelogs/fluffyghost-fixmolotovs.yml new file mode 100644 index 00000000000..1584c45408c --- /dev/null +++ b/html/changelogs/fluffyghost-fixmolotovs.yml @@ -0,0 +1,60 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# - (fixes bugs) +# wip +# - (work in progress) +# qol +# - (quality of life) +# soundadd +# - (adds a sound) +# sounddel +# - (removes a sound) +# rscadd +# - (adds a feature) +# rscdel +# - (removes a feature) +# imageadd +# - (adds an image or sprite) +# imagedel +# - (removes an image or sprite) +# spellcheck +# - (fixes spelling or grammar) +# experiment +# - (experimental change) +# balance +# - (balance changes) +# code_imp +# - (misc internal code change) +# refactor +# - (refactors code) +# config +# - (makes a change to the config files) +# admin +# - (makes changes to administrator tools) +# server +# - (miscellaneous changes to server) +################################# + +# Your name. +author: FluffyGhost + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit. +# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog. +changes: + - bugfix: "Fixed molotovs not breaking on impact." + - bugfix: "Fixed burning rags runtiming." + - code_imp: "Made burning rags processing time constant."