From bf4973e58053950e7c254dc06f87f73671a55905 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sun, 4 Jun 2017 11:04:32 -0500 Subject: [PATCH] Refactor another spawn (#1394) --- code/game/turfs/simulated/floor/mineral_floor.dm | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/code/game/turfs/simulated/floor/mineral_floor.dm b/code/game/turfs/simulated/floor/mineral_floor.dm index fc5a57e16d..46bb461660 100644 --- a/code/game/turfs/simulated/floor/mineral_floor.dm +++ b/code/game/turfs/simulated/floor/mineral_floor.dm @@ -151,18 +151,14 @@ honk() /turf/open/floor/mineral/bananium/proc/honk() - if(!spam_flag) - spam_flag = 1 + if(spam_flag < world.time) playsound(src, 'sound/items/bikehorn.ogg', 50, 1) - spawn(20) - spam_flag = 0 + spam_flag = world.time + 20 /turf/open/floor/mineral/bananium/proc/squeek() - if(!spam_flag) - spam_flag = 1 + if(spam_flag < world.time) playsound(src, "clownstep", 50, 1) - spawn(10) - spam_flag = 0 + spam_flag = world.time + 10 /turf/open/floor/mineral/bananium/airless initial_gas_mix = "TEMP=2.7"