Skip to content

Commit

Permalink
Ошибочка вышла с поиском игроков на ионный шторм.
Browse files Browse the repository at this point in the history
  • Loading branch information
SmiLeYre committed Feb 27, 2024
1 parent e412e22 commit 9d7ac61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/events/ion_storm.dm
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@
message = uppertext(generate_static_ion_law())
return message

/proc/generate_static_ion_law()
/proc/generate_static_ion_law(datum/mind/new_owner)
var/iondepartment = pick_list("ion_laws.json", "отделы")
var/list/players = list()
var/datum/mind/owner = new_owner
for(var/i in GLOB.joined_player_list) // BLUEMOON EDIT - было for(var/mob/living/carbon/human/player in GLOB.player_list)
var/mob/player = get_mob_by_ckey(i) // BLUEMOON ADD
if(!player.mind || player.mind.assigned_role == player.mind.special_role || player.client.inactivity > 10 MINUTES || player.mind == owner)
Expand Down

0 comments on commit 9d7ac61

Please sign in to comment.