Fixes a thurible runtime (#27138)

* thurible runtime fix

* Update code/game/objects/items/weapons/thurible.dm

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Signed-off-by: Henri215 <77684085+Henri215@users.noreply.github.com>

---------

Signed-off-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
Henri215
2024-10-22 09:35:03 +00:00
committed by GitHub
co-authored by Contrabang
parent 21b0a34ff6
commit a8d322939c
+4 -4
View File
@@ -164,11 +164,11 @@
var/mob/living/carbon/C = A
if(C.can_breathe_gas())
mobs_to_smoke += C
if(length(mobs_to_smoke))
var/percentage_to_add = released_reagents.reagents.total_volume / length(mobs_to_smoke) // Divide the amount of reagents spread around by the number of people inhaling it
var/percentage_to_add = released_reagents.reagents.total_volume / length(mobs_to_smoke) // Divide the amount of reagents spread around by the number of people inhaling it
for(var/mob/living/carbon/smoker as anything in mobs_to_smoke)
released_reagents.reagents.copy_to(smoker, percentage_to_add)
for(var/mob/living/carbon/smoker as anything in mobs_to_smoke)
released_reagents.reagents.copy_to(smoker, percentage_to_add)
if(reagents.total_volume <= 0)
put_out()