Skip to content

Commit

Permalink
Update watercloset.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel committed Mar 11, 2024
1 parent 7468e67 commit 5f35678
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions code/game/objects/structures/watercloset.dm
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@
var/watertemp = "normal" //freezing, normal, or boiling
var/mobpresent = 0 //true if there is a mob on the shower's loc, this is to ease process()
var/is_washing = 0
var/last_sound = 0

COOLDOWN_DECLARE(last_sound)

/obj/structure/machinery/shower/Initialize()
. = ..()
Expand Down Expand Up @@ -380,8 +381,9 @@

/obj/structure/machinery/shower/process()
if(!on) return
if(world.time > last_sound + 80)
last_sound = world.time

if(COOLDOWN_FINISHED(src, last_sound))
COOLDOWN_START(src, last_sound, 8 SECONDS)
playsound(src, "gurgle", 25, FALSE)
wash_floor()
if(!mobpresent) return
Expand Down

0 comments on commit 5f35678

Please sign in to comment.