mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user