mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user