<commit_before>/datum/round_event_control/radiation_storm
	name = "Radiation Storm"
	typepath = /datum/round_event/radiation_storm
	max_occurrences = 1

/datum/round_event/radiation_storm
	var/list/protected_areas = list(/area/maintenance, /area/turret_protected/ai_upload, /area/turret_protected/ai_upload_foyer, /area/turret_protected/ai)


/datum/round_event/radiation_storm/setup()
	startWhen = rand(30, 40)
	endWhen = startWhen + 5
	announceWhen	= 1

/datum/round_event/radiation_storm/announce()
	priority_announce("      .       .", "! !", 'sound/AI/radiation.ogg')
	//sound not longer matches the text, but an audible warning is probably good


/datum/round_event/radiation_storm/start()
	for(var/mob/living/carbon/C in living_mob_list)
		var/turf/T = get_turf(C)
		if(!T)
			continue
		if(T.z != 1)
			continue

		var/skip = 0
		for(var/a in protected_areas)
			if(istype(T.loc, a))
				skip = 1
				continue

		if(skip)
			continue

		if(locate(/obj/machinery/power/apc) in T)	//damn you maint APCs!!
			continue

		if(istype(C, /mob/living/carbon/human))
			var/mob/living/carbon/human/H = C
			if(prob(5))
				H.rad_act(rand(100, 160))
			else
				H.rad_act(rand(15, 75))
			if(prob(25))
				if(prob(75))
					randmutb(H)
				else
					randmutg(H)
				H.domutcheck()

		else if(istype(C, /mob/living/carbon/monkey))
			var/mob/living/carbon/monkey/M = C
			M.rad_act(rand(15, 75))


/datum/round_event/radiation_storm/end()
	priority_announce("The radiation threat has passed. Please return to your workplaces.", "Anomaly Alert")<commit_msg>Мелкий перевод<commit_after>/datum/round_event_control/radiation_storm
	name = "Radiation Storm"
	typepath = /datum/round_event/radiation_storm
	max_occurrences = 1

/datum/round_event/radiation_storm
	var/list/protected_areas = list(/area/maintenance, /area/turret_protected/ai_upload, /area/turret_protected/ai_upload_foyer, /area/turret_protected/ai)


/datum/round_event/radiation_storm/setup()
	startWhen = rand(30, 40)
	endWhen = startWhen + 5
	announceWhen	= 1

/datum/round_event/radiation_storm/announce()
	priority_announce("      .       .", "! !", 'sound/AI/radiation.ogg')
	//sound not longer matches the text, but an audible warning is probably good


/datum/round_event/radiation_storm/start()
	for(var/mob/living/carbon/C in living_mob_list)
		var/turf/T = get_turf(C)
		if(!T)
			continue
		if(T.z != 1)
			continue

		var/skip = 0
		for(var/a in protected_areas)
			if(istype(T.loc, a))
				skip = 1
				continue

		if(skip)
			continue

		if(locate(/obj/machinery/power/apc) in T)	//damn you maint APCs!!
			continue

		if(istype(C, /mob/living/carbon/human))
			var/mob/living/carbon/human/H = C
			if(prob(5))
				H.rad_act(rand(100, 160))
			else
				H.rad_act(rand(15, 75))
			if(prob(25))
				if(prob(75))
					randmutb(H)
				else
					randmutg(H)
				H.domutcheck()

		else if(istype(C, /mob/living/carbon/monkey))
			var/mob/living/carbon/monkey/M = C
			M.rad_act(rand(15, 75))


/datum/round_event/radiation_storm/end()
	priority_announce(" .     .", " !")
{'fraction_non_alphanumeric': 0.13726135615536536, 'fraction_numerical': 0.019091507570770244, 'mean_word_length': 3.583710407239819, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '960079', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1180, 'n_words': 201}