From ebcf2433cec27348e97ada84cc7fac69d7884358 Mon Sep 17 00:00:00 2001 From: iloveloopers <140007537+iloveloopers@users.noreply.github.com> Date: Sun, 12 May 2024 23:35:59 -0400 Subject: [PATCH] OT freezer will now play a bell sound when it's done making paraformaldehyde (#6276) # About the pull request each time a container finishes making paraformaldehyde, the freezer will ring # Explain why it's good for the game QOL # Testing Photographs and Procedure it works # Changelog :cl: qol: OT freezer will now play a bell sound when it's done making paraformaldehyde in a container /:cl: --- .../structures/crates_lockers/closets/secure/freezer.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm b/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm index 323ff50fd63b..f42db78dcf39 100644 --- a/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm +++ b/code/game/objects/structures/crates_lockers/closets/secure/freezer.dm @@ -152,8 +152,14 @@ return cooldown = 5 var/containers = 0 + var/containers_ready = FALSE for(var/obj/item/reagent_container/glass/I in freezer.contents) if(I.reagents.replace_with(polymerization_recipe, "paraformaldehyde", 3)) containers++ + if(!I.reagents.has_reagent("formaldehyde", 3) || !I.reagents.has_reagent("water", 3)) + containers_ready = TRUE if(containers > 3) break + + if(containers_ready) //at least 1 container has finished, ring the bell + playsound(freezer.loc, 'sound/machines/ding.ogg', 150)