<commit_before>//Helper proc to get an Eminence mob if it exists
/proc/get_eminence()
	return locate(/mob/camera/eminence) in servants_and_ghosts()

//The Eminence is a unique mob that functions like the leader of the cult. It's incorporeal but can interact with the world in several ways.
/mob/camera/eminence
	name = <NAME>"
	real_name = <NAME>"
	desc = "The leader-elect of the servants of Ratvar."
	icon = 'icons/effects/clockwork_effects.dmi'
	icon_state = "eminence"
	mouse_opacity = MOUSE_OPACITY_OPAQUE
	move_on_shuttle = TRUE
	see_in_dark = 8
	invisibility = INVISIBILITY_OBSERVER
	layer = FLY_LAYER
	faction = list("ratvar")
	lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
	var/turf/last_failed_turf
	var/static/superheated_walls = 0

/mob/camera/eminence/CanPass(atom/movable/mover, turf/target)
	return TRUE

/mob/camera/eminence/Move(NewLoc, direct)
	var/OldLoc = loc
	if(NewLoc && !istype(NewLoc, /turf/open/indestructible/reebe_void))
		var/turf/T = get_turf(NewLoc)
		if(T.flags_1 & NOJAUNT_1)
			if(last_failed_turf != T)
				T.visible_message("<span class='warning'>[T] suddenly emits a ringing sound!</span>", ignore_mob = src)
				playsound(T, 'sound/machines/clockcult/ark_damage.ogg', 75, FALSE)
				last_failed_turf = T
			to_chat(src, "<span class='warning'>This turf is consecrated and can't be crossed!</span>")
			return
		if(istype(get_area(T), /area/chapel))
			to_chat(src, "<span class='warning'>The Chapel is hallowed ground under a heretical deity, and can't be accessed!</span>")
			return
		forceMove(T)
	Moved(OldLoc, direct)
	if(GLOB.ratvar_awakens)
		for(var/turf/T in range(5, src))
			if(prob(166 - (get_dist(src, T) * 33)))
				T.ratvar_act() //Causes moving to leave a swath of proselytized area behind the Eminence

/mob/camera/eminence/Process_Spacemove(movement_dir = 0)
	return TRUE

/mob/camera/eminence/Login()
	..()<commit_msg>The Radiance (eminence after ratvar awakens) can now ignore chapel tiles (#33873)<commit_after>//Helper proc to get an Eminence mob if it exists
/proc/get_eminence()
	return locate(/mob/camera/eminence) in servants_and_ghosts()

//The Eminence is a unique mob that functions like the leader of the cult. It's incorporeal but can interact with the world in several ways.
/mob/camera/eminence
	name = <NAME>"
	real_name = <NAME>"
	desc = "The leader-elect of the servants of Ratvar."
	icon = 'icons/effects/clockwork_effects.dmi'
	icon_state = "eminence"
	mouse_opacity = MOUSE_OPACITY_OPAQUE
	move_on_shuttle = TRUE
	see_in_dark = 8
	invisibility = INVISIBILITY_OBSERVER
	layer = FLY_LAYER
	faction = list("ratvar")
	lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
	var/turf/last_failed_turf
	var/static/superheated_walls = 0

/mob/camera/eminence/CanPass(atom/movable/mover, turf/target)
	return TRUE

/mob/camera/eminence/Move(NewLoc, direct)
	var/OldLoc = loc
	if(NewLoc && !istype(NewLoc, /turf/open/indestructible/reebe_void))
		var/turf/T = get_turf(NewLoc)
		if(T.flags_1 & NOJAUNT_1)
			if(last_failed_turf != T)
				T.visible_message("<span class='warning'>[T] suddenly emits a ringing sound!</span>", ignore_mob = src)
				playsound(T, 'sound/machines/clockcult/ark_damage.ogg', 75, FALSE)
				last_failed_turf = T
			to_chat(src, "<span class='warning'>This turf is consecrated and can't be crossed!</span>")
			return
		if(!GLOB.ratvar_awakens && istype(get_area(T), /area/chapel))
			to_chat(src, "<span class='warning'>The Chapel is hallowed ground under a heretical deity, and can't be accessed!</span>")
			return
		forceMove(T)
	Moved(OldLoc, direct)
	if(GLOB.ratvar_awakens)
		for(var/turf/T in range(5, src))
			if(prob(166 - (get_dist(src, T) * 33)))
				T.ratvar_act() //Causes moving to leave a swath of proselytized area behind the Eminence

/mob/camera/eminence/Process_Spacemove(movement_dir = 0)
	return TRUE

/mob/camera/eminence/Login()
	..()
{'fraction_non_alphanumeric': 0.11839378238341969, 'fraction_numerical': 0.008031088082901554, 'mean_word_length': 4.754098360655738, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '251666', 'n_tokens_mistral': 1586, 'n_tokens_neox': 1429, 'n_words': 342}