Skip to content

Commit

Permalink
OT freezer will now play a bell sound when it's done making paraforma…
Browse files Browse the repository at this point in the history
…ldehyde (#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:
  • Loading branch information
iloveloopers committed May 13, 2024
1 parent 8287f87 commit ebcf243
Showing 1 changed file with 6 additions and 0 deletions.
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))
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)

0 comments on commit ebcf243

Please sign in to comment.