# Russian Peasant Reform
	# Propose Decision - Will allow you to enable/setup a decision for russia's unique reform GUI
	#	# set_temp_variable = { pr_decision_token = token:<decision_token> } # token of decision
	# # set_temp_variable = { pr_decision_lp_cost = <lp_cost> } # country must have and will spend this lp
	# # set_temp_variable = { pr_decision_debt_cost = <debt_cost> } # country will spend this debt
	# # set_temp_variable = { pr_decision_category = <category_num> } # what tab it will appear on
	# # set_temp_variable = { pr_decision_progress = <progress_percentage> } # what % of progress you will get in the above category
	# #	set_temp_variable = { pr_decision_icon = <gfx_num_value> } # what icon the decision will recieve (GetRussianPeasantIcon) in scripted loc
	RUS_peasant_reform_propose_decision = {
		custom_effect_tooltip = RUS_peasant_reform_propose_decision_tt
		set_variable = { lp_cost@var:pr_decision_token = pr_decision_lp_cost }
		set_variable = { debt_cost@var:pr_decision_token = pr_decision_debt_cost }
		set_variable = { progress@var:pr_decision_token = pr_decision_progress }
		set_variable = { icon@var:pr_decision_token = pr_decision_icon }
		if = {
			limit = { check_variable = { pr_decision_category = 1 } }
			add_to_array = {
				array = pr_decision_array_1
				value = pr_decision_token
			}
		}
		else_if = {
			limit = { check_variable = { pr_decision_category = 2 } }
			add_to_array = {
				array = pr_decision_array_2
				value = pr_decision_token
			}
		}
		else_if = {
			limit = { check_variable = { pr_decision_category = 3 } }
			add_to_array = {
				array = pr_decision_array_3
				value = pr_decision_token
			}
		}
		else_if = {
			limit = { check_variable = { pr_decision_category = 4 } }
			add_to_array = {
				array = pr_decision_array_4
				value = pr_decision_token
			}
		}
		else_if = {
			limit = { check_variable = { pr_decision_category = 5 } }
			add_to_array = {
				array = pr_decision_array_5
				value = pr_decision_token
			}
		}
		else = {
			add_to_array = {
				array = pr_decision_array_6
				value = pr_decision_token
			}
		}
	}
	# # set_temp_variable = { v = token:<decision_token> } # this is automatic when scoped to an array
	RUS_peasant_reform_enact_decision = {
		# custom_effect_tooltip = RUS_peasant_reform_enact_decision_tt

		custom_effect_tooltip = RUS_peasant_reform_enact_decision_lp_cost_tt
		set_temp_variable = { lp_cost = lp_cost@var:v }
		multiply_temp_variable = { lp_cost = -1 }
		log = "[?lp_cost]"
		add_political_power = var:lp_cost

		if = {
			limit = { check_variable = { debt_cost@var:v > 0 } }
			custom_effect_tooltip = RUS_peasant_reform_enact_decision_debt_cost_tt
			add_to_variable = { debt_level = debt_cost@var:v }
			# debt_level_checks_effect = yes
			# debt_related_country_content_effects = yes
		}

		set_variable = { clicked@var:v = 1 }

		#### DECISION EFFECTS

		if = {
			limit = { check_variable = { v = token:RUS_decision_new_judicial_statutes } }
			activate_decision = RUS_decision_new_judicial_statutes
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_district_court } }
			activate_decision = RUS_decision_district_court
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_magistrates_court } }
			activate_decision = RUS_decision_magistrates_court
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_criminal_investigation_reform } }
			activate_decision = RUS_decision_criminal_investigation_reform
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_jury_trial } }
			activate_decision = RUS_decision_jury_trial
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_civil_and_criminal_trial_reform } }
			activate_decision = RUS_decision_civil_and_criminal_trial_reform
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_judicial_proceedings } }
			activate_decision = RUS_decision_judicial_proceedings
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_bar_association } }
			activate_decision = RUS_decision_bar_association
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_new_censorship_law } }
			activate_decision = RUS_decision_new_censorship_law
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_further_soften_censorship_law } }
			activate_decision = RUS_decision_further_soften_censorship_law
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_censorship_counter_reform } }
			activate_decision = RUS_decision_censorship_counter_reform
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_land_distribution } }
			activate_decision = RUS_decision_land_distribution
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_transitionals_labour_system } }
			activate_decision = RUS_decision_transitionals_labour_system
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_local_regulations } }
			activate_decision = RUS_decision_local_regulations
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_jews_movement } }
			activate_decision = RUS_decision_jews_movement
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_buyback_operation } }
			activate_decision = RUS_decision_buyback_operation
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_modernise_taxation_system } }
			activate_decision = RUS_decision_modernise_taxation_system
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_improve_state_finances_transparency } }
			activate_decision = RUS_decision_improve_state_finances_transparency
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_establish_main_buyback_institution } }
			activate_decision = RUS_decision_establish_main_buyback_institution
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_redemption_operations } }
			activate_decision = RUS_decision_redemption_operations
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_siberian_trade_bank } }
			activate_decision = RUS_decision_siberian_trade_bank
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_moscow_city_regulations } }
			activate_decision = RUS_decision_moscow_city_regulations
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_city_regulations } }
			activate_decision = RUS_decision_city_regulations
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_abolishment_prikazy_obshchestvennego_prizeniia } }
			activate_decision = RUS_decision_abolishment_prikazy_obshchestvennego_prizeniia
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_statistics } }
			activate_decision = RUS_decision_zemstvo_statistics
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_insurance } }
			activate_decision = RUS_decision_zemstvo_insurance
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_education } }
			activate_decision = RUS_decision_zemstvo_education
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_primary_schools1 } }
			activate_decision = RUS_decision_zemstvo_primary_schools1
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_primary_schools2 } }
			activate_decision = RUS_decision_zemstvo_primary_schools2
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_post_office } }
			activate_decision = RUS_decision_zemstvo_post_office
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_1870_stamp_law } }
			activate_decision = RUS_decision_zemstvo_1870_stamp_law
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_medicine } }
			activate_decision = RUS_decision_zemstvo_medicine
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_zemstvo_healthcare_law } }
			activate_decision = RUS_decision_zemstvo_healthcare_law
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_city_dumas } }
			activate_decision = RUS_decision_city_dumas
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_city_financing } }
			activate_decision = RUS_decision_city_financing
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_first_city_dumas } }
			activate_decision = RUS_decision_first_city_dumas
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_establish_the_state_bank } }
			activate_decision = RUS_decision_establish_the_state_bank
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_establish_the_state_treasury } }
			activate_decision = RUS_decision_establish_the_state_treasury
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_examine_possibility_monetary_reform } }
			activate_decision = RUS_decision_examine_possibility_monetary_reform
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_provincial_city_affairs_comissions } }
			activate_decision = RUS_decision_provincial_city_affairs_comissions
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_draft_reform_project } }
			activate_decision = RUS_decision_draft_reform_project
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_reorganise_ministry_of_public_education } }
			activate_decision = RUS_decision_reorganise_ministry_of_public_education
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_send_russian_graduates_to_european_universities } }
			activate_decision = RUS_decision_send_russian_graduates_to_european_universities
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_create_new_university_charter } }
			activate_decision = RUS_decision_create_new_university_charter
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_create_regulation_on_elementary_schools } }
			activate_decision = RUS_decision_create_regulation_on_elementary_schools
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_decentralize_educational_administration } }
			activate_decision = RUS_decision_decentralize_educational_administration
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_create_new_gymnasium_charter } }
			activate_decision = RUS_decision_create_new_gymnasium_charter
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_create_regulation_on_female_schools } }
			activate_decision = RUS_decision_create_regulation_on_female_schools
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_organize_higher_female_courses } }
			activate_decision = RUS_decision_organize_higher_female_courses
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_further_expand_female_education } }
			activate_decision = RUS_decision_further_expand_female_education
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_educational_counter_reform } }
			activate_decision = RUS_decision_educational_counter_reform
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_expand_zemstvo_powers } }
			activate_decision = RUS_decision_expand_zemstvo_powers
		}
		else_if = {
			limit = { check_variable = { v = token:RUS_decision_judicial_counter_reform } }
			activate_decision = RUS_decision_judicial_counter_reform
		}
	}

	RUS_great_game_map_setup = {
		set_variable = { 445.great_game_map_frame = 3 }
		set_variable = { afg.great_game_map_frame = 3 }
		set_variable = { 1362.great_game_map_frame = 1 }
		set_variable = { buk.great_game_map_frame = 1 }
		set_variable = { 944.great_game_map_frame = 1 }
		set_variable = { raj.great_game_map_frame = 1 }
		set_variable = { kaz.great_game_map_frame = 1 }
		set_variable = { khi.great_game_map_frame = 1 }
		set_variable = { kok.great_game_map_frame = 1 }
		set_variable = { 266.great_game_map_frame = 3 }
		set_variable = { 412.great_game_map_frame = 3 }
		set_variable = { tib.great_game_map_frame = 2 } 
		set_variable = { sik.great_game_map_frame = 1 }
		set_variable = { tms.great_game_map_frame = 1 }
	}

	RUS_great_game_map_update = {
		445 = { #afghan hind
			if = {
				limit = { is_owned_by = RUS }
				set_variable = { great_game_map_frame = 1 }
			}
			else_if = {
				limit = { is_owned_by = ENG }
				set_variable = { great_game_map_frame = 5 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
					check_variable = { great_game_influence@RUS > great_game_influence@ENG }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@ENG > 5 }
					check_variable = { great_game_influence@ENG > great_game_influence@RUS }
				}
				set_variable = { great_game_map_frame = 4 }
			}
			else = {
				set_variable = { great_game_map_frame = 3 }
			}
		}
		AFG = { #afghanistan
			if = {
				limit = { 267 = { is_owned_by = RUS } }
				set_variable = { great_game_map_frame = 1 }
			}
			else_if = {
				limit = { 267 = { is_owned_by = ENG } }
				set_variable = { great_game_map_frame = 5 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
					check_variable = { great_game_influence@RUS > great_game_influence@ENG }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@ENG > 5 }
					check_variable = { great_game_influence@ENG > great_game_influence@RUS }
				}
				set_variable = { great_game_map_frame = 4 }
			}
			else = {
				set_variable = { great_game_map_frame = 3 }
			}
		}
		1362 = { #badakhshan
			if = {
				limit = {
					is_owned_by = RUS
				}
				set_variable = { great_game_map_frame = 3 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else = {
				set_variable = { great_game_map_frame = 1 }
			}
		}
		BUK = { #bukhara
			if = {
				limit = { 405 = { is_owned_by = RUS } }
				set_variable = { great_game_map_frame = 3 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else = {
				set_variable = { great_game_map_frame = 1 }
			}
		}
		944 = { #east kazakhstan
			if = {
				limit = {
					is_owned_by = RUS
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else = {
				set_variable = { great_game_map_frame = 1 }
			}
		}
		RAJ = { #india
			if = {
				limit = {
					1379 = { is_owned_by = RAJ }
				}
				set_variable = { great_game_map_frame = 3 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@ENG > 5 }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else = {
				set_variable = { great_game_map_frame = 1 }
			}
		}
		KAZ = { #kazakhstan
			if = {
				limit = {
					1364 = { is_owned_by = RUS }
				}
				set_variable = { great_game_map_frame = 1 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
				}
				set_variable = { great_game_map_frame = 1 }
			}
			else = {
				set_variable = { great_game_map_frame = 2 }
			}
		}
		KHI = { #khiva
			if = {
				limit = {
					1319 = { is_owned_by = RUS }
				}
				set_variable = { great_game_map_frame = 3 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else = {
				set_variable = { great_game_map_frame = 1 }
			}
		}
		KOK = { #kokand
			if = {
				limit = {
					732 = { is_owned_by = RUS }
				}
				set_variable = { great_game_map_frame = 3 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else = {
				set_variable = { great_game_map_frame = 1 }
			}
		}
		266 = { #north iran
			if = {
				limit = { is_owned_by = RUS }
				set_variable = { great_game_map_frame = 1 }
			}
			else_if = {
				limit = { is_owned_by = ENG }
				set_variable = { great_game_map_frame = 5 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
					check_variable = { great_game_influence@RUS > great_game_influence@ENG }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@ENG > 5 }
					check_variable = { great_game_influence@ENG > great_game_influence@RUS }
				}
				set_variable = { great_game_map_frame = 4 }
			}
			else = {
				set_variable = { great_game_map_frame = 3 }
			}
		}
		412 = { #south iran
			if = {
				limit = { is_owned_by = RUS }
				set_variable = { great_game_map_frame = 1 }
			}
			else_if = {
				limit = { is_owned_by = ENG }
				set_variable = { great_game_map_frame = 5 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
					check_variable = { great_game_influence@RUS > great_game_influence@ENG }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@ENG > 5 }
					check_variable = { great_game_influence@ENG > great_game_influence@RUS }
				}
				set_variable = { great_game_map_frame = 4 }
			}
			else = {
				set_variable = { great_game_map_frame = 3 }
			}
		}
		TIB = { #tibet
			if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
					check_variable = { great_game_influence@RUS > great_game_influence@ENG }
				}
				set_variable = { great_game_map_frame = 1 }
			}
			else_if = {
				limit = {
					check_variable = { great_game_influence@ENG > 5 }
					check_variable = { great_game_influence@ENG > great_game_influence@RUS }
				}
				set_variable = { great_game_map_frame = 3 }
			}
			else = {
				set_variable = { great_game_map_frame = 2 }
			}
		}
		SIK = { #turkestan
			if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else = {
				set_variable = { great_game_map_frame = 1 }
			}
		}
		TMS = { #turkmenistan
			if = {
				limit = { 584 = { is_owned_by = RUS } }
				set_variable = { great_game_map_frame = 2 }
			}
			if = {
				limit = {
					check_variable = { great_game_influence@RUS > 5 }
					check_variable = { great_game_influence@RUS > great_game_influence@ENG }
				}
				set_variable = { great_game_map_frame = 2 }
			}
			else = {
				set_variable = { great_game_map_frame = 1 }
			}
		}
	}