### Society rank limits:

# Show society clothes on low ranks.
blg_society_landless = {
	NOT = { portrait_tier = baron }
}

# Show society clothes on low ranks.
blg_society_lowrank = {
	NOT = { portrait_tier = duke }
}

# Show society clothes on leader ranks.
blg_society_leaders = {
	OR = {
		portrait_society_rank = 3
		portrait_society_rank = 4
	}
	NOT = { portrait_tier = king }
}

# Common rules for wearing Christian monastic clothes.
blg_wear_christian_monastic_clothing = {
	OR = {
		blg_society_landless = yes
		AND = {
			blg_portrait_theocracy = yes
			NOT = { portrait_tier = king }
		}
		blg_portrait_holy_order = yes
		portrait_has_trait = blgcaon
	}
	blg_wear_society_clothing_off = no
}

# Common rules for wearing monastic clothes.
blg_wear_monastic_clothing = {
	OR = {
		blg_society_landless = yes
		blg_portrait_theocracy = yes
		blg_portrait_holy_order = yes
		portrait_has_trait = blgcaon
	}
	blg_wear_society_clothing_off = no
}

# Common rules for wearing society clothes.
blg_wear_society_clothing = {
	OR = {
		blg_society_lowrank = yes
		blg_society_leaders = yes
		portrait_has_trait = blgcaon
		portrait_has_trait = blgquesting
	}
	blg_wear_society_clothing_off = no
}

# Common rules for wearing society clothes, less common.
blg_wear_society_clothing_minimal = {
	OR = {
		blg_society_lowrank = yes
		portrait_society_rank = 4
		portrait_has_trait = blgcaon
		portrait_has_trait = blgquesting
	}
	blg_wear_society_clothing_off = no
}

# Disabled society clothing.
blg_wear_society_clothing_off = {
	portrait_has_trait = blgcaoff
}

# Common rules for wearing warrior lodge clothes.
blg_wear_warrior_lodge_clothing = {
	OR = {
		blg_society_lowrank = yes
		portrait_in_command = yes
		blg_portrait_holy_order = yes
		portrait_has_trait = blgcaon
		portrait_has_trait = blgquesting
	}
	blg_wear_society_clothing_off = no
}

### Society triggers:

# African warrior lodge.
blg_society_african = {
	portrait_society = warrior_lodge_west_african
}

# Assassins society.
blg_society_assassins = {
	portrait_society = the_assassins
}

# Hellenic Bacchants.
blg_society_bacchants = {
	OR = {
		portrait_society = the_bacchants
		portrait_society = the_cult_of_kali
	}
}

# Baltic warrior lodge.
blg_society_baltic = {
	portrait_society = warrior_lodge_baltic
}

# Benedictine order.
blg_society_benedictine = {
	portrait_society = monastic_order_benedictine
}

# Bön warrior lodge.
blg_society_bon = {
	portrait_society = warrior_lodge_bon
}

# Buddhist Vajrayana order.
blg_society_buddhist_vajrayana = {
	portrait_society = monastic_order_buddhist
	portrait_has_trait = vajrayana_buddhist
}

# Buddhist Theravada order.
blg_society_buddhist_theravada = {
	portrait_society = monastic_order_buddhist
	portrait_has_trait = theravada_buddhist
}

# Buddhist Mahayana order.
blg_society_buddhist_mahayana = {
	portrait_society = monastic_order_buddhist
	portrait_has_trait = mahayana_buddhist
}

# Dominican order.
blg_society_dominican = {
	portrait_society = monastic_order_dominican
}

# Finnish warrior lodge.
blg_society_finnish = {
	portrait_society = warrior_lodge_finnish
}

# Hellenic warrior lodge.
blg_society_hellenic = {
	portrait_society = warrior_lodge_hellenic
}

# Hermetic society.
blg_society_hermetics = {
	portrait_society = hermetics
}

# Hindu Vaishnavist order.
blg_society_hindu_vaishnavist = {
	portrait_society = monastic_order_hindu
	portrait_has_trait = vaishnavist_hindu
}

# Hindu Smartist order.
blg_society_hindu_smartist = {
	portrait_society = monastic_order_hindu
	portrait_has_trait = smartist_hindu
}

# Hindu Shaktist order.
blg_society_hindu_shaktist = {
	portrait_society = monastic_order_hindu
	portrait_has_trait = shaktist_hindu
}

# Hindu Shaivist order.
blg_society_hindu_shaivist = {
	portrait_society = monastic_order_hindu
	portrait_has_trait = shaivist_hindu
}

# Jain order.
blg_society_jain = {
	portrait_society = monastic_order_jain
}

# Jain Digambara order.
blg_society_jain_digambara = {
	portrait_society = monastic_order_jain
	portrait_has_trait = digambara_jain
}

# Jain Svetambara order.
blg_society_jain_theravada = {
	portrait_society = monastic_order_jain
	portrait_has_trait = svetambara_jain
}

# Oriental Orthodox orders.
blg_society_monophysite = {
	OR = {
		portrait_society = monastic_order_monophysite
		portrait_society = monastic_order_nestorian
	}
}

# Norse warrior lodge.
blg_society_norse = {
	portrait_society = warrior_lodge_norse
}

# Orthodox order.
blg_society_orthodox = {
	portrait_society = monastic_order_orthodox
}

# Pagan Satanists society.
blg_society_pagan_cult = {
	OR = {
		portrait_society = the_cold_ones
		portrait_society = the_plaguebringers
	}
}

# Satanists society.
blg_society_satanists = {
	portrait_society = the_satanists
}

# Slavic warrior lodge.
blg_society_slavic = {
	portrait_society = warrior_lodge_slavic
}

# Hellenic Stoic order.
blg_society_stoics = {
	OR = {
		portrait_society = monastic_order_stoics
		portrait_society = monastic_order_skeptics
		portrait_society = monastic_order_epicureans
		portrait_has_trait = vestalis
	}
}

# Tengri warrior lodge.
blg_society_tengri = {
	portrait_society = warrior_lodge_tengri
}

# Norse Trollcrafters society.
blg_society_trollcrafters = {
	portrait_society = the_trollcrafters
}

# Vodoun society.
blg_society_vodoun = {
	portrait_society = the_vodouns
}

# Zunist warrior lodge.
blg_society_zun = {
	portrait_society = warrior_lodge_zun
}
