Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OT freezer will now play a bell sound when it's done making paraformaldehyde #6276

Merged
merged 6 commits into from
May 13, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Drulikar marked this conversation as resolved.
Show resolved Hide resolved
containers_ready = TRUE
if(containers > 3)
break

if(containers_ready) //at least 1 container has finished, ring the bell
playsound(freezer.loc, 'sound/misc/desk_bell.ogg', 150)
Drulikar marked this conversation as resolved.
Show resolved Hide resolved
Loading