Alexkar598 fixes PRs post merge - My review wasnt stale edition (#9591)

* Alexkar598 fixes PRs post merge - My review wasnt stale edition

* Update code/modules/events/flutes.dm

Co-authored-by: jcatjmeow <40673387+jcatjmeow@users.noreply.github.com>

Co-authored-by: jcatjmeow <40673387+jcatjmeow@users.noreply.github.com>
This commit is contained in:
alexkar598
2020-08-31 03:58:25 -04:00
committed by GitHub
parent 31667c98bf
commit 40ca7cd5c0

View File

@@ -32,16 +32,12 @@
shuffle_inplace(avail_players)
var/target_amount = (round((avail_players.len / 10), 1) == 0 ? 1 : round((avail_players.len / 10), 1))
for(var/mob/living/carbon/C in avail_players)
sound_intro(C)
C.playsound_local(C, 'sound/ambience/flutes.ogg', 20, FALSE, pressure_affected = FALSE)
pick_flute_scene(C)
chosen_players.Add(C)
if(chosen_players.len >= target_amount)
break
//EVENT PROCS
/datum/round_event/flutes/proc/sound_intro(mob/living/carbon/M)
M.playsound_local(M, 'sound/ambience/flutes.ogg', 20, FALSE, pressure_affected = FALSE)
/datum/round_event/flutes/proc/pick_flute_scene(mob/living/carbon/M)
switch(rand(1, 6))
if(1)