﻿# BRIBES
join_court_value = {
	value = 10
	if = {
		limit = {
			scope:recipient.ai_greed > 0
		}
		add = {
			value = scope:recipient.ai_greed
			divide = 4
		}
	}

	if = {
		limit = {
			scope:recipient = { is_playable_character = yes }
			scope:recipient.primary_title.tier < tier_duchy
		}
		multiply = 1.25
	}
	else_if = {
		limit = {
			scope:recipient.primary_title.tier >= tier_duchy
		}
		multiply = 1.5
	}

	#Royals courts increase expenses
	#Lodgings
	if = {
		limit = {
			scope:actor = {
				has_dlc_feature = royal_court
			}
			scope:recipient = {
				has_royal_court = yes
				amenity_level = { type = court_lodging_standards value =  medium_amenity_levelhigh_amenity_level }
			}
		}
		multiply = 1.1
	}
	if = {
		limit = {
			scope:actor = {
				has_dlc_feature = royal_court
			}
			scope:recipient = {
				has_royal_court = yes
				amenity_level = { type = court_lodging_standards value =  high_amenity_level }
			}
		}
		multiply = 1.2
	}
	if = {
		limit = {
			scope:actor = {
				has_dlc_feature = royal_court
			}
			scope:recipient = {
				has_royal_court = yes
				amenity_level = { type = court_lodging_standards value =  very_high_amenity_level }
			}
		}
		multiply = 1.3
	}
	if = {
		limit = {
			scope:actor = {
				has_dlc_feature = royal_court
			}
			scope:recipient = {
				has_royal_court = yes
				amenity_level = { type = court_lodging_standards value =  max_amenity_level }
			}
		}
		multiply = 1.4
	}

	#Food
	if = {
		limit = {
			scope:actor = {
				has_dlc_feature = royal_court
			}
			scope:recipient = {
				has_royal_court = yes
				amenity_level = { type = court_food_quality value =  medium_amenity_levelhigh_amenity_level }
			}
		}
		multiply = 1.05
	}
	if = {
		limit = {
			scope:actor = {
				has_dlc_feature = royal_court
			}
			scope:recipient = {
				has_royal_court = yes
				amenity_level = { type = court_food_quality value =  high_amenity_level }
			}
		}
		multiply = 1.1
	}
	if = {
		limit = {
			scope:actor = {
				has_dlc_feature = royal_court
			}
			scope:recipient = {
				has_royal_court = yes
				amenity_level = { type = court_food_quality value =  very_high_amenity_level }
			}
		}
		multiply = 1.15
	}
	if = {
		limit = {
			scope:actor = {
				has_dlc_feature = royal_court
			}
			scope:recipient = {
				has_royal_court = yes
				amenity_level = { type = court_food_quality value =  max_amenity_level }
			}
		}
		multiply = 1.2
	}

	if = {
		limit = {
			scope:actor = {
				exists = dynasty
				dynasty = {
					has_dynasty_perk = guile_legacy_2
				}
			}
		}
		multiply = 0.5
	}

	if = {
		limit = {
			scope:recipient = {
				is_playable_character = yes
				government_has_flag = government_is_tribal
			}
		}
		multiply = 0.25
		min = 5
	}

	# Discount from BP2 imaginary friend story cycle ending
	if = {
		limit = {
			scope:actor = { has_character_modifier = imaginary_friend_mad_modifier }
		}
		multiply = 0.5
		min = 5
	}
}