# Sakuya Cheat Menu Pro - Block 3 Scripted GUIs

sakuya_main_force_show_check = {
	scope = country
	is_shown = {
		is_player = yes
		has_variable = sakuya_main_force_show
	}
}

sakuya_main_force_show_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_main_force_show
	}
}

sakuya_main_03_01_mark_company_open = {
	scope = country
	is_shown = { is_player = yes }

	effect = {
		remove_variable = sakuya_main_force_show
		remove_variable = sakuya_main_03_01_use_marked_country
		remove_variable = sakuya_main_03_01_force_empty_notice
		trigger_event = { id = sakuya_main_03_01.1 popup = yes }
	}
}

sakuya_main_03_01_mark_company_open_marked_country = {
	scope = country
	is_shown = { is_player = yes }

	effect = {
		save_scope_as = sakuya_b3_root_country_scope
		remove_variable = sakuya_main_force_show
		remove_variable = sakuya_main_03_01_mark_country_found
		remove_variable = sakuya_main_03_01_use_marked_country
		remove_variable = sakuya_main_03_01_force_empty_notice
		every_country = {
			limit = { has_variable = sakuya_mark_country_target }
			scope:sakuya_b3_root_country_scope = { set_variable = sakuya_main_03_01_mark_country_found }
			save_scope_as = sakuya_main_03_01_marked_country_scope
		}

		if = {
			limit = {
				has_variable = sakuya_main_03_01_mark_country_found
				exists = scope:sakuya_main_03_01_marked_country_scope
				scope:sakuya_main_03_01_marked_country_scope = {
					any_company = {
						NOT = { has_variable = sakuya_main_03_01_marked }
					}
				}
			}
			set_variable = sakuya_main_03_01_use_marked_country
			trigger_event = { id = sakuya_main_03_01.1 popup = yes }
		}
		else = {
			set_variable = sakuya_main_03_01_force_empty_notice
			trigger_event = { id = sakuya_main_03_01.1 popup = yes }
		}
		remove_variable = sakuya_main_03_01_mark_country_found
	}
}

sakuya_main_03_01_mark_company_clear_all = {
	scope = country
	is_shown = { is_player = yes }
	is_valid = {
		any_country = {
			any_company = {
				has_variable = sakuya_main_03_01_marked
			}
		}
	}

	effect = {
		every_country = {
			limit = {
				any_company = {
					has_variable = sakuya_main_03_01_marked
				}
			}
			every_company = {
				limit = {
					has_variable = sakuya_main_03_01_marked
				}
				remove_variable = sakuya_main_03_01_marked
			}
		}
	}
}
 

# --- Trade & Market: 1. Trade Capacity ---
sakuya_b3_tm_trade_capacity_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_tm_trade_capacity_active }
}

sakuya_b3_tm_trade_capacity_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_trade_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_capacity_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_trade_capacity
		add_modifier = { name = sakuya_cheat_b3_trade_capacity multiplier = var:sakuya_b3_tm_trade_capacity_mult }
		set_variable = sakuya_b3_tm_trade_capacity_active
	}
}

sakuya_b3_tm_trade_capacity_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_trade_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_capacity_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_trade_capacity
		add_modifier = { name = sakuya_cheat_b3_trade_capacity multiplier = var:sakuya_b3_tm_trade_capacity_mult }
		set_variable = sakuya_b3_tm_trade_capacity_active
	}
}

sakuya_b3_tm_trade_capacity_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_trade_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_capacity_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_trade_capacity
		add_modifier = { name = sakuya_cheat_b3_trade_capacity multiplier = var:sakuya_b3_tm_trade_capacity_mult }
		set_variable = sakuya_b3_tm_trade_capacity_active
	}
}

sakuya_b3_tm_trade_capacity_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_trade_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_capacity_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_trade_capacity
		if = {
			limit = { has_variable = sakuya_b3_tm_trade_capacity_mult }
			add_modifier = { name = sakuya_cheat_b3_trade_capacity multiplier = var:sakuya_b3_tm_trade_capacity_mult }
			set_variable = sakuya_b3_tm_trade_capacity_active
		}
		if = {
			limit = { var:sakuya_b3_tm_trade_capacity_mult = 0 }
			remove_variable = sakuya_b3_tm_trade_capacity_mult
			remove_variable = sakuya_b3_tm_trade_capacity_active
		}
	}
}

sakuya_b3_tm_trade_capacity_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_trade_capacity
		remove_variable = sakuya_b3_tm_trade_capacity_mult
		remove_variable = sakuya_b3_tm_trade_capacity_active
	}
}

# --- Trade & Market: 2. Trade Quantity ---
sakuya_b3_tm_trade_quantity_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_tm_trade_quantity_active }
}

sakuya_b3_tm_trade_quantity_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_quantity_mult } }
			set_variable = { name = sakuya_b3_tm_trade_quantity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_quantity_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_trade_quantity
		add_modifier = { name = sakuya_cheat_b3_trade_quantity multiplier = var:sakuya_b3_tm_trade_quantity_mult }
		set_variable = sakuya_b3_tm_trade_quantity_active
	}
}

sakuya_b3_tm_trade_quantity_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_quantity_mult } }
			set_variable = { name = sakuya_b3_tm_trade_quantity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_quantity_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_trade_quantity
		add_modifier = { name = sakuya_cheat_b3_trade_quantity multiplier = var:sakuya_b3_tm_trade_quantity_mult }
		set_variable = sakuya_b3_tm_trade_quantity_active
	}
}

sakuya_b3_tm_trade_quantity_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_quantity_mult } }
			set_variable = { name = sakuya_b3_tm_trade_quantity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_quantity_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_trade_quantity
		add_modifier = { name = sakuya_cheat_b3_trade_quantity multiplier = var:sakuya_b3_tm_trade_quantity_mult }
		set_variable = sakuya_b3_tm_trade_quantity_active
	}
}

sakuya_b3_tm_trade_quantity_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_quantity_mult } }
			set_variable = { name = sakuya_b3_tm_trade_quantity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_quantity_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_trade_quantity
		if = {
			limit = { has_variable = sakuya_b3_tm_trade_quantity_mult }
			add_modifier = { name = sakuya_cheat_b3_trade_quantity multiplier = var:sakuya_b3_tm_trade_quantity_mult }
			set_variable = sakuya_b3_tm_trade_quantity_active
		}
		if = {
			limit = { var:sakuya_b3_tm_trade_quantity_mult = 0 }
			remove_variable = sakuya_b3_tm_trade_quantity_mult
			remove_variable = sakuya_b3_tm_trade_quantity_active
		}
	}
}

sakuya_b3_tm_trade_quantity_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_trade_quantity
		remove_variable = sakuya_b3_tm_trade_quantity_mult
		remove_variable = sakuya_b3_tm_trade_quantity_active
	}
}

# --- Trade & Market: 3. Import Advantage ---
sakuya_b3_tm_import_advantage_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_tm_import_advantage_active }
}

sakuya_b3_tm_import_advantage_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_import_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_import_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_import_advantage_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_import_advantage
		add_modifier = { name = sakuya_cheat_b3_import_advantage multiplier = var:sakuya_b3_tm_import_advantage_mult }
		set_variable = sakuya_b3_tm_import_advantage_active
	}
}

sakuya_b3_tm_import_advantage_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_import_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_import_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_import_advantage_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_import_advantage
		add_modifier = { name = sakuya_cheat_b3_import_advantage multiplier = var:sakuya_b3_tm_import_advantage_mult }
		set_variable = sakuya_b3_tm_import_advantage_active
	}
}

sakuya_b3_tm_import_advantage_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_import_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_import_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_import_advantage_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_import_advantage
		add_modifier = { name = sakuya_cheat_b3_import_advantage multiplier = var:sakuya_b3_tm_import_advantage_mult }
		set_variable = sakuya_b3_tm_import_advantage_active
	}
}

sakuya_b3_tm_import_advantage_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_import_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_import_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_import_advantage_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_import_advantage
		if = {
			limit = { has_variable = sakuya_b3_tm_import_advantage_mult }
			add_modifier = { name = sakuya_cheat_b3_import_advantage multiplier = var:sakuya_b3_tm_import_advantage_mult }
			set_variable = sakuya_b3_tm_import_advantage_active
		}
		if = {
			limit = { var:sakuya_b3_tm_import_advantage_mult = 0 }
			remove_variable = sakuya_b3_tm_import_advantage_mult
			remove_variable = sakuya_b3_tm_import_advantage_active
		}
	}
}

sakuya_b3_tm_import_advantage_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_import_advantage
		remove_variable = sakuya_b3_tm_import_advantage_mult
		remove_variable = sakuya_b3_tm_import_advantage_active
	}
}

# --- Trade & Market: 4. Export Advantage ---
sakuya_b3_tm_export_advantage_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_tm_export_advantage_active }
}

sakuya_b3_tm_export_advantage_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_export_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_export_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_export_advantage_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_export_advantage
		add_modifier = { name = sakuya_cheat_b3_export_advantage multiplier = var:sakuya_b3_tm_export_advantage_mult }
		set_variable = sakuya_b3_tm_export_advantage_active
	}
}

sakuya_b3_tm_export_advantage_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_export_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_export_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_export_advantage_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_export_advantage
		add_modifier = { name = sakuya_cheat_b3_export_advantage multiplier = var:sakuya_b3_tm_export_advantage_mult }
		set_variable = sakuya_b3_tm_export_advantage_active
	}
}

sakuya_b3_tm_export_advantage_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_export_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_export_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_export_advantage_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_export_advantage
		add_modifier = { name = sakuya_cheat_b3_export_advantage multiplier = var:sakuya_b3_tm_export_advantage_mult }
		set_variable = sakuya_b3_tm_export_advantage_active
	}
}

sakuya_b3_tm_export_advantage_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_export_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_export_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_export_advantage_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_export_advantage
		if = {
			limit = { has_variable = sakuya_b3_tm_export_advantage_mult }
			add_modifier = { name = sakuya_cheat_b3_export_advantage multiplier = var:sakuya_b3_tm_export_advantage_mult }
			set_variable = sakuya_b3_tm_export_advantage_active
		}
		if = {
			limit = { var:sakuya_b3_tm_export_advantage_mult = 0 }
			remove_variable = sakuya_b3_tm_export_advantage_mult
			remove_variable = sakuya_b3_tm_export_advantage_active
		}
	}
}

sakuya_b3_tm_export_advantage_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_export_advantage
		remove_variable = sakuya_b3_tm_export_advantage_mult
		remove_variable = sakuya_b3_tm_export_advantage_active
	}
}

# --- Trade & Market: 5. Ignore trade advantage penalty bool ---
sakuya_b3_tm_ignore_penalty_check = {
	scope = country
	is_shown = { has_modifier = sakuya_cheat_b3_ignore_trade_advantage_penalty }
}

sakuya_b3_tm_ignore_penalty_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		add_modifier = { name = sakuya_cheat_b3_ignore_trade_advantage_penalty }
	}
}

sakuya_b3_tm_ignore_penalty_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_ignore_trade_advantage_penalty
	}
}

# --- Trade & Market: 6. Weekly Trades ---
sakuya_b3_tm_weekly_trades_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_tm_weekly_trades_active }
}

sakuya_b3_tm_weekly_trades_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_weekly_trades_mult } }
			set_variable = { name = sakuya_b3_tm_weekly_trades_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_weekly_trades_mult add = 5 }
		remove_modifier = sakuya_cheat_b3_weekly_trades
		add_modifier = { name = sakuya_cheat_b3_weekly_trades multiplier = var:sakuya_b3_tm_weekly_trades_mult }
		set_variable = sakuya_b3_tm_weekly_trades_active
	}
}

sakuya_b3_tm_weekly_trades_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_weekly_trades_mult } }
			set_variable = { name = sakuya_b3_tm_weekly_trades_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_weekly_trades_mult add = 5000 }
		remove_modifier = sakuya_cheat_b3_weekly_trades
		add_modifier = { name = sakuya_cheat_b3_weekly_trades multiplier = var:sakuya_b3_tm_weekly_trades_mult }
		set_variable = sakuya_b3_tm_weekly_trades_active
	}
}

sakuya_b3_tm_weekly_trades_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_weekly_trades_mult } }
			set_variable = { name = sakuya_b3_tm_weekly_trades_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_weekly_trades_mult add = 1 }
		remove_modifier = sakuya_cheat_b3_weekly_trades
		add_modifier = { name = sakuya_cheat_b3_weekly_trades multiplier = var:sakuya_b3_tm_weekly_trades_mult }
		set_variable = sakuya_b3_tm_weekly_trades_active
	}
}

sakuya_b3_tm_weekly_trades_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_weekly_trades_mult } }
			set_variable = { name = sakuya_b3_tm_weekly_trades_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_weekly_trades_mult add = -5 }
		remove_modifier = sakuya_cheat_b3_weekly_trades
		if = {
			limit = { has_variable = sakuya_b3_tm_weekly_trades_mult }
			add_modifier = { name = sakuya_cheat_b3_weekly_trades multiplier = var:sakuya_b3_tm_weekly_trades_mult }
			set_variable = sakuya_b3_tm_weekly_trades_active
		}
		if = {
			limit = { var:sakuya_b3_tm_weekly_trades_mult = 0 }
			remove_variable = sakuya_b3_tm_weekly_trades_mult
			remove_variable = sakuya_b3_tm_weekly_trades_active
		}
	}
}

sakuya_b3_tm_weekly_trades_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_weekly_trades
		remove_variable = sakuya_b3_tm_weekly_trades_mult
		remove_variable = sakuya_b3_tm_weekly_trades_active
	}
}

# --- Trade & Market: 7. Trade Capacity Add ---
sakuya_b3_tm_trade_capacity_add_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_tm_trade_capacity_add_active }
}

sakuya_b3_tm_trade_capacity_add_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_capacity_add_mult } }
			set_variable = { name = sakuya_b3_tm_trade_capacity_add_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_capacity_add_mult add = 100 }
		remove_modifier = sakuya_cheat_b3_trade_capacity_add
		add_modifier = { name = sakuya_cheat_b3_trade_capacity_add multiplier = var:sakuya_b3_tm_trade_capacity_add_mult }
		set_variable = sakuya_b3_tm_trade_capacity_add_active
	}
}

sakuya_b3_tm_trade_capacity_add_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_capacity_add_mult } }
			set_variable = { name = sakuya_b3_tm_trade_capacity_add_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_capacity_add_mult add = 100000 }
		remove_modifier = sakuya_cheat_b3_trade_capacity_add
		add_modifier = { name = sakuya_cheat_b3_trade_capacity_add multiplier = var:sakuya_b3_tm_trade_capacity_add_mult }
		set_variable = sakuya_b3_tm_trade_capacity_add_active
	}
}

sakuya_b3_tm_trade_capacity_add_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_capacity_add_mult } }
			set_variable = { name = sakuya_b3_tm_trade_capacity_add_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_capacity_add_mult add = 10 }
		remove_modifier = sakuya_cheat_b3_trade_capacity_add
		add_modifier = { name = sakuya_cheat_b3_trade_capacity_add multiplier = var:sakuya_b3_tm_trade_capacity_add_mult }
		set_variable = sakuya_b3_tm_trade_capacity_add_active
	}
}

sakuya_b3_tm_trade_capacity_add_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_capacity_add_mult } }
			set_variable = { name = sakuya_b3_tm_trade_capacity_add_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_capacity_add_mult add = -100 }
		remove_modifier = sakuya_cheat_b3_trade_capacity_add
		if = {
			limit = { has_variable = sakuya_b3_tm_trade_capacity_add_mult }
			add_modifier = { name = sakuya_cheat_b3_trade_capacity_add multiplier = var:sakuya_b3_tm_trade_capacity_add_mult }
			set_variable = sakuya_b3_tm_trade_capacity_add_active
		}
		if = {
			limit = { var:sakuya_b3_tm_trade_capacity_add_mult = 0 }
			remove_variable = sakuya_b3_tm_trade_capacity_add_mult
			remove_variable = sakuya_b3_tm_trade_capacity_add_active
		}
	}
}

sakuya_b3_tm_trade_capacity_add_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_trade_capacity_add
		remove_variable = sakuya_b3_tm_trade_capacity_add_mult
		remove_variable = sakuya_b3_tm_trade_capacity_add_active
	}
}

# --- Trade & Market: 8. Trade Advantage ---
sakuya_b3_tm_trade_advantage_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_tm_trade_advantage_active }
}

sakuya_b3_tm_trade_advantage_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_trade_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_advantage_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_trade_advantage
		add_modifier = { name = sakuya_cheat_b3_trade_advantage multiplier = var:sakuya_b3_tm_trade_advantage_mult }
		set_variable = sakuya_b3_tm_trade_advantage_active
	}
}

sakuya_b3_tm_trade_advantage_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_trade_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_advantage_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_trade_advantage
		add_modifier = { name = sakuya_cheat_b3_trade_advantage multiplier = var:sakuya_b3_tm_trade_advantage_mult }
		set_variable = sakuya_b3_tm_trade_advantage_active
	}
}

sakuya_b3_tm_trade_advantage_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_trade_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_advantage_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_trade_advantage
		add_modifier = { name = sakuya_cheat_b3_trade_advantage multiplier = var:sakuya_b3_tm_trade_advantage_mult }
		set_variable = sakuya_b3_tm_trade_advantage_active
	}
}

sakuya_b3_tm_trade_advantage_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_trade_advantage_mult } }
			set_variable = { name = sakuya_b3_tm_trade_advantage_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_trade_advantage_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_trade_advantage
		if = {
			limit = { has_variable = sakuya_b3_tm_trade_advantage_mult }
			add_modifier = { name = sakuya_cheat_b3_trade_advantage multiplier = var:sakuya_b3_tm_trade_advantage_mult }
			set_variable = sakuya_b3_tm_trade_advantage_active
		}
		if = {
			limit = { var:sakuya_b3_tm_trade_advantage_mult = 0 }
			remove_variable = sakuya_b3_tm_trade_advantage_mult
			remove_variable = sakuya_b3_tm_trade_advantage_active
		}
	}
}

sakuya_b3_tm_trade_advantage_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_trade_advantage
		remove_variable = sakuya_b3_tm_trade_advantage_mult
		remove_variable = sakuya_b3_tm_trade_advantage_active
	}
}

# --- Trade & Market: 10. Disable trade centers ---
sakuya_b3_tm_disable_trade_center_check = {
	scope = country
	is_shown = { has_modifier = sakuya_cheat_b3_disable_trade_center }
}

sakuya_b3_tm_disable_trade_center_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		add_modifier = { name = sakuya_cheat_b3_disable_trade_center }
	}
}

sakuya_b3_tm_disable_trade_center_add_marked = {
	scope = country
	is_shown = {
		is_player = yes
		any_country = { has_variable = sakuya_mark_country_target }
	}
	effect = {
		clear_saved_scope = sakuya_b3_marked_country_scope
		every_country = {
			limit = { has_variable = sakuya_mark_country_target }
			save_scope_as = sakuya_b3_marked_country_scope
		}
		if = {
			limit = { exists = scope:sakuya_b3_marked_country_scope }
			scope:sakuya_b3_marked_country_scope = {
				add_modifier = { name = sakuya_cheat_b3_disable_trade_center }
			}
		}
		clear_saved_scope = sakuya_b3_marked_country_scope
	}
}

sakuya_b3_tm_disable_trade_center_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_disable_trade_center
		clear_saved_scope = sakuya_b3_marked_country_scope
		every_country = {
			limit = { has_variable = sakuya_mark_country_target }
			save_scope_as = sakuya_b3_marked_country_scope
		}
		if = {
			limit = { exists = scope:sakuya_b3_marked_country_scope }
			scope:sakuya_b3_marked_country_scope = {
				remove_modifier = sakuya_cheat_b3_disable_trade_center
			}
		}
		clear_saved_scope = sakuya_b3_marked_country_scope
	}
}

# --- Trade & Market: 11. Max trade advantage from capacity ---
sakuya_b3_tm_max_trade_advantage_from_capacity_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active }
}

sakuya_b3_tm_max_trade_advantage_from_capacity_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
		set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
		set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
		set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		if = {
			limit = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
			add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
			set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
		}
		if = {
			limit = { var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult = 0 }
			remove_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult
			remove_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
		}
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_plus = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = 10 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
		set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_plus_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = 0.5 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
		set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_plus_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = -0.5 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
		set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_plus_ctrl = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = 99999.99 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
		set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_plus_right = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult } }
			set_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_tm_max_trade_advantage_from_capacity_mult add = -10 }
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		if = {
			limit = { has_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
			add_modifier = { name = sakuya_cheat_b3_max_trade_advantage_from_capacity multiplier = var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult }
			set_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
		}
		if = {
			limit = { var:sakuya_b3_tm_max_trade_advantage_from_capacity_mult = 0 }
			remove_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult
			remove_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
		}
	}
}

sakuya_b3_tm_max_trade_advantage_from_capacity_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_max_trade_advantage_from_capacity
		remove_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_mult
		remove_variable = sakuya_b3_tm_max_trade_advantage_from_capacity_active
	}
}

# --- Company: 1. Max Companies (ported from BTN1) ---
sakuya_b3_max_companies_check = {
	scope = country
	is_shown = { has_variable = sakuya_max_companies_active }
}

sakuya_b3_max_companies_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_max_companies_mult } }
			set_variable = { name = sakuya_max_companies_mult value = 0 }
		}
		change_variable = { name = sakuya_max_companies_mult add = 1 }
		remove_modifier = sakuya_cheat_max_companies
		add_modifier = { name = sakuya_cheat_max_companies multiplier = var:sakuya_max_companies_mult }
		set_variable = sakuya_max_companies_active
	}
}

sakuya_b3_max_companies_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_max_companies_mult } }
			set_variable = { name = sakuya_max_companies_mult value = 0 }
		}
		change_variable = { name = sakuya_max_companies_mult add = 10 }
		remove_modifier = sakuya_cheat_max_companies
		add_modifier = { name = sakuya_cheat_max_companies multiplier = var:sakuya_max_companies_mult }
		set_variable = sakuya_max_companies_active
	}
}

sakuya_b3_max_companies_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_max_companies_mult } }
			set_variable = { name = sakuya_max_companies_mult value = 0 }
		}
		change_variable = { name = sakuya_max_companies_mult add = -1 }
		remove_modifier = sakuya_cheat_max_companies
		if = { limit = {
				has_variable = sakuya_max_companies_mult
			}
			add_modifier = { name = sakuya_cheat_max_companies multiplier = var:sakuya_max_companies_mult }
			set_variable = sakuya_max_companies_active
		}
		if = { limit = { var:sakuya_max_companies_mult = 0 }
			remove_variable = sakuya_max_companies_mult
			remove_variable = sakuya_max_companies_active
		}
	}
}

sakuya_b3_max_companies_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_max_companies
		remove_variable = sakuya_max_companies_mult
		remove_variable = sakuya_max_companies_active
	}
}

# --- Company: 2. Free Charters ---
sakuya_b3_company_charters_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_company_charters_active }
}

sakuya_b3_company_charters_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_charters_mult } }
			set_variable = { name = sakuya_b3_company_charters_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_charters_mult add = 1 }
		remove_modifier = sakuya_cheat_b3_company_charters
		add_modifier = { name = sakuya_cheat_b3_company_charters multiplier = var:sakuya_b3_company_charters_mult }
		set_variable = sakuya_b3_company_charters_active
	}
}

sakuya_b3_company_charters_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_charters_mult } }
			set_variable = { name = sakuya_b3_company_charters_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_charters_mult add = 10 }
		remove_modifier = sakuya_cheat_b3_company_charters
		add_modifier = { name = sakuya_cheat_b3_company_charters multiplier = var:sakuya_b3_company_charters_mult }
		set_variable = sakuya_b3_company_charters_active
	}
}

sakuya_b3_company_charters_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_charters_mult } }
			set_variable = { name = sakuya_b3_company_charters_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_charters_mult add = -1 }
		remove_modifier = sakuya_cheat_b3_company_charters
		if = {
			limit = { has_variable = sakuya_b3_company_charters_mult }
			add_modifier = { name = sakuya_cheat_b3_company_charters multiplier = var:sakuya_b3_company_charters_mult }
			set_variable = sakuya_b3_company_charters_active
		}
		if = {
			limit = { var:sakuya_b3_company_charters_mult = 0 }
			remove_variable = sakuya_b3_company_charters_mult
			remove_variable = sakuya_b3_company_charters_active
		}
	}
}

sakuya_b3_company_charters_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_company_charters
		remove_variable = sakuya_b3_company_charters_mult
		remove_variable = sakuya_b3_company_charters_active
	}
}

# --- Company: 3. Throughput bonus ---
sakuya_b3_company_throughput_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_company_throughput_active }
}

sakuya_b3_company_throughput_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_throughput_mult } }
			set_variable = { name = sakuya_b3_company_throughput_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_throughput_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_company_throughput
		add_modifier = { name = sakuya_cheat_b3_company_throughput multiplier = var:sakuya_b3_company_throughput_mult }
		set_variable = sakuya_b3_company_throughput_active
	}
}

sakuya_b3_company_throughput_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_throughput_mult } }
			set_variable = { name = sakuya_b3_company_throughput_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_throughput_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_company_throughput
		add_modifier = { name = sakuya_cheat_b3_company_throughput multiplier = var:sakuya_b3_company_throughput_mult }
		set_variable = sakuya_b3_company_throughput_active
	}
}

sakuya_b3_company_throughput_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_throughput_mult } }
			set_variable = { name = sakuya_b3_company_throughput_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_throughput_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_company_throughput
		add_modifier = { name = sakuya_cheat_b3_company_throughput multiplier = var:sakuya_b3_company_throughput_mult }
		set_variable = sakuya_b3_company_throughput_active
	}
}

sakuya_b3_company_throughput_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_throughput_mult } }
			set_variable = { name = sakuya_b3_company_throughput_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_throughput_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_company_throughput
		if = {
			limit = { has_variable = sakuya_b3_company_throughput_mult }
			add_modifier = { name = sakuya_cheat_b3_company_throughput multiplier = var:sakuya_b3_company_throughput_mult }
			set_variable = sakuya_b3_company_throughput_active
		}
		if = {
			limit = { var:sakuya_b3_company_throughput_mult = 0 }
			remove_variable = sakuya_b3_company_throughput_mult
			remove_variable = sakuya_b3_company_throughput_active
		}
	}
}

sakuya_b3_company_throughput_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_company_throughput
		remove_variable = sakuya_b3_company_throughput_mult
		remove_variable = sakuya_b3_company_throughput_active
	}
}

# --- Company: 4. Construction efficiency bonus ---
sakuya_b3_company_construction_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_company_construction_active }
}

sakuya_b3_company_construction_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_construction_mult } }
			set_variable = { name = sakuya_b3_company_construction_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_construction_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_company_construction
		add_modifier = { name = sakuya_cheat_b3_company_construction multiplier = var:sakuya_b3_company_construction_mult }
		set_variable = sakuya_b3_company_construction_active
	}
}

sakuya_b3_company_construction_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_construction_mult } }
			set_variable = { name = sakuya_b3_company_construction_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_construction_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_company_construction
		add_modifier = { name = sakuya_cheat_b3_company_construction multiplier = var:sakuya_b3_company_construction_mult }
		set_variable = sakuya_b3_company_construction_active
	}
}

sakuya_b3_company_construction_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_construction_mult } }
			set_variable = { name = sakuya_b3_company_construction_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_construction_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_company_construction
		add_modifier = { name = sakuya_cheat_b3_company_construction multiplier = var:sakuya_b3_company_construction_mult }
		set_variable = sakuya_b3_company_construction_active
	}
}

sakuya_b3_company_construction_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_construction_mult } }
			set_variable = { name = sakuya_b3_company_construction_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_construction_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_company_construction
		if = {
			limit = { has_variable = sakuya_b3_company_construction_mult }
			add_modifier = { name = sakuya_cheat_b3_company_construction multiplier = var:sakuya_b3_company_construction_mult }
			set_variable = sakuya_b3_company_construction_active
		}
		if = {
			limit = { var:sakuya_b3_company_construction_mult = 0 }
			remove_variable = sakuya_b3_company_construction_mult
			remove_variable = sakuya_b3_company_construction_active
		}
	}
}

sakuya_b3_company_construction_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_company_construction
		remove_variable = sakuya_b3_company_construction_mult
		remove_variable = sakuya_b3_company_construction_active
	}
}

# --- Company: 5. Government dividends from company buildings ---
sakuya_b3_company_government_dividends_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_company_government_dividends_active }
}

sakuya_b3_company_government_dividends_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_government_dividends_mult } }
			set_variable = { name = sakuya_b3_company_government_dividends_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_government_dividends_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_company_government_dividends
		add_modifier = { name = sakuya_cheat_b3_company_government_dividends multiplier = var:sakuya_b3_company_government_dividends_mult }
		set_variable = sakuya_b3_company_government_dividends_active
	}
}

sakuya_b3_company_government_dividends_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_government_dividends_mult } }
			set_variable = { name = sakuya_b3_company_government_dividends_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_government_dividends_mult add = 200 }
		remove_modifier = sakuya_cheat_b3_company_government_dividends
		add_modifier = { name = sakuya_cheat_b3_company_government_dividends multiplier = var:sakuya_b3_company_government_dividends_mult }
		set_variable = sakuya_b3_company_government_dividends_active
	}
}

sakuya_b3_company_government_dividends_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_government_dividends_mult } }
			set_variable = { name = sakuya_b3_company_government_dividends_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_government_dividends_mult add = 0.05 }
		remove_modifier = sakuya_cheat_b3_company_government_dividends
		add_modifier = { name = sakuya_cheat_b3_company_government_dividends multiplier = var:sakuya_b3_company_government_dividends_mult }
		set_variable = sakuya_b3_company_government_dividends_active
	}
}

sakuya_b3_company_government_dividends_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_company_government_dividends_mult } }
			set_variable = { name = sakuya_b3_company_government_dividends_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_company_government_dividends_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_company_government_dividends
		if = {
			limit = { has_variable = sakuya_b3_company_government_dividends_mult }
			add_modifier = { name = sakuya_cheat_b3_company_government_dividends multiplier = var:sakuya_b3_company_government_dividends_mult }
			set_variable = sakuya_b3_company_government_dividends_active
		}
		if = {
			limit = { var:sakuya_b3_company_government_dividends_mult = 0 }
			remove_variable = sakuya_b3_company_government_dividends_mult
			remove_variable = sakuya_b3_company_government_dividends_active
		}
	}
}

sakuya_b3_company_government_dividends_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_company_government_dividends
		remove_variable = sakuya_b3_company_government_dividends_mult
		remove_variable = sakuya_b3_company_government_dividends_active
	}
}

# --- Company: 6. Allow forming construction companies ---
sakuya_b3_company_worker_dividends_check = {
	scope = country
	is_shown = { has_modifier = sakuya_cheat_b3_company_worker_dividends }
}

sakuya_b3_company_worker_dividends_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		add_modifier = { name = sakuya_cheat_b3_company_worker_dividends }
	}
}

sakuya_b3_company_worker_dividends_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		add_modifier = { name = sakuya_cheat_b3_company_worker_dividends }
	}
}

sakuya_b3_company_worker_dividends_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		add_modifier = { name = sakuya_cheat_b3_company_worker_dividends }
	}
}

sakuya_b3_company_worker_dividends_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		add_modifier = { name = sakuya_cheat_b3_company_worker_dividends }
	}
}

sakuya_b3_company_worker_dividends_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_company_worker_dividends
	}
}


# --- Company: 7. Create fixed company: company_united_tobacco_factories ---
sakuya_b3_company_create_random_enabled = {
	scope = country
	is_shown = {
		is_player = yes
		NOT = { has_company = company_type:company_united_tobacco_factories }
	}
}

sakuya_b3_company_create_random = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		save_scope_as = sakuya_b3_root_country_scope
		if = {
			limit = {
				NOT = { has_company = company_type:company_united_tobacco_factories }
			}
			add_company = company_type:company_united_tobacco_factories
		}

		if = {
			limit = {
				has_company = company_type:company_united_tobacco_factories
				any_scope_state = { owner = scope:sakuya_b3_root_country_scope }
			}
			random_scope_state = {
				limit = { owner = scope:sakuya_b3_root_country_scope }
				state_region = {
					save_scope_as = sakuya_b3_company_create_random_sr_scope
				}
			}
			if = {
				limit = { exists = scope:sakuya_b3_company_create_random_sr_scope }
				company:company_united_tobacco_factories = {
					set_company_state_region = scope:sakuya_b3_company_create_random_sr_scope
				}
			}
		}
	}
}

sakuya_b3_company_create_fixed_northern_thrace = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = {
				NOT = { has_company = company_type:company_united_tobacco_factories }
			}
			add_company = company_type:company_united_tobacco_factories
		}

		if = {
			limit = {
				has_company = company_type:company_united_tobacco_factories
			}
			company:company_united_tobacco_factories = {
				set_company_state_region = s:STATE_NORTHERN_THRACE
			}
		}
	}
}

sakuya_b3_company_create_add_only = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = {
				NOT = { has_company = company_type:company_united_tobacco_factories }
			}
			add_company = company_type:company_united_tobacco_factories
		}
	}
}

sakuya_b3_company_recreate_fixed_northern_thrace = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = {
				has_company = company_type:company_united_tobacco_factories
			}
			every_company = {
				limit = {
					type = company_type:company_united_tobacco_factories
				}
				owner ?= {
					remove_company = prev.type
				}
			}
		}

		if = {
			limit = {
				NOT = { has_company = company_type:company_united_tobacco_factories }
			}
			add_company = company_type:company_united_tobacco_factories
		}

		if = {
			limit = {
				has_company = company_type:company_united_tobacco_factories
			}
			company:company_united_tobacco_factories = {
				set_company_state_region = s:STATE_NORTHERN_THRACE
			}
		}
	}
}

# --- Company: 8. Remove marked company ---
sakuya_b3_company_remove_marked_enabled = {
	scope = country
	is_shown = {
		is_player = yes
		any_country = {
			any_company = {
				has_variable = sakuya_main_03_01_marked
			}
		}
	}
}

sakuya_b3_company_remove_marked = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		every_country = {
			limit = {
				any_company = {
					has_variable = sakuya_main_03_01_marked
				}
			}
			every_company = {
				limit = {
					has_variable = sakuya_main_03_01_marked
				}
				owner ?= {
					remove_company = prev.type
				}
			}
		}
	}
}

# --- Company: 9. Super company flag ---
sakuya_b3_company_prosperity_push_enabled = {
	scope = country
	is_shown = {
		is_player = yes
	}
}

sakuya_b3_company_prosperity_push_check = {
	scope = country
	is_shown = {
		has_variable = sakuya_super_company
	}
}

sakuya_b3_company_prosperity_push_apply = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		set_variable = sakuya_super_company
	}
}

sakuya_b3_company_prosperity_push_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_super_company
	}
}

# --- Company: 10. Move HQ (deprecated) ---
sakuya_b3_company_move_hq_enabled = {
	scope = country
	is_shown = {
		is_player = yes
		always = no
	}
}

sakuya_b3_company_move_hq = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		# Deprecated by request
	}
}

# --- Company: 11. Set marked character as executive ---
sakuya_b3_company_set_executive_enabled = {
	scope = country
	is_shown = {
		is_player = yes
		any_country = {
			any_company = {
				has_variable = sakuya_main_03_01_marked
			}
		}
		any_country = {
			any_scope_character = {
				has_variable = sakuya_mark_character_target
			}
		}
	}
}

sakuya_b3_company_set_executive = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		save_scope_as = sakuya_b3_root_country_scope
		remove_variable = sakuya_b3_company_exec_company_ready
		remove_variable = sakuya_b3_company_exec_character_ready

		every_country = {
			limit = {
				any_company = {
					has_variable = sakuya_main_03_01_marked
				}
			}
			every_company = {
				limit = {
					has_variable = sakuya_main_03_01_marked
				}
				save_scope_as = sakuya_b3_company_exec_target_company
				scope:sakuya_b3_root_country_scope = { set_variable = sakuya_b3_company_exec_company_ready }
			}
		}

		every_country = {
			limit = {
				any_scope_character = {
					has_variable = sakuya_mark_character_target
				}
			}
			every_scope_character = {
				limit = {
					has_variable = sakuya_mark_character_target
				}
				save_scope_as = sakuya_b3_company_exec_target_character
				scope:sakuya_b3_root_country_scope = { set_variable = sakuya_b3_company_exec_character_ready }
			}
		}

		if = {
			limit = {
				has_variable = sakuya_b3_company_exec_company_ready
				has_variable = sakuya_b3_company_exec_character_ready
				exists = scope:sakuya_b3_company_exec_target_company
				exists = scope:sakuya_b3_company_exec_target_character
			}
			scope:sakuya_b3_company_exec_target_character = {
				set_character_as_executive = scope:sakuya_b3_company_exec_target_company
			}
		}

		remove_variable = sakuya_b3_company_exec_company_ready
		remove_variable = sakuya_b3_company_exec_character_ready
	}
}

# --- Goods: 1. Building goods input cost ---
sakuya_b3_goods_input_cost_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_goods_input_cost_active }
}

sakuya_b3_goods_input_cost_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
		set_variable = sakuya_b3_goods_input_cost_active
	}
}

sakuya_b3_goods_input_cost_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = -200 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
		set_variable = sakuya_b3_goods_input_cost_active
	}
}

sakuya_b3_goods_input_cost_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = -0.05 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
		set_variable = sakuya_b3_goods_input_cost_active
	}
}

sakuya_b3_goods_input_cost_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		if = {
			limit = { has_variable = sakuya_b3_goods_input_cost_mult }
			add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
			set_variable = sakuya_b3_goods_input_cost_active
		}
		if = {
			limit = { var:sakuya_b3_goods_input_cost_mult = 0 }
			remove_variable = sakuya_b3_goods_input_cost_mult
			remove_variable = sakuya_b3_goods_input_cost_active
		}
	}
}

sakuya_b3_goods_input_cost_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		remove_variable = sakuya_b3_goods_input_cost_mult
		remove_variable = sakuya_b3_goods_input_cost_active
	}
}

sakuya_b3_goods_input_cost_plus = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = -10 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
		set_variable = sakuya_b3_goods_input_cost_active
	}
}

sakuya_b3_goods_input_cost_plus_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = -0.5 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
		set_variable = sakuya_b3_goods_input_cost_active
	}
}

sakuya_b3_goods_input_cost_plus_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = 0.5 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
		set_variable = sakuya_b3_goods_input_cost_active
	}
}

sakuya_b3_goods_input_cost_plus_ctrl = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = -99999.99 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
		set_variable = sakuya_b3_goods_input_cost_active
	}
}

sakuya_b3_goods_input_cost_plus_right = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_input_cost_mult } }
			set_variable = { name = sakuya_b3_goods_input_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_input_cost_mult add = 10 }
		remove_modifier = sakuya_cheat_b3_goods_input_cost
		if = {
			limit = { has_variable = sakuya_b3_goods_input_cost_mult }
			add_modifier = { name = sakuya_cheat_b3_goods_input_cost multiplier = var:sakuya_b3_goods_input_cost_mult }
			set_variable = sakuya_b3_goods_input_cost_active
		}
		if = {
			limit = { var:sakuya_b3_goods_input_cost_mult = 0 }
			remove_variable = sakuya_b3_goods_input_cost_mult
			remove_variable = sakuya_b3_goods_input_cost_active
		}
	}
}

# --- Goods: 2. Military goods cost ---
sakuya_b3_goods_military_cost_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_goods_military_cost_active }
}

sakuya_b3_goods_military_cost_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_military_cost_mult } }
			set_variable = { name = sakuya_b3_goods_military_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_military_cost_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_goods_military_cost
		add_modifier = { name = sakuya_cheat_b3_goods_military_cost multiplier = var:sakuya_b3_goods_military_cost_mult }
		set_variable = sakuya_b3_goods_military_cost_active
	}
}

sakuya_b3_goods_military_cost_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_military_cost_mult } }
			set_variable = { name = sakuya_b3_goods_military_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_military_cost_mult add = -200 }
		remove_modifier = sakuya_cheat_b3_goods_military_cost
		add_modifier = { name = sakuya_cheat_b3_goods_military_cost multiplier = var:sakuya_b3_goods_military_cost_mult }
		set_variable = sakuya_b3_goods_military_cost_active
	}
}

sakuya_b3_goods_military_cost_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_military_cost_mult } }
			set_variable = { name = sakuya_b3_goods_military_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_military_cost_mult add = -0.05 }
		remove_modifier = sakuya_cheat_b3_goods_military_cost
		add_modifier = { name = sakuya_cheat_b3_goods_military_cost multiplier = var:sakuya_b3_goods_military_cost_mult }
		set_variable = sakuya_b3_goods_military_cost_active
	}
}

sakuya_b3_goods_military_cost_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_military_cost_mult } }
			set_variable = { name = sakuya_b3_goods_military_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_military_cost_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_goods_military_cost
		if = {
			limit = { has_variable = sakuya_b3_goods_military_cost_mult }
			add_modifier = { name = sakuya_cheat_b3_goods_military_cost multiplier = var:sakuya_b3_goods_military_cost_mult }
			set_variable = sakuya_b3_goods_military_cost_active
		}
		if = {
			limit = { var:sakuya_b3_goods_military_cost_mult = 0 }
			remove_variable = sakuya_b3_goods_military_cost_mult
			remove_variable = sakuya_b3_goods_military_cost_active
		}
	}
}

sakuya_b3_goods_military_cost_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_goods_military_cost
		remove_variable = sakuya_b3_goods_military_cost_mult
		remove_variable = sakuya_b3_goods_military_cost_active
	}
}

sakuya_b3_select_good_ammunition_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_ammunition }
}

sakuya_b3_select_good_ammunition_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_ammunition }
			remove_variable = sakuya_b3_sel_good_ammunition
		}
		else = {
			set_variable = sakuya_b3_sel_good_ammunition
		}
	}
}

sakuya_b3_select_good_ammunition_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_ammunition
	}
}

sakuya_b3_select_good_small_arms_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_small_arms }
}

sakuya_b3_select_good_small_arms_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_small_arms }
			remove_variable = sakuya_b3_sel_good_small_arms
		}
		else = {
			set_variable = sakuya_b3_sel_good_small_arms
		}
	}
}

sakuya_b3_select_good_small_arms_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_small_arms
	}
}

sakuya_b3_select_good_artillery_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_artillery }
}

sakuya_b3_select_good_artillery_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_artillery }
			remove_variable = sakuya_b3_sel_good_artillery
		}
		else = {
			set_variable = sakuya_b3_sel_good_artillery
		}
	}
}

sakuya_b3_select_good_artillery_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_artillery
	}
}

sakuya_b3_select_good_tanks_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_tanks }
}

sakuya_b3_select_good_tanks_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_tanks }
			remove_variable = sakuya_b3_sel_good_tanks
		}
		else = {
			set_variable = sakuya_b3_sel_good_tanks
		}
	}
}

sakuya_b3_select_good_tanks_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_tanks
	}
}

sakuya_b3_select_good_aeroplanes_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_aeroplanes }
}

sakuya_b3_select_good_aeroplanes_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_aeroplanes }
			remove_variable = sakuya_b3_sel_good_aeroplanes
		}
		else = {
			set_variable = sakuya_b3_sel_good_aeroplanes
		}
	}
}

sakuya_b3_select_good_aeroplanes_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_aeroplanes
	}
}

sakuya_b3_select_good_manowars_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_manowars }
}

sakuya_b3_select_good_manowars_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_manowars }
			remove_variable = sakuya_b3_sel_good_manowars
		}
		else = {
			set_variable = sakuya_b3_sel_good_manowars
		}
	}
}

sakuya_b3_select_good_manowars_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_manowars
	}
}

sakuya_b3_select_good_ironclads_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_ironclads }
}

sakuya_b3_select_good_ironclads_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_ironclads }
			remove_variable = sakuya_b3_sel_good_ironclads
		}
		else = {
			set_variable = sakuya_b3_sel_good_ironclads
		}
	}
}

sakuya_b3_select_good_ironclads_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_ironclads
	}
}

sakuya_b3_select_good_grain_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_grain }
}

sakuya_b3_select_good_grain_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_grain }
			remove_variable = sakuya_b3_sel_good_grain
		}
		else = {
			set_variable = sakuya_b3_sel_good_grain
		}
	}
}

sakuya_b3_select_good_grain_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_grain
	}
}

sakuya_b3_select_good_fish_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_fish }
}

sakuya_b3_select_good_fish_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_fish }
			remove_variable = sakuya_b3_sel_good_fish
		}
		else = {
			set_variable = sakuya_b3_sel_good_fish
		}
	}
}

sakuya_b3_select_good_fish_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_fish
	}
}

sakuya_b3_select_good_fabric_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_fabric }
}

sakuya_b3_select_good_fabric_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_fabric }
			remove_variable = sakuya_b3_sel_good_fabric
		}
		else = {
			set_variable = sakuya_b3_sel_good_fabric
		}
	}
}

sakuya_b3_select_good_fabric_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_fabric
	}
}

sakuya_b3_select_good_wood_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_wood }
}

sakuya_b3_select_good_wood_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_wood }
			remove_variable = sakuya_b3_sel_good_wood
		}
		else = {
			set_variable = sakuya_b3_sel_good_wood
		}
	}
}

sakuya_b3_select_good_wood_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_wood
	}
}

sakuya_b3_select_good_groceries_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_groceries }
}

sakuya_b3_select_good_groceries_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_groceries }
			remove_variable = sakuya_b3_sel_good_groceries
		}
		else = {
			set_variable = sakuya_b3_sel_good_groceries
		}
	}
}

sakuya_b3_select_good_groceries_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_groceries
	}
}

sakuya_b3_select_good_clothes_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_clothes }
}

sakuya_b3_select_good_clothes_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_clothes }
			remove_variable = sakuya_b3_sel_good_clothes
		}
		else = {
			set_variable = sakuya_b3_sel_good_clothes
		}
	}
}

sakuya_b3_select_good_clothes_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_clothes
	}
}

sakuya_b3_select_good_furniture_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_furniture }
}

sakuya_b3_select_good_furniture_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_furniture }
			remove_variable = sakuya_b3_sel_good_furniture
		}
		else = {
			set_variable = sakuya_b3_sel_good_furniture
		}
	}
}

sakuya_b3_select_good_furniture_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_furniture
	}
}

sakuya_b3_select_good_paper_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_paper }
}

sakuya_b3_select_good_paper_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_paper }
			remove_variable = sakuya_b3_sel_good_paper
		}
		else = {
			set_variable = sakuya_b3_sel_good_paper
		}
	}
}

sakuya_b3_select_good_paper_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_paper
	}
}

sakuya_b3_select_good_services_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_services }
}

sakuya_b3_select_good_services_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_services }
			remove_variable = sakuya_b3_sel_good_services
		}
		else = {
			set_variable = sakuya_b3_sel_good_services
		}
	}
}

sakuya_b3_select_good_services_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_services
	}
}

sakuya_b3_select_good_transportation_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_transportation }
}

sakuya_b3_select_good_transportation_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_transportation }
			remove_variable = sakuya_b3_sel_good_transportation
		}
		else = {
			set_variable = sakuya_b3_sel_good_transportation
		}
	}
}

sakuya_b3_select_good_transportation_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_transportation
	}
}

sakuya_b3_select_good_electricity_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_electricity }
}

sakuya_b3_select_good_electricity_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_electricity }
			remove_variable = sakuya_b3_sel_good_electricity
		}
		else = {
			set_variable = sakuya_b3_sel_good_electricity
		}
	}
}

sakuya_b3_select_good_electricity_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_electricity
	}
}

sakuya_b3_select_good_merchant_marine_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_merchant_marine }
}

sakuya_b3_select_good_merchant_marine_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_merchant_marine }
			remove_variable = sakuya_b3_sel_good_merchant_marine
		}
		else = {
			set_variable = sakuya_b3_sel_good_merchant_marine
		}
	}
}

sakuya_b3_select_good_merchant_marine_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_merchant_marine
	}
}

sakuya_b3_select_good_clippers_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_clippers }
}

sakuya_b3_select_good_clippers_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_clippers }
			remove_variable = sakuya_b3_sel_good_clippers
		}
		else = {
			set_variable = sakuya_b3_sel_good_clippers
		}
	}
}

sakuya_b3_select_good_clippers_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_clippers
	}
}

sakuya_b3_select_good_steamers_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_steamers }
}

sakuya_b3_select_good_steamers_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_steamers }
			remove_variable = sakuya_b3_sel_good_steamers
		}
		else = {
			set_variable = sakuya_b3_sel_good_steamers
		}
	}
}

sakuya_b3_select_good_steamers_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_steamers
	}
}

sakuya_b3_select_good_silk_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_silk }
}

sakuya_b3_select_good_silk_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_silk }
			remove_variable = sakuya_b3_sel_good_silk
		}
		else = {
			set_variable = sakuya_b3_sel_good_silk
		}
	}
}

sakuya_b3_select_good_silk_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_silk
	}
}

sakuya_b3_select_good_dye_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_dye }
}

sakuya_b3_select_good_dye_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_dye }
			remove_variable = sakuya_b3_sel_good_dye
		}
		else = {
			set_variable = sakuya_b3_sel_good_dye
		}
	}
}

sakuya_b3_select_good_dye_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_dye
	}
}

sakuya_b3_select_good_sulfur_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_sulfur }
}

sakuya_b3_select_good_sulfur_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_sulfur }
			remove_variable = sakuya_b3_sel_good_sulfur
		}
		else = {
			set_variable = sakuya_b3_sel_good_sulfur
		}
	}
}

sakuya_b3_select_good_sulfur_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_sulfur
	}
}

sakuya_b3_select_good_coal_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_coal }
}

sakuya_b3_select_good_coal_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_coal }
			remove_variable = sakuya_b3_sel_good_coal
		}
		else = {
			set_variable = sakuya_b3_sel_good_coal
		}
	}
}

sakuya_b3_select_good_coal_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_coal
	}
}

sakuya_b3_select_good_iron_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_iron }
}

sakuya_b3_select_good_iron_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_iron }
			remove_variable = sakuya_b3_sel_good_iron
		}
		else = {
			set_variable = sakuya_b3_sel_good_iron
		}
	}
}

sakuya_b3_select_good_iron_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_iron
	}
}

sakuya_b3_select_good_lead_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_lead }
}

sakuya_b3_select_good_copper_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_copper }
}

sakuya_b3_select_good_lead_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_lead }
			remove_variable = sakuya_b3_sel_good_lead
		}
		else = {
			set_variable = sakuya_b3_sel_good_lead
		}
	}
}

sakuya_b3_select_good_copper_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_copper }
			remove_variable = sakuya_b3_sel_good_copper
		}
		else = {
			set_variable = sakuya_b3_sel_good_copper
		}
	}
}

sakuya_b3_select_good_lead_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_lead
	}
}

sakuya_b3_select_good_copper_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_copper
	}
}

sakuya_b3_select_good_hardwood_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_hardwood }
}

sakuya_b3_select_good_hardwood_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_hardwood }
			remove_variable = sakuya_b3_sel_good_hardwood
		}
		else = {
			set_variable = sakuya_b3_sel_good_hardwood
		}
	}
}

sakuya_b3_select_good_hardwood_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_hardwood
	}
}

sakuya_b3_select_good_rubber_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_rubber }
}

sakuya_b3_select_good_rubber_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_rubber }
			remove_variable = sakuya_b3_sel_good_rubber
		}
		else = {
			set_variable = sakuya_b3_sel_good_rubber
		}
	}
}

sakuya_b3_select_good_rubber_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_rubber
	}
}

sakuya_b3_select_good_oil_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_oil }
}

sakuya_b3_select_good_oil_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_oil }
			remove_variable = sakuya_b3_sel_good_oil
		}
		else = {
			set_variable = sakuya_b3_sel_good_oil
		}
	}
}

sakuya_b3_select_good_oil_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_oil
	}
}

sakuya_b3_select_good_engines_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_engines }
}

sakuya_b3_select_good_engines_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_engines }
			remove_variable = sakuya_b3_sel_good_engines
		}
		else = {
			set_variable = sakuya_b3_sel_good_engines
		}
	}
}

sakuya_b3_select_good_engines_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_engines
	}
}

sakuya_b3_select_good_steel_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_steel }
}

sakuya_b3_select_good_steel_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_steel }
			remove_variable = sakuya_b3_sel_good_steel
		}
		else = {
			set_variable = sakuya_b3_sel_good_steel
		}
	}
}

sakuya_b3_select_good_steel_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_steel
	}
}

sakuya_b3_select_good_glass_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_glass }
}

sakuya_b3_select_good_glass_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_glass }
			remove_variable = sakuya_b3_sel_good_glass
		}
		else = {
			set_variable = sakuya_b3_sel_good_glass
		}
	}
}

sakuya_b3_select_good_glass_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_glass
	}
}

sakuya_b3_select_good_fertilizer_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_fertilizer }
}

sakuya_b3_select_good_fertilizer_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_fertilizer }
			remove_variable = sakuya_b3_sel_good_fertilizer
		}
		else = {
			set_variable = sakuya_b3_sel_good_fertilizer
		}
	}
}

sakuya_b3_select_good_fertilizer_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_fertilizer
	}
}

sakuya_b3_select_good_tools_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_tools }
}

sakuya_b3_select_good_tools_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_tools }
			remove_variable = sakuya_b3_sel_good_tools
		}
		else = {
			set_variable = sakuya_b3_sel_good_tools
		}
	}
}

sakuya_b3_select_good_tools_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_tools
	}
}

sakuya_b3_select_good_explosives_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_explosives }
}

sakuya_b3_select_good_explosives_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_explosives }
			remove_variable = sakuya_b3_sel_good_explosives
		}
		else = {
			set_variable = sakuya_b3_sel_good_explosives
		}
	}
}

sakuya_b3_select_good_explosives_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_explosives
	}
}

sakuya_b3_select_good_porcelain_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_porcelain }
}

sakuya_b3_select_good_porcelain_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_porcelain }
			remove_variable = sakuya_b3_sel_good_porcelain
		}
		else = {
			set_variable = sakuya_b3_sel_good_porcelain
		}
	}
}

sakuya_b3_select_good_porcelain_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_porcelain
	}
}

sakuya_b3_select_good_meat_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_meat }
}

sakuya_b3_select_good_meat_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_meat }
			remove_variable = sakuya_b3_sel_good_meat
		}
		else = {
			set_variable = sakuya_b3_sel_good_meat
		}
	}
}

sakuya_b3_select_good_meat_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_meat
	}
}

sakuya_b3_select_good_fruit_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_fruit }
}

sakuya_b3_select_good_fruit_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_fruit }
			remove_variable = sakuya_b3_sel_good_fruit
		}
		else = {
			set_variable = sakuya_b3_sel_good_fruit
		}
	}
}

sakuya_b3_select_good_fruit_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_fruit
	}
}

sakuya_b3_select_good_liquor_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_liquor }
}

sakuya_b3_select_good_liquor_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_liquor }
			remove_variable = sakuya_b3_sel_good_liquor
		}
		else = {
			set_variable = sakuya_b3_sel_good_liquor
		}
	}
}

sakuya_b3_select_good_liquor_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_liquor
	}
}

sakuya_b3_select_good_wine_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_wine }
}

sakuya_b3_select_good_wine_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_wine }
			remove_variable = sakuya_b3_sel_good_wine
		}
		else = {
			set_variable = sakuya_b3_sel_good_wine
		}
	}
}

sakuya_b3_select_good_wine_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_wine
	}
}

sakuya_b3_select_good_tea_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_tea }
}

sakuya_b3_select_good_tea_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_tea }
			remove_variable = sakuya_b3_sel_good_tea
		}
		else = {
			set_variable = sakuya_b3_sel_good_tea
		}
	}
}

sakuya_b3_select_good_tea_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_tea
	}
}

sakuya_b3_select_good_coffee_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_coffee }
}

sakuya_b3_select_good_coffee_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_coffee }
			remove_variable = sakuya_b3_sel_good_coffee
		}
		else = {
			set_variable = sakuya_b3_sel_good_coffee
		}
	}
}

sakuya_b3_select_good_coffee_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_coffee
	}
}

sakuya_b3_select_good_sugar_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_sugar }
}

sakuya_b3_select_good_sugar_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_sugar }
			remove_variable = sakuya_b3_sel_good_sugar
		}
		else = {
			set_variable = sakuya_b3_sel_good_sugar
		}
	}
}

sakuya_b3_select_good_sugar_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_sugar
	}
}

sakuya_b3_select_good_tobacco_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_tobacco }
}

sakuya_b3_select_good_tobacco_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_tobacco }
			remove_variable = sakuya_b3_sel_good_tobacco
		}
		else = {
			set_variable = sakuya_b3_sel_good_tobacco
		}
	}
}

sakuya_b3_select_good_tobacco_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_tobacco
	}
}

sakuya_b3_select_good_opium_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_opium }
}

sakuya_b3_select_good_opium_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_opium }
			remove_variable = sakuya_b3_sel_good_opium
		}
		else = {
			set_variable = sakuya_b3_sel_good_opium
		}
	}
}

sakuya_b3_select_good_opium_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_opium
	}
}

sakuya_b3_select_good_automobiles_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_automobiles }
}

sakuya_b3_select_good_automobiles_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_automobiles }
			remove_variable = sakuya_b3_sel_good_automobiles
		}
		else = {
			set_variable = sakuya_b3_sel_good_automobiles
		}
	}
}

sakuya_b3_select_good_automobiles_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_automobiles
	}
}

sakuya_b3_select_good_telephones_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_telephones }
}

sakuya_b3_select_good_telephones_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_telephones }
			remove_variable = sakuya_b3_sel_good_telephones
		}
		else = {
			set_variable = sakuya_b3_sel_good_telephones
		}
	}
}

sakuya_b3_select_good_telephones_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_telephones
	}
}

sakuya_b3_select_good_radios_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_radios }
}

sakuya_b3_select_good_radios_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_radios }
			remove_variable = sakuya_b3_sel_good_radios
		}
		else = {
			set_variable = sakuya_b3_sel_good_radios
		}
	}
}

sakuya_b3_select_good_radios_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_radios
	}
}

sakuya_b3_select_good_luxury_clothes_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_luxury_clothes }
}

sakuya_b3_select_good_luxury_clothes_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_luxury_clothes }
			remove_variable = sakuya_b3_sel_good_luxury_clothes
		}
		else = {
			set_variable = sakuya_b3_sel_good_luxury_clothes
		}
	}
}

sakuya_b3_select_good_luxury_clothes_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_luxury_clothes
	}
}

sakuya_b3_select_good_luxury_furniture_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_luxury_furniture }
}

sakuya_b3_select_good_luxury_furniture_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_luxury_furniture }
			remove_variable = sakuya_b3_sel_good_luxury_furniture
		}
		else = {
			set_variable = sakuya_b3_sel_good_luxury_furniture
		}
	}
}

sakuya_b3_select_good_luxury_furniture_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_luxury_furniture
	}
}

sakuya_b3_select_good_gold_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_gold }
}

sakuya_b3_select_good_gold_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_gold }
			remove_variable = sakuya_b3_sel_good_gold
		}
		else = {
			set_variable = sakuya_b3_sel_good_gold
		}
	}
}

sakuya_b3_select_good_gold_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_gold
	}
}

sakuya_b3_select_good_fine_art_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_sel_good_fine_art }
}

sakuya_b3_select_good_fine_art_toggle = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_fine_art }
			remove_variable = sakuya_b3_sel_good_fine_art
		}
		else = {
			set_variable = sakuya_b3_sel_good_fine_art
		}
	}
}

sakuya_b3_select_good_fine_art_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_fine_art
	}
}

sakuya_b3_goods_has_selection_check = {
	scope = country
	is_shown = {
		OR = {
			has_variable = sakuya_b3_sel_good_ammunition
			has_variable = sakuya_b3_sel_good_small_arms
			has_variable = sakuya_b3_sel_good_artillery
			has_variable = sakuya_b3_sel_good_tanks
			has_variable = sakuya_b3_sel_good_aeroplanes
			has_variable = sakuya_b3_sel_good_manowars
			has_variable = sakuya_b3_sel_good_ironclads
			has_variable = sakuya_b3_sel_good_grain
			has_variable = sakuya_b3_sel_good_fish
			has_variable = sakuya_b3_sel_good_fabric
			has_variable = sakuya_b3_sel_good_wood
			has_variable = sakuya_b3_sel_good_groceries
			has_variable = sakuya_b3_sel_good_clothes
			has_variable = sakuya_b3_sel_good_furniture
			has_variable = sakuya_b3_sel_good_paper
			has_variable = sakuya_b3_sel_good_merchant_marine
			has_variable = sakuya_b3_sel_good_clippers
			has_variable = sakuya_b3_sel_good_steamers
			has_variable = sakuya_b3_sel_good_silk
			has_variable = sakuya_b3_sel_good_dye
			has_variable = sakuya_b3_sel_good_sulfur
			has_variable = sakuya_b3_sel_good_coal
			has_variable = sakuya_b3_sel_good_iron
			has_variable = sakuya_b3_sel_good_lead
has_variable = sakuya_b3_sel_good_copper
			has_variable = sakuya_b3_sel_good_hardwood
			has_variable = sakuya_b3_sel_good_rubber
			has_variable = sakuya_b3_sel_good_oil
			has_variable = sakuya_b3_sel_good_engines
			has_variable = sakuya_b3_sel_good_steel
			has_variable = sakuya_b3_sel_good_glass
			has_variable = sakuya_b3_sel_good_fertilizer
			has_variable = sakuya_b3_sel_good_tools
			has_variable = sakuya_b3_sel_good_explosives
			has_variable = sakuya_b3_sel_good_porcelain
			has_variable = sakuya_b3_sel_good_meat
			has_variable = sakuya_b3_sel_good_fruit
			has_variable = sakuya_b3_sel_good_liquor
			has_variable = sakuya_b3_sel_good_wine
			has_variable = sakuya_b3_sel_good_tea
			has_variable = sakuya_b3_sel_good_coffee
			has_variable = sakuya_b3_sel_good_sugar
			has_variable = sakuya_b3_sel_good_tobacco
			has_variable = sakuya_b3_sel_good_opium
			has_variable = sakuya_b3_sel_good_automobiles
			has_variable = sakuya_b3_sel_good_telephones
			has_variable = sakuya_b3_sel_good_radios
			has_variable = sakuya_b3_sel_good_luxury_clothes
			has_variable = sakuya_b3_sel_good_luxury_furniture
			has_variable = sakuya_b3_sel_good_fine_art
			has_variable = sakuya_b3_sel_good_gold
			has_variable = sakuya_b3_sel_good_electricity
			has_variable = sakuya_b3_sel_good_transportation
			has_variable = sakuya_b3_sel_good_services
		}
	}
}

sakuya_b3_goods_selection_clear_all = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_variable = sakuya_b3_sel_good_ammunition
		remove_variable = sakuya_b3_sel_good_small_arms
		remove_variable = sakuya_b3_sel_good_artillery
		remove_variable = sakuya_b3_sel_good_tanks
		remove_variable = sakuya_b3_sel_good_aeroplanes
		remove_variable = sakuya_b3_sel_good_manowars
		remove_variable = sakuya_b3_sel_good_ironclads
		remove_variable = sakuya_b3_sel_good_grain
		remove_variable = sakuya_b3_sel_good_fish
		remove_variable = sakuya_b3_sel_good_fabric
		remove_variable = sakuya_b3_sel_good_wood
		remove_variable = sakuya_b3_sel_good_groceries
		remove_variable = sakuya_b3_sel_good_clothes
		remove_variable = sakuya_b3_sel_good_furniture
		remove_variable = sakuya_b3_sel_good_paper
		remove_variable = sakuya_b3_sel_good_merchant_marine
		remove_variable = sakuya_b3_sel_good_clippers
		remove_variable = sakuya_b3_sel_good_steamers
		remove_variable = sakuya_b3_sel_good_silk
		remove_variable = sakuya_b3_sel_good_dye
		remove_variable = sakuya_b3_sel_good_sulfur
		remove_variable = sakuya_b3_sel_good_coal
		remove_variable = sakuya_b3_sel_good_iron
		remove_variable = sakuya_b3_sel_good_lead
remove_variable = sakuya_b3_sel_good_copper
		remove_variable = sakuya_b3_sel_good_hardwood
		remove_variable = sakuya_b3_sel_good_rubber
		remove_variable = sakuya_b3_sel_good_oil
		remove_variable = sakuya_b3_sel_good_engines
		remove_variable = sakuya_b3_sel_good_steel
		remove_variable = sakuya_b3_sel_good_glass
		remove_variable = sakuya_b3_sel_good_fertilizer
		remove_variable = sakuya_b3_sel_good_tools
		remove_variable = sakuya_b3_sel_good_explosives
		remove_variable = sakuya_b3_sel_good_porcelain
		remove_variable = sakuya_b3_sel_good_meat
		remove_variable = sakuya_b3_sel_good_fruit
		remove_variable = sakuya_b3_sel_good_liquor
		remove_variable = sakuya_b3_sel_good_wine
		remove_variable = sakuya_b3_sel_good_tea
		remove_variable = sakuya_b3_sel_good_coffee
		remove_variable = sakuya_b3_sel_good_sugar
		remove_variable = sakuya_b3_sel_good_tobacco
		remove_variable = sakuya_b3_sel_good_opium
		remove_variable = sakuya_b3_sel_good_automobiles
		remove_variable = sakuya_b3_sel_good_telephones
		remove_variable = sakuya_b3_sel_good_radios
		remove_variable = sakuya_b3_sel_good_luxury_clothes
		remove_variable = sakuya_b3_sel_good_luxury_furniture
		remove_variable = sakuya_b3_sel_good_fine_art
		remove_variable = sakuya_b3_sel_good_gold
		remove_variable = sakuya_b3_sel_good_electricity
		remove_variable = sakuya_b3_sel_good_transportation
		remove_variable = sakuya_b3_sel_good_services
	}
}

sakuya_b3_goods_single_selection_check = {
	scope = country
	is_shown = {
		calc_true_if = {
			amount = 1
			has_variable = sakuya_b3_sel_good_ammunition
			has_variable = sakuya_b3_sel_good_small_arms
			has_variable = sakuya_b3_sel_good_artillery
			has_variable = sakuya_b3_sel_good_tanks
			has_variable = sakuya_b3_sel_good_aeroplanes
			has_variable = sakuya_b3_sel_good_manowars
			has_variable = sakuya_b3_sel_good_ironclads
			has_variable = sakuya_b3_sel_good_grain
			has_variable = sakuya_b3_sel_good_fish
			has_variable = sakuya_b3_sel_good_fabric
			has_variable = sakuya_b3_sel_good_wood
			has_variable = sakuya_b3_sel_good_groceries
			has_variable = sakuya_b3_sel_good_clothes
			has_variable = sakuya_b3_sel_good_furniture
			has_variable = sakuya_b3_sel_good_paper
			has_variable = sakuya_b3_sel_good_merchant_marine
			has_variable = sakuya_b3_sel_good_clippers
			has_variable = sakuya_b3_sel_good_steamers
			has_variable = sakuya_b3_sel_good_silk
			has_variable = sakuya_b3_sel_good_dye
			has_variable = sakuya_b3_sel_good_sulfur
			has_variable = sakuya_b3_sel_good_coal
			has_variable = sakuya_b3_sel_good_iron
			has_variable = sakuya_b3_sel_good_lead
has_variable = sakuya_b3_sel_good_copper
			has_variable = sakuya_b3_sel_good_hardwood
			has_variable = sakuya_b3_sel_good_rubber
			has_variable = sakuya_b3_sel_good_oil
			has_variable = sakuya_b3_sel_good_engines
			has_variable = sakuya_b3_sel_good_steel
			has_variable = sakuya_b3_sel_good_glass
			has_variable = sakuya_b3_sel_good_fertilizer
			has_variable = sakuya_b3_sel_good_tools
			has_variable = sakuya_b3_sel_good_explosives
			has_variable = sakuya_b3_sel_good_porcelain
			has_variable = sakuya_b3_sel_good_meat
			has_variable = sakuya_b3_sel_good_fruit
			has_variable = sakuya_b3_sel_good_liquor
			has_variable = sakuya_b3_sel_good_wine
			has_variable = sakuya_b3_sel_good_tea
			has_variable = sakuya_b3_sel_good_coffee
			has_variable = sakuya_b3_sel_good_sugar
			has_variable = sakuya_b3_sel_good_tobacco
			has_variable = sakuya_b3_sel_good_opium
			has_variable = sakuya_b3_sel_good_automobiles
			has_variable = sakuya_b3_sel_good_telephones
			has_variable = sakuya_b3_sel_good_radios
			has_variable = sakuya_b3_sel_good_luxury_clothes
			has_variable = sakuya_b3_sel_good_luxury_furniture
			has_variable = sakuya_b3_sel_good_fine_art
			has_variable = sakuya_b3_sel_good_gold
			has_variable = sakuya_b3_sel_good_electricity
			has_variable = sakuya_b3_sel_good_transportation
			has_variable = sakuya_b3_sel_good_services
		}
	}
}

sakuya_b3_goods_construction_cost_check = {
	scope = country
	is_shown = { has_variable = sakuya_b3_goods_construction_cost_active }
}

sakuya_b3_goods_construction_cost_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_construction_cost_mult } }
			set_variable = { name = sakuya_b3_goods_construction_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_construction_cost_mult add = -0.2 }
		remove_modifier = sakuya_cheat_b3_goods_construction_cost
		add_modifier = { name = sakuya_cheat_b3_goods_construction_cost multiplier = var:sakuya_b3_goods_construction_cost_mult }
		set_variable = sakuya_b3_goods_construction_cost_active
	}
}

sakuya_b3_goods_construction_cost_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_construction_cost_mult } }
			set_variable = { name = sakuya_b3_goods_construction_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_construction_cost_mult add = -200 }
		remove_modifier = sakuya_cheat_b3_goods_construction_cost
		add_modifier = { name = sakuya_cheat_b3_goods_construction_cost multiplier = var:sakuya_b3_goods_construction_cost_mult }
		set_variable = sakuya_b3_goods_construction_cost_active
	}
}

sakuya_b3_goods_construction_cost_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_construction_cost_mult } }
			set_variable = { name = sakuya_b3_goods_construction_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_construction_cost_mult add = -0.05 }
		remove_modifier = sakuya_cheat_b3_goods_construction_cost
		add_modifier = { name = sakuya_cheat_b3_goods_construction_cost multiplier = var:sakuya_b3_goods_construction_cost_mult }
		set_variable = sakuya_b3_goods_construction_cost_active
	}
}

sakuya_b3_goods_construction_cost_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { NOT = { has_variable = sakuya_b3_goods_construction_cost_mult } }
			set_variable = { name = sakuya_b3_goods_construction_cost_mult value = 0 }
		}
		change_variable = { name = sakuya_b3_goods_construction_cost_mult add = 0.2 }
		remove_modifier = sakuya_cheat_b3_goods_construction_cost
		if = {
			limit = { has_variable = sakuya_b3_goods_construction_cost_mult }
			add_modifier = { name = sakuya_cheat_b3_goods_construction_cost multiplier = var:sakuya_b3_goods_construction_cost_mult }
			set_variable = sakuya_b3_goods_construction_cost_active
		}
		if = {
			limit = { var:sakuya_b3_goods_construction_cost_mult = 0 }
			remove_variable = sakuya_b3_goods_construction_cost_mult
			remove_variable = sakuya_b3_goods_construction_cost_active
		}
	}
}

sakuya_b3_goods_construction_cost_clear = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		remove_modifier = sakuya_cheat_b3_goods_construction_cost
		remove_variable = sakuya_b3_goods_construction_cost_mult
		remove_variable = sakuya_b3_goods_construction_cost_active
	}
}

sakuya_b3_goods_selected_input_mult_check = {
	scope = country
	is_shown = {
		OR = {
			AND = { has_variable = sakuya_b3_sel_good_ammunition has_variable = sakuya_b3_goods_input_mult_ammunition }
			AND = { has_variable = sakuya_b3_sel_good_small_arms has_variable = sakuya_b3_goods_input_mult_small_arms }
			AND = { has_variable = sakuya_b3_sel_good_artillery has_variable = sakuya_b3_goods_input_mult_artillery }
			AND = { has_variable = sakuya_b3_sel_good_tanks has_variable = sakuya_b3_goods_input_mult_tanks }
			AND = { has_variable = sakuya_b3_sel_good_oil has_variable = sakuya_b3_goods_input_mult_oil }
			AND = { has_variable = sakuya_b3_sel_good_radios has_variable = sakuya_b3_goods_input_mult_radios }
		}
	}
}

sakuya_b3_goods_selected_input_mult_add = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_ammunition }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_ammunition } }
				set_variable = { name = sakuya_b3_goods_input_mult_ammunition value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_ammunition add = -0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_ammunition
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_ammunition = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_ammunition multiplier = var:sakuya_b3_goods_input_mult_ammunition }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_ammunition = 0 }
				remove_variable = sakuya_b3_goods_input_mult_ammunition
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_small_arms }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_small_arms } }
				set_variable = { name = sakuya_b3_goods_input_mult_small_arms value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_small_arms add = -0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_small_arms
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_small_arms = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_small_arms multiplier = var:sakuya_b3_goods_input_mult_small_arms }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_small_arms = 0 }
				remove_variable = sakuya_b3_goods_input_mult_small_arms
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_artillery }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_artillery } }
				set_variable = { name = sakuya_b3_goods_input_mult_artillery value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_artillery add = -0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_artillery
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_artillery = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_artillery multiplier = var:sakuya_b3_goods_input_mult_artillery }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_artillery = 0 }
				remove_variable = sakuya_b3_goods_input_mult_artillery
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_tanks }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_tanks } }
				set_variable = { name = sakuya_b3_goods_input_mult_tanks value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_tanks add = -0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_tanks
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_tanks = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_tanks multiplier = var:sakuya_b3_goods_input_mult_tanks }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_tanks = 0 }
				remove_variable = sakuya_b3_goods_input_mult_tanks
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_oil }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_oil } }
				set_variable = { name = sakuya_b3_goods_input_mult_oil value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_oil add = -0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_oil
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_oil = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_oil multiplier = var:sakuya_b3_goods_input_mult_oil }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_oil = 0 }
				remove_variable = sakuya_b3_goods_input_mult_oil
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_radios }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_radios } }
				set_variable = { name = sakuya_b3_goods_input_mult_radios value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_radios add = -0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_radios
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_radios = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_radios multiplier = var:sakuya_b3_goods_input_mult_radios }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_radios = 0 }
				remove_variable = sakuya_b3_goods_input_mult_radios
			}
		}
	}
}

sakuya_b3_goods_selected_input_mult_add_shift = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_ammunition }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_ammunition } }
				set_variable = { name = sakuya_b3_goods_input_mult_ammunition value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_ammunition add = -200 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_ammunition
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_ammunition = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_ammunition multiplier = var:sakuya_b3_goods_input_mult_ammunition }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_ammunition = 0 }
				remove_variable = sakuya_b3_goods_input_mult_ammunition
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_small_arms }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_small_arms } }
				set_variable = { name = sakuya_b3_goods_input_mult_small_arms value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_small_arms add = -200 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_small_arms
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_small_arms = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_small_arms multiplier = var:sakuya_b3_goods_input_mult_small_arms }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_small_arms = 0 }
				remove_variable = sakuya_b3_goods_input_mult_small_arms
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_artillery }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_artillery } }
				set_variable = { name = sakuya_b3_goods_input_mult_artillery value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_artillery add = -200 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_artillery
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_artillery = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_artillery multiplier = var:sakuya_b3_goods_input_mult_artillery }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_artillery = 0 }
				remove_variable = sakuya_b3_goods_input_mult_artillery
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_tanks }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_tanks } }
				set_variable = { name = sakuya_b3_goods_input_mult_tanks value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_tanks add = -200 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_tanks
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_tanks = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_tanks multiplier = var:sakuya_b3_goods_input_mult_tanks }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_tanks = 0 }
				remove_variable = sakuya_b3_goods_input_mult_tanks
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_oil }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_oil } }
				set_variable = { name = sakuya_b3_goods_input_mult_oil value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_oil add = -200 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_oil
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_oil = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_oil multiplier = var:sakuya_b3_goods_input_mult_oil }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_oil = 0 }
				remove_variable = sakuya_b3_goods_input_mult_oil
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_radios }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_radios } }
				set_variable = { name = sakuya_b3_goods_input_mult_radios value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_radios add = -200 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_radios
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_radios = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_radios multiplier = var:sakuya_b3_goods_input_mult_radios }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_radios = 0 }
				remove_variable = sakuya_b3_goods_input_mult_radios
			}
		}
	}
}

sakuya_b3_goods_selected_input_mult_add_alt = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_ammunition }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_ammunition } }
				set_variable = { name = sakuya_b3_goods_input_mult_ammunition value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_ammunition add = -0.05 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_ammunition
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_ammunition = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_ammunition multiplier = var:sakuya_b3_goods_input_mult_ammunition }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_ammunition = 0 }
				remove_variable = sakuya_b3_goods_input_mult_ammunition
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_small_arms }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_small_arms } }
				set_variable = { name = sakuya_b3_goods_input_mult_small_arms value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_small_arms add = -0.05 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_small_arms
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_small_arms = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_small_arms multiplier = var:sakuya_b3_goods_input_mult_small_arms }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_small_arms = 0 }
				remove_variable = sakuya_b3_goods_input_mult_small_arms
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_artillery }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_artillery } }
				set_variable = { name = sakuya_b3_goods_input_mult_artillery value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_artillery add = -0.05 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_artillery
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_artillery = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_artillery multiplier = var:sakuya_b3_goods_input_mult_artillery }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_artillery = 0 }
				remove_variable = sakuya_b3_goods_input_mult_artillery
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_tanks }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_tanks } }
				set_variable = { name = sakuya_b3_goods_input_mult_tanks value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_tanks add = -0.05 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_tanks
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_tanks = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_tanks multiplier = var:sakuya_b3_goods_input_mult_tanks }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_tanks = 0 }
				remove_variable = sakuya_b3_goods_input_mult_tanks
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_oil }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_oil } }
				set_variable = { name = sakuya_b3_goods_input_mult_oil value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_oil add = -0.05 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_oil
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_oil = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_oil multiplier = var:sakuya_b3_goods_input_mult_oil }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_oil = 0 }
				remove_variable = sakuya_b3_goods_input_mult_oil
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_radios }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_radios } }
				set_variable = { name = sakuya_b3_goods_input_mult_radios value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_radios add = -0.05 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_radios
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_radios = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_radios multiplier = var:sakuya_b3_goods_input_mult_radios }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_radios = 0 }
				remove_variable = sakuya_b3_goods_input_mult_radios
			}
		}
	}
}

sakuya_b3_goods_selected_input_mult_sub = {
	scope = country
	is_shown = { is_player = yes }
	effect = {
		if = {
			limit = { has_variable = sakuya_b3_sel_good_ammunition }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_ammunition } }
				set_variable = { name = sakuya_b3_goods_input_mult_ammunition value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_ammunition add = 0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_ammunition
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_ammunition = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_ammunition multiplier = var:sakuya_b3_goods_input_mult_ammunition }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_ammunition = 0 }
				remove_variable = sakuya_b3_goods_input_mult_ammunition
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_small_arms }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_small_arms } }
				set_variable = { name = sakuya_b3_goods_input_mult_small_arms value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_small_arms add = 0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_small_arms
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_small_arms = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_small_arms multiplier = var:sakuya_b3_goods_input_mult_small_arms }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_small_arms = 0 }
				remove_variable = sakuya_b3_goods_input_mult_small_arms
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_artillery }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_artillery } }
				set_variable = { name = sakuya_b3_goods_input_mult_artillery value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_artillery add = 0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_artillery
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_artillery = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_artillery multiplier = var:sakuya_b3_goods_input_mult_artillery }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_artillery = 0 }
				remove_variable = sakuya_b3_goods_input_mult_artillery
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_tanks }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_tanks } }
				set_variable = { name = sakuya_b3_goods_input_mult_tanks value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_tanks add = 0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_tanks
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_tanks = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_tanks multiplier = var:sakuya_b3_goods_input_mult_tanks }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_tanks = 0 }
				remove_variable = sakuya_b3_goods_input_mult_tanks
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_oil }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_oil } }
				set_variable = { name = sakuya_b3_goods_input_mult_oil value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_oil add = 0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_oil
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_oil = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_oil multiplier = var:sakuya_b3_goods_input_mult_oil }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_oil = 0 }
				remove_variable = sakuya_b3_goods_input_mult_oil
			}
		}
		if = {
			limit = { has_variable = sakuya_b3_sel_good_radios }
			if = {
				limit = { NOT = { has_variable = sakuya_b3_goods_input_mult_radios } }
				set_variable = { name = sakuya_b3_goods_input_mult_radios value = 0 }
			}
			change_variable = { name = sakuya_b3_goods_input_mult_radios add = 0.2 }
			remove_modifier = sakuya_cheat_b3_goods_input_mult_radios
			if = {
				limit = { NOT = { var:sakuya_b3_goods_input_mult_radios = 0 } }
				add_modifier = { name = sakuya_cheat_b3_goods_input_mult_radios multiplier = var:sakuya_b3_goods_input_mult_radios }
			}
			if = {
				limit = { var:sakuya_b3_goods_input_mult_radios = 0 }
				remove_variable = sakuya_b3_goods_input_mult_radios
			}
		}
	}
}

sakuya_b3_goods_selected_input_mult_clear_current = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } remove_modifier = sakuya_cheat_b3_goods_input_mult_ammunition remove_variable = sakuya_b3_goods_input_mult_ammunition }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } remove_modifier = sakuya_cheat_b3_goods_input_mult_small_arms remove_variable = sakuya_b3_goods_input_mult_small_arms }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } remove_modifier = sakuya_cheat_b3_goods_input_mult_artillery remove_variable = sakuya_b3_goods_input_mult_artillery }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } remove_modifier = sakuya_cheat_b3_goods_input_mult_tanks remove_variable = sakuya_b3_goods_input_mult_tanks }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } remove_modifier = sakuya_cheat_b3_goods_input_mult_oil remove_variable = sakuya_b3_goods_input_mult_oil }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } remove_modifier = sakuya_cheat_b3_goods_input_mult_radios remove_variable = sakuya_b3_goods_input_mult_radios }
    }
}

sakuya_b3_goods_selected_output_mult_check = {
    scope = country
    is_shown = {
        OR = {
            AND = { has_variable = sakuya_b3_sel_good_ammunition has_variable = sakuya_b3_goods_output_mult_ammunition }
            AND = { has_variable = sakuya_b3_sel_good_small_arms has_variable = sakuya_b3_goods_output_mult_small_arms }
            AND = { has_variable = sakuya_b3_sel_good_artillery has_variable = sakuya_b3_goods_output_mult_artillery }
            AND = { has_variable = sakuya_b3_sel_good_tanks has_variable = sakuya_b3_goods_output_mult_tanks }
            AND = { has_variable = sakuya_b3_sel_good_aeroplanes has_variable = sakuya_b3_goods_output_mult_aeroplanes }
            AND = { has_variable = sakuya_b3_sel_good_manowars has_variable = sakuya_b3_goods_output_mult_manowars }
            AND = { has_variable = sakuya_b3_sel_good_ironclads has_variable = sakuya_b3_goods_output_mult_ironclads }
            AND = { has_variable = sakuya_b3_sel_good_clippers has_variable = sakuya_b3_goods_output_mult_clippers }
            AND = { has_variable = sakuya_b3_sel_good_steamers has_variable = sakuya_b3_goods_output_mult_steamers }
            AND = { has_variable = sakuya_b3_sel_good_fabric has_variable = sakuya_b3_goods_output_mult_fabric }
            AND = { has_variable = sakuya_b3_sel_good_fruit has_variable = sakuya_b3_goods_output_mult_fruit }
            AND = { has_variable = sakuya_b3_sel_good_liquor has_variable = sakuya_b3_goods_output_mult_liquor }
            AND = { has_variable = sakuya_b3_sel_good_wine has_variable = sakuya_b3_goods_output_mult_wine }
            AND = { has_variable = sakuya_b3_sel_good_sugar has_variable = sakuya_b3_goods_output_mult_sugar }
            AND = { has_variable = sakuya_b3_sel_good_hardwood has_variable = sakuya_b3_goods_output_mult_hardwood }
            AND = { has_variable = sakuya_b3_sel_good_oil has_variable = sakuya_b3_goods_output_mult_oil }
            AND = { has_variable = sakuya_b3_sel_good_engines has_variable = sakuya_b3_goods_output_mult_engines }
            AND = { has_variable = sakuya_b3_sel_good_tools has_variable = sakuya_b3_goods_output_mult_tools }
            AND = { has_variable = sakuya_b3_sel_good_automobiles has_variable = sakuya_b3_goods_output_mult_automobiles }
            AND = { has_variable = sakuya_b3_sel_good_radios has_variable = sakuya_b3_goods_output_mult_radios }
            AND = { has_variable = sakuya_b3_sel_good_silk has_variable = sakuya_b3_goods_output_mult_silk }
            AND = { has_variable = sakuya_b3_sel_good_electricity has_variable = sakuya_b3_goods_output_mult_electricity }
        }
    }
}

sakuya_b3_goods_selected_output_mult_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = {
            limit = { has_variable = sakuya_b3_sel_good_ammunition }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_ammunition } }
                set_variable = { name = sakuya_b3_goods_output_mult_ammunition value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_ammunition add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_ammunition
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_ammunition = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_ammunition multiplier = var:sakuya_b3_goods_output_mult_ammunition }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_ammunition = 0 }
                remove_variable = sakuya_b3_goods_output_mult_ammunition
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_small_arms }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_small_arms } }
                set_variable = { name = sakuya_b3_goods_output_mult_small_arms value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_small_arms add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_small_arms
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_small_arms = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_small_arms multiplier = var:sakuya_b3_goods_output_mult_small_arms }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_small_arms = 0 }
                remove_variable = sakuya_b3_goods_output_mult_small_arms
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_artillery }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_artillery } }
                set_variable = { name = sakuya_b3_goods_output_mult_artillery value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_artillery add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_artillery
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_artillery = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_artillery multiplier = var:sakuya_b3_goods_output_mult_artillery }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_artillery = 0 }
                remove_variable = sakuya_b3_goods_output_mult_artillery
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_tanks }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_tanks } }
                set_variable = { name = sakuya_b3_goods_output_mult_tanks value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_tanks add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_tanks
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_tanks = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_tanks multiplier = var:sakuya_b3_goods_output_mult_tanks }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_tanks = 0 }
                remove_variable = sakuya_b3_goods_output_mult_tanks
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_aeroplanes }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_aeroplanes } }
                set_variable = { name = sakuya_b3_goods_output_mult_aeroplanes value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_aeroplanes add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_aeroplanes
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_aeroplanes = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_aeroplanes multiplier = var:sakuya_b3_goods_output_mult_aeroplanes }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_aeroplanes = 0 }
                remove_variable = sakuya_b3_goods_output_mult_aeroplanes
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_manowars }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_manowars } }
                set_variable = { name = sakuya_b3_goods_output_mult_manowars value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_manowars add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_manowars
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_manowars = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_manowars multiplier = var:sakuya_b3_goods_output_mult_manowars }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_manowars = 0 }
                remove_variable = sakuya_b3_goods_output_mult_manowars
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_ironclads }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_ironclads } }
                set_variable = { name = sakuya_b3_goods_output_mult_ironclads value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_ironclads add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_ironclads
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_ironclads = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_ironclads multiplier = var:sakuya_b3_goods_output_mult_ironclads }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_ironclads = 0 }
                remove_variable = sakuya_b3_goods_output_mult_ironclads
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_clippers }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_clippers } }
                set_variable = { name = sakuya_b3_goods_output_mult_clippers value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_clippers add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_clippers
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_clippers = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_clippers multiplier = var:sakuya_b3_goods_output_mult_clippers }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_clippers = 0 }
                remove_variable = sakuya_b3_goods_output_mult_clippers
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_steamers }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_steamers } }
                set_variable = { name = sakuya_b3_goods_output_mult_steamers value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_steamers add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_steamers
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_steamers = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_steamers multiplier = var:sakuya_b3_goods_output_mult_steamers }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_steamers = 0 }
                remove_variable = sakuya_b3_goods_output_mult_steamers
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_fabric }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_fabric } }
                set_variable = { name = sakuya_b3_goods_output_mult_fabric value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_fabric add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_fabric
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_fabric = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_fabric multiplier = var:sakuya_b3_goods_output_mult_fabric }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_fabric = 0 }
                remove_variable = sakuya_b3_goods_output_mult_fabric
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_fruit }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_fruit } }
                set_variable = { name = sakuya_b3_goods_output_mult_fruit value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_fruit add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_fruit
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_fruit = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_fruit multiplier = var:sakuya_b3_goods_output_mult_fruit }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_fruit = 0 }
                remove_variable = sakuya_b3_goods_output_mult_fruit
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_liquor }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_liquor } }
                set_variable = { name = sakuya_b3_goods_output_mult_liquor value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_liquor add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_liquor
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_liquor = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_liquor multiplier = var:sakuya_b3_goods_output_mult_liquor }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_liquor = 0 }
                remove_variable = sakuya_b3_goods_output_mult_liquor
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_wine }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_wine } }
                set_variable = { name = sakuya_b3_goods_output_mult_wine value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_wine add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_wine
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_wine = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_wine multiplier = var:sakuya_b3_goods_output_mult_wine }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_wine = 0 }
                remove_variable = sakuya_b3_goods_output_mult_wine
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_sugar }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_sugar } }
                set_variable = { name = sakuya_b3_goods_output_mult_sugar value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_sugar add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_sugar
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_sugar = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_sugar multiplier = var:sakuya_b3_goods_output_mult_sugar }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_sugar = 0 }
                remove_variable = sakuya_b3_goods_output_mult_sugar
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_hardwood }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_hardwood } }
                set_variable = { name = sakuya_b3_goods_output_mult_hardwood value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_hardwood add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_hardwood
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_hardwood = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_hardwood multiplier = var:sakuya_b3_goods_output_mult_hardwood }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_hardwood = 0 }
                remove_variable = sakuya_b3_goods_output_mult_hardwood
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_oil }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_oil } }
                set_variable = { name = sakuya_b3_goods_output_mult_oil value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_oil add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_oil
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_oil = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_oil multiplier = var:sakuya_b3_goods_output_mult_oil }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_oil = 0 }
                remove_variable = sakuya_b3_goods_output_mult_oil
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_engines }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_engines } }
                set_variable = { name = sakuya_b3_goods_output_mult_engines value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_engines add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_engines
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_engines = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_engines multiplier = var:sakuya_b3_goods_output_mult_engines }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_engines = 0 }
                remove_variable = sakuya_b3_goods_output_mult_engines
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_tools }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_tools } }
                set_variable = { name = sakuya_b3_goods_output_mult_tools value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_tools add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_tools
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_tools = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_tools multiplier = var:sakuya_b3_goods_output_mult_tools }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_tools = 0 }
                remove_variable = sakuya_b3_goods_output_mult_tools
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_automobiles }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_automobiles } }
                set_variable = { name = sakuya_b3_goods_output_mult_automobiles value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_automobiles add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_automobiles
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_automobiles = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_automobiles multiplier = var:sakuya_b3_goods_output_mult_automobiles }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_automobiles = 0 }
                remove_variable = sakuya_b3_goods_output_mult_automobiles
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_radios }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_radios } }
                set_variable = { name = sakuya_b3_goods_output_mult_radios value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_radios add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_radios
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_radios = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_radios multiplier = var:sakuya_b3_goods_output_mult_radios }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_radios = 0 }
                remove_variable = sakuya_b3_goods_output_mult_radios
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_silk }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_silk } }
                set_variable = { name = sakuya_b3_goods_output_mult_silk value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_silk add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_silk
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_silk = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_silk multiplier = var:sakuya_b3_goods_output_mult_silk }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_silk = 0 }
                remove_variable = sakuya_b3_goods_output_mult_silk
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_electricity }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_electricity } }
                set_variable = { name = sakuya_b3_goods_output_mult_electricity value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_electricity add = 0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_electricity
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_electricity = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_electricity multiplier = var:sakuya_b3_goods_output_mult_electricity }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_electricity = 0 }
                remove_variable = sakuya_b3_goods_output_mult_electricity
            }
        }
    }
}

sakuya_b3_goods_selected_output_mult_sub_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = {
            limit = { has_variable = sakuya_b3_sel_good_ammunition }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_ammunition } }
                set_variable = { name = sakuya_b3_goods_output_mult_ammunition value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_ammunition add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_ammunition
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_ammunition = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_ammunition multiplier = var:sakuya_b3_goods_output_mult_ammunition }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_ammunition = 0 }
                remove_variable = sakuya_b3_goods_output_mult_ammunition
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_small_arms }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_small_arms } }
                set_variable = { name = sakuya_b3_goods_output_mult_small_arms value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_small_arms add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_small_arms
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_small_arms = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_small_arms multiplier = var:sakuya_b3_goods_output_mult_small_arms }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_small_arms = 0 }
                remove_variable = sakuya_b3_goods_output_mult_small_arms
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_artillery }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_artillery } }
                set_variable = { name = sakuya_b3_goods_output_mult_artillery value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_artillery add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_artillery
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_artillery = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_artillery multiplier = var:sakuya_b3_goods_output_mult_artillery }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_artillery = 0 }
                remove_variable = sakuya_b3_goods_output_mult_artillery
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_tanks }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_tanks } }
                set_variable = { name = sakuya_b3_goods_output_mult_tanks value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_tanks add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_tanks
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_tanks = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_tanks multiplier = var:sakuya_b3_goods_output_mult_tanks }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_tanks = 0 }
                remove_variable = sakuya_b3_goods_output_mult_tanks
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_aeroplanes }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_aeroplanes } }
                set_variable = { name = sakuya_b3_goods_output_mult_aeroplanes value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_aeroplanes add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_aeroplanes
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_aeroplanes = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_aeroplanes multiplier = var:sakuya_b3_goods_output_mult_aeroplanes }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_aeroplanes = 0 }
                remove_variable = sakuya_b3_goods_output_mult_aeroplanes
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_manowars }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_manowars } }
                set_variable = { name = sakuya_b3_goods_output_mult_manowars value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_manowars add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_manowars
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_manowars = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_manowars multiplier = var:sakuya_b3_goods_output_mult_manowars }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_manowars = 0 }
                remove_variable = sakuya_b3_goods_output_mult_manowars
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_ironclads }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_ironclads } }
                set_variable = { name = sakuya_b3_goods_output_mult_ironclads value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_ironclads add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_ironclads
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_ironclads = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_ironclads multiplier = var:sakuya_b3_goods_output_mult_ironclads }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_ironclads = 0 }
                remove_variable = sakuya_b3_goods_output_mult_ironclads
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_clippers }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_clippers } }
                set_variable = { name = sakuya_b3_goods_output_mult_clippers value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_clippers add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_clippers
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_clippers = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_clippers multiplier = var:sakuya_b3_goods_output_mult_clippers }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_clippers = 0 }
                remove_variable = sakuya_b3_goods_output_mult_clippers
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_steamers }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_steamers } }
                set_variable = { name = sakuya_b3_goods_output_mult_steamers value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_steamers add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_steamers
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_steamers = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_steamers multiplier = var:sakuya_b3_goods_output_mult_steamers }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_steamers = 0 }
                remove_variable = sakuya_b3_goods_output_mult_steamers
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_fabric }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_fabric } }
                set_variable = { name = sakuya_b3_goods_output_mult_fabric value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_fabric add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_fabric
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_fabric = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_fabric multiplier = var:sakuya_b3_goods_output_mult_fabric }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_fabric = 0 }
                remove_variable = sakuya_b3_goods_output_mult_fabric
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_fruit }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_fruit } }
                set_variable = { name = sakuya_b3_goods_output_mult_fruit value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_fruit add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_fruit
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_fruit = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_fruit multiplier = var:sakuya_b3_goods_output_mult_fruit }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_fruit = 0 }
                remove_variable = sakuya_b3_goods_output_mult_fruit
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_liquor }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_liquor } }
                set_variable = { name = sakuya_b3_goods_output_mult_liquor value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_liquor add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_liquor
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_liquor = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_liquor multiplier = var:sakuya_b3_goods_output_mult_liquor }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_liquor = 0 }
                remove_variable = sakuya_b3_goods_output_mult_liquor
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_wine }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_wine } }
                set_variable = { name = sakuya_b3_goods_output_mult_wine value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_wine add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_wine
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_wine = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_wine multiplier = var:sakuya_b3_goods_output_mult_wine }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_wine = 0 }
                remove_variable = sakuya_b3_goods_output_mult_wine
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_sugar }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_sugar } }
                set_variable = { name = sakuya_b3_goods_output_mult_sugar value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_sugar add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_sugar
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_sugar = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_sugar multiplier = var:sakuya_b3_goods_output_mult_sugar }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_sugar = 0 }
                remove_variable = sakuya_b3_goods_output_mult_sugar
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_hardwood }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_hardwood } }
                set_variable = { name = sakuya_b3_goods_output_mult_hardwood value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_hardwood add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_hardwood
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_hardwood = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_hardwood multiplier = var:sakuya_b3_goods_output_mult_hardwood }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_hardwood = 0 }
                remove_variable = sakuya_b3_goods_output_mult_hardwood
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_oil }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_oil } }
                set_variable = { name = sakuya_b3_goods_output_mult_oil value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_oil add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_oil
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_oil = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_oil multiplier = var:sakuya_b3_goods_output_mult_oil }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_oil = 0 }
                remove_variable = sakuya_b3_goods_output_mult_oil
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_engines }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_engines } }
                set_variable = { name = sakuya_b3_goods_output_mult_engines value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_engines add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_engines
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_engines = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_engines multiplier = var:sakuya_b3_goods_output_mult_engines }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_engines = 0 }
                remove_variable = sakuya_b3_goods_output_mult_engines
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_tools }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_tools } }
                set_variable = { name = sakuya_b3_goods_output_mult_tools value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_tools add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_tools
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_tools = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_tools multiplier = var:sakuya_b3_goods_output_mult_tools }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_tools = 0 }
                remove_variable = sakuya_b3_goods_output_mult_tools
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_automobiles }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_automobiles } }
                set_variable = { name = sakuya_b3_goods_output_mult_automobiles value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_automobiles add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_automobiles
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_automobiles = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_automobiles multiplier = var:sakuya_b3_goods_output_mult_automobiles }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_automobiles = 0 }
                remove_variable = sakuya_b3_goods_output_mult_automobiles
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_radios }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_radios } }
                set_variable = { name = sakuya_b3_goods_output_mult_radios value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_radios add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_radios
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_radios = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_radios multiplier = var:sakuya_b3_goods_output_mult_radios }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_radios = 0 }
                remove_variable = sakuya_b3_goods_output_mult_radios
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_silk }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_silk } }
                set_variable = { name = sakuya_b3_goods_output_mult_silk value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_silk add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_silk
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_silk = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_silk multiplier = var:sakuya_b3_goods_output_mult_silk }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_silk = 0 }
                remove_variable = sakuya_b3_goods_output_mult_silk
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_electricity }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_electricity } }
                set_variable = { name = sakuya_b3_goods_output_mult_electricity value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_electricity add = -0.2 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_electricity
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_electricity = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_electricity multiplier = var:sakuya_b3_goods_output_mult_electricity }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_electricity = 0 }
                remove_variable = sakuya_b3_goods_output_mult_electricity
            }
        }
    }
}

sakuya_b3_goods_selected_output_mult_add_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = {
            limit = { has_variable = sakuya_b3_sel_good_ammunition }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_ammunition } }
                set_variable = { name = sakuya_b3_goods_output_mult_ammunition value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_ammunition add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_ammunition
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_ammunition = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_ammunition multiplier = var:sakuya_b3_goods_output_mult_ammunition }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_ammunition = 0 }
                remove_variable = sakuya_b3_goods_output_mult_ammunition
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_small_arms }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_small_arms } }
                set_variable = { name = sakuya_b3_goods_output_mult_small_arms value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_small_arms add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_small_arms
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_small_arms = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_small_arms multiplier = var:sakuya_b3_goods_output_mult_small_arms }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_small_arms = 0 }
                remove_variable = sakuya_b3_goods_output_mult_small_arms
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_artillery }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_artillery } }
                set_variable = { name = sakuya_b3_goods_output_mult_artillery value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_artillery add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_artillery
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_artillery = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_artillery multiplier = var:sakuya_b3_goods_output_mult_artillery }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_artillery = 0 }
                remove_variable = sakuya_b3_goods_output_mult_artillery
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_tanks }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_tanks } }
                set_variable = { name = sakuya_b3_goods_output_mult_tanks value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_tanks add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_tanks
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_tanks = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_tanks multiplier = var:sakuya_b3_goods_output_mult_tanks }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_tanks = 0 }
                remove_variable = sakuya_b3_goods_output_mult_tanks
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_aeroplanes }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_aeroplanes } }
                set_variable = { name = sakuya_b3_goods_output_mult_aeroplanes value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_aeroplanes add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_aeroplanes
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_aeroplanes = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_aeroplanes multiplier = var:sakuya_b3_goods_output_mult_aeroplanes }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_aeroplanes = 0 }
                remove_variable = sakuya_b3_goods_output_mult_aeroplanes
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_manowars }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_manowars } }
                set_variable = { name = sakuya_b3_goods_output_mult_manowars value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_manowars add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_manowars
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_manowars = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_manowars multiplier = var:sakuya_b3_goods_output_mult_manowars }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_manowars = 0 }
                remove_variable = sakuya_b3_goods_output_mult_manowars
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_ironclads }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_ironclads } }
                set_variable = { name = sakuya_b3_goods_output_mult_ironclads value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_ironclads add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_ironclads
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_ironclads = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_ironclads multiplier = var:sakuya_b3_goods_output_mult_ironclads }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_ironclads = 0 }
                remove_variable = sakuya_b3_goods_output_mult_ironclads
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_clippers }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_clippers } }
                set_variable = { name = sakuya_b3_goods_output_mult_clippers value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_clippers add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_clippers
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_clippers = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_clippers multiplier = var:sakuya_b3_goods_output_mult_clippers }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_clippers = 0 }
                remove_variable = sakuya_b3_goods_output_mult_clippers
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_steamers }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_steamers } }
                set_variable = { name = sakuya_b3_goods_output_mult_steamers value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_steamers add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_steamers
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_steamers = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_steamers multiplier = var:sakuya_b3_goods_output_mult_steamers }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_steamers = 0 }
                remove_variable = sakuya_b3_goods_output_mult_steamers
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_fabric }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_fabric } }
                set_variable = { name = sakuya_b3_goods_output_mult_fabric value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_fabric add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_fabric
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_fabric = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_fabric multiplier = var:sakuya_b3_goods_output_mult_fabric }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_fabric = 0 }
                remove_variable = sakuya_b3_goods_output_mult_fabric
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_fruit }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_fruit } }
                set_variable = { name = sakuya_b3_goods_output_mult_fruit value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_fruit add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_fruit
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_fruit = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_fruit multiplier = var:sakuya_b3_goods_output_mult_fruit }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_fruit = 0 }
                remove_variable = sakuya_b3_goods_output_mult_fruit
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_liquor }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_liquor } }
                set_variable = { name = sakuya_b3_goods_output_mult_liquor value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_liquor add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_liquor
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_liquor = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_liquor multiplier = var:sakuya_b3_goods_output_mult_liquor }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_liquor = 0 }
                remove_variable = sakuya_b3_goods_output_mult_liquor
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_wine }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_wine } }
                set_variable = { name = sakuya_b3_goods_output_mult_wine value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_wine add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_wine
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_wine = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_wine multiplier = var:sakuya_b3_goods_output_mult_wine }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_wine = 0 }
                remove_variable = sakuya_b3_goods_output_mult_wine
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_sugar }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_sugar } }
                set_variable = { name = sakuya_b3_goods_output_mult_sugar value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_sugar add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_sugar
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_sugar = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_sugar multiplier = var:sakuya_b3_goods_output_mult_sugar }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_sugar = 0 }
                remove_variable = sakuya_b3_goods_output_mult_sugar
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_hardwood }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_hardwood } }
                set_variable = { name = sakuya_b3_goods_output_mult_hardwood value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_hardwood add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_hardwood
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_hardwood = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_hardwood multiplier = var:sakuya_b3_goods_output_mult_hardwood }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_hardwood = 0 }
                remove_variable = sakuya_b3_goods_output_mult_hardwood
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_oil }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_oil } }
                set_variable = { name = sakuya_b3_goods_output_mult_oil value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_oil add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_oil
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_oil = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_oil multiplier = var:sakuya_b3_goods_output_mult_oil }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_oil = 0 }
                remove_variable = sakuya_b3_goods_output_mult_oil
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_engines }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_engines } }
                set_variable = { name = sakuya_b3_goods_output_mult_engines value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_engines add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_engines
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_engines = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_engines multiplier = var:sakuya_b3_goods_output_mult_engines }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_engines = 0 }
                remove_variable = sakuya_b3_goods_output_mult_engines
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_tools }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_tools } }
                set_variable = { name = sakuya_b3_goods_output_mult_tools value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_tools add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_tools
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_tools = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_tools multiplier = var:sakuya_b3_goods_output_mult_tools }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_tools = 0 }
                remove_variable = sakuya_b3_goods_output_mult_tools
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_automobiles }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_automobiles } }
                set_variable = { name = sakuya_b3_goods_output_mult_automobiles value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_automobiles add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_automobiles
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_automobiles = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_automobiles multiplier = var:sakuya_b3_goods_output_mult_automobiles }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_automobiles = 0 }
                remove_variable = sakuya_b3_goods_output_mult_automobiles
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_radios }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_radios } }
                set_variable = { name = sakuya_b3_goods_output_mult_radios value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_radios add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_radios
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_radios = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_radios multiplier = var:sakuya_b3_goods_output_mult_radios }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_radios = 0 }
                remove_variable = sakuya_b3_goods_output_mult_radios
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_silk }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_silk } }
                set_variable = { name = sakuya_b3_goods_output_mult_silk value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_silk add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_silk
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_silk = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_silk multiplier = var:sakuya_b3_goods_output_mult_silk }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_silk = 0 }
                remove_variable = sakuya_b3_goods_output_mult_silk
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_electricity }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_electricity } }
                set_variable = { name = sakuya_b3_goods_output_mult_electricity value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_electricity add = 10 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_electricity
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_electricity = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_electricity multiplier = var:sakuya_b3_goods_output_mult_electricity }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_electricity = 0 }
                remove_variable = sakuya_b3_goods_output_mult_electricity
            }
        }
    }
}

sakuya_b3_goods_selected_output_mult_add_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = {
            limit = { has_variable = sakuya_b3_sel_good_ammunition }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_ammunition } }
                set_variable = { name = sakuya_b3_goods_output_mult_ammunition value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_ammunition add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_ammunition
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_ammunition = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_ammunition multiplier = var:sakuya_b3_goods_output_mult_ammunition }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_ammunition = 0 }
                remove_variable = sakuya_b3_goods_output_mult_ammunition
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_small_arms }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_small_arms } }
                set_variable = { name = sakuya_b3_goods_output_mult_small_arms value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_small_arms add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_small_arms
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_small_arms = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_small_arms multiplier = var:sakuya_b3_goods_output_mult_small_arms }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_small_arms = 0 }
                remove_variable = sakuya_b3_goods_output_mult_small_arms
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_artillery }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_artillery } }
                set_variable = { name = sakuya_b3_goods_output_mult_artillery value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_artillery add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_artillery
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_artillery = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_artillery multiplier = var:sakuya_b3_goods_output_mult_artillery }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_artillery = 0 }
                remove_variable = sakuya_b3_goods_output_mult_artillery
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_tanks }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_tanks } }
                set_variable = { name = sakuya_b3_goods_output_mult_tanks value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_tanks add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_tanks
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_tanks = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_tanks multiplier = var:sakuya_b3_goods_output_mult_tanks }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_tanks = 0 }
                remove_variable = sakuya_b3_goods_output_mult_tanks
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_aeroplanes }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_aeroplanes } }
                set_variable = { name = sakuya_b3_goods_output_mult_aeroplanes value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_aeroplanes add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_aeroplanes
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_aeroplanes = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_aeroplanes multiplier = var:sakuya_b3_goods_output_mult_aeroplanes }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_aeroplanes = 0 }
                remove_variable = sakuya_b3_goods_output_mult_aeroplanes
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_manowars }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_manowars } }
                set_variable = { name = sakuya_b3_goods_output_mult_manowars value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_manowars add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_manowars
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_manowars = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_manowars multiplier = var:sakuya_b3_goods_output_mult_manowars }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_manowars = 0 }
                remove_variable = sakuya_b3_goods_output_mult_manowars
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_ironclads }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_ironclads } }
                set_variable = { name = sakuya_b3_goods_output_mult_ironclads value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_ironclads add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_ironclads
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_ironclads = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_ironclads multiplier = var:sakuya_b3_goods_output_mult_ironclads }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_ironclads = 0 }
                remove_variable = sakuya_b3_goods_output_mult_ironclads
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_clippers }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_clippers } }
                set_variable = { name = sakuya_b3_goods_output_mult_clippers value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_clippers add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_clippers
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_clippers = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_clippers multiplier = var:sakuya_b3_goods_output_mult_clippers }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_clippers = 0 }
                remove_variable = sakuya_b3_goods_output_mult_clippers
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_steamers }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_steamers } }
                set_variable = { name = sakuya_b3_goods_output_mult_steamers value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_steamers add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_steamers
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_steamers = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_steamers multiplier = var:sakuya_b3_goods_output_mult_steamers }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_steamers = 0 }
                remove_variable = sakuya_b3_goods_output_mult_steamers
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_fabric }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_fabric } }
                set_variable = { name = sakuya_b3_goods_output_mult_fabric value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_fabric add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_fabric
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_fabric = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_fabric multiplier = var:sakuya_b3_goods_output_mult_fabric }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_fabric = 0 }
                remove_variable = sakuya_b3_goods_output_mult_fabric
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_fruit }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_fruit } }
                set_variable = { name = sakuya_b3_goods_output_mult_fruit value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_fruit add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_fruit
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_fruit = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_fruit multiplier = var:sakuya_b3_goods_output_mult_fruit }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_fruit = 0 }
                remove_variable = sakuya_b3_goods_output_mult_fruit
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_liquor }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_liquor } }
                set_variable = { name = sakuya_b3_goods_output_mult_liquor value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_liquor add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_liquor
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_liquor = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_liquor multiplier = var:sakuya_b3_goods_output_mult_liquor }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_liquor = 0 }
                remove_variable = sakuya_b3_goods_output_mult_liquor
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_wine }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_wine } }
                set_variable = { name = sakuya_b3_goods_output_mult_wine value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_wine add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_wine
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_wine = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_wine multiplier = var:sakuya_b3_goods_output_mult_wine }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_wine = 0 }
                remove_variable = sakuya_b3_goods_output_mult_wine
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_sugar }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_sugar } }
                set_variable = { name = sakuya_b3_goods_output_mult_sugar value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_sugar add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_sugar
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_sugar = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_sugar multiplier = var:sakuya_b3_goods_output_mult_sugar }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_sugar = 0 }
                remove_variable = sakuya_b3_goods_output_mult_sugar
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_hardwood }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_hardwood } }
                set_variable = { name = sakuya_b3_goods_output_mult_hardwood value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_hardwood add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_hardwood
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_hardwood = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_hardwood multiplier = var:sakuya_b3_goods_output_mult_hardwood }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_hardwood = 0 }
                remove_variable = sakuya_b3_goods_output_mult_hardwood
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_oil }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_oil } }
                set_variable = { name = sakuya_b3_goods_output_mult_oil value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_oil add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_oil
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_oil = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_oil multiplier = var:sakuya_b3_goods_output_mult_oil }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_oil = 0 }
                remove_variable = sakuya_b3_goods_output_mult_oil
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_engines }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_engines } }
                set_variable = { name = sakuya_b3_goods_output_mult_engines value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_engines add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_engines
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_engines = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_engines multiplier = var:sakuya_b3_goods_output_mult_engines }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_engines = 0 }
                remove_variable = sakuya_b3_goods_output_mult_engines
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_tools }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_tools } }
                set_variable = { name = sakuya_b3_goods_output_mult_tools value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_tools add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_tools
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_tools = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_tools multiplier = var:sakuya_b3_goods_output_mult_tools }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_tools = 0 }
                remove_variable = sakuya_b3_goods_output_mult_tools
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_automobiles }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_automobiles } }
                set_variable = { name = sakuya_b3_goods_output_mult_automobiles value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_automobiles add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_automobiles
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_automobiles = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_automobiles multiplier = var:sakuya_b3_goods_output_mult_automobiles }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_automobiles = 0 }
                remove_variable = sakuya_b3_goods_output_mult_automobiles
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_radios }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_radios } }
                set_variable = { name = sakuya_b3_goods_output_mult_radios value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_radios add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_radios
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_radios = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_radios multiplier = var:sakuya_b3_goods_output_mult_radios }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_radios = 0 }
                remove_variable = sakuya_b3_goods_output_mult_radios
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_silk }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_silk } }
                set_variable = { name = sakuya_b3_goods_output_mult_silk value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_silk add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_silk
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_silk = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_silk multiplier = var:sakuya_b3_goods_output_mult_silk }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_silk = 0 }
                remove_variable = sakuya_b3_goods_output_mult_silk
            }
        }
        if = {
            limit = { has_variable = sakuya_b3_sel_good_electricity }
            if = {
                limit = { NOT = { has_variable = sakuya_b3_goods_output_mult_electricity } }
                set_variable = { name = sakuya_b3_goods_output_mult_electricity value = 0 }
            }
            change_variable = { name = sakuya_b3_goods_output_mult_electricity add = 0.05 }
            remove_modifier = sakuya_cheat_b3_goods_output_mult_electricity
            if = {
                limit = { NOT = { var:sakuya_b3_goods_output_mult_electricity = 0 } }
                add_modifier = { name = sakuya_cheat_b3_goods_output_mult_electricity multiplier = var:sakuya_b3_goods_output_mult_electricity }
            }
            if = {
                limit = { var:sakuya_b3_goods_output_mult_electricity = 0 }
                remove_variable = sakuya_b3_goods_output_mult_electricity
            }
        }
    }
}

sakuya_b3_goods_selected_output_mult_clear_all = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        remove_modifier = sakuya_cheat_b3_goods_output_mult_ammunition
        remove_variable = sakuya_b3_goods_output_mult_ammunition
        remove_modifier = sakuya_cheat_b3_goods_output_mult_small_arms
        remove_variable = sakuya_b3_goods_output_mult_small_arms
        remove_modifier = sakuya_cheat_b3_goods_output_mult_artillery
        remove_variable = sakuya_b3_goods_output_mult_artillery
        remove_modifier = sakuya_cheat_b3_goods_output_mult_tanks
        remove_variable = sakuya_b3_goods_output_mult_tanks
        remove_modifier = sakuya_cheat_b3_goods_output_mult_aeroplanes
        remove_variable = sakuya_b3_goods_output_mult_aeroplanes
        remove_modifier = sakuya_cheat_b3_goods_output_mult_manowars
        remove_variable = sakuya_b3_goods_output_mult_manowars
        remove_modifier = sakuya_cheat_b3_goods_output_mult_ironclads
        remove_variable = sakuya_b3_goods_output_mult_ironclads
        remove_modifier = sakuya_cheat_b3_goods_output_mult_fabric
        remove_variable = sakuya_b3_goods_output_mult_fabric
        remove_modifier = sakuya_cheat_b3_goods_output_mult_clippers
        remove_variable = sakuya_b3_goods_output_mult_clippers
        remove_modifier = sakuya_cheat_b3_goods_output_mult_steamers
        remove_variable = sakuya_b3_goods_output_mult_steamers
        remove_modifier = sakuya_cheat_b3_goods_output_mult_silk
        remove_variable = sakuya_b3_goods_output_mult_silk
        remove_modifier = sakuya_cheat_b3_goods_output_mult_hardwood
        remove_variable = sakuya_b3_goods_output_mult_hardwood
        remove_modifier = sakuya_cheat_b3_goods_output_mult_oil
        remove_variable = sakuya_b3_goods_output_mult_oil
        remove_modifier = sakuya_cheat_b3_goods_output_mult_engines
        remove_variable = sakuya_b3_goods_output_mult_engines
        remove_modifier = sakuya_cheat_b3_goods_output_mult_tools
        remove_variable = sakuya_b3_goods_output_mult_tools
        remove_modifier = sakuya_cheat_b3_goods_output_mult_fruit
        remove_variable = sakuya_b3_goods_output_mult_fruit
        remove_modifier = sakuya_cheat_b3_goods_output_mult_liquor
        remove_variable = sakuya_b3_goods_output_mult_liquor
        remove_modifier = sakuya_cheat_b3_goods_output_mult_wine
        remove_variable = sakuya_b3_goods_output_mult_wine
        remove_modifier = sakuya_cheat_b3_goods_output_mult_sugar
        remove_variable = sakuya_b3_goods_output_mult_sugar
        remove_modifier = sakuya_cheat_b3_goods_output_mult_automobiles
        remove_variable = sakuya_b3_goods_output_mult_automobiles
        remove_modifier = sakuya_cheat_b3_goods_output_mult_radios
        remove_variable = sakuya_b3_goods_output_mult_radios
        remove_modifier = sakuya_cheat_b3_goods_output_mult_electricity
        remove_variable = sakuya_b3_goods_output_mult_electricity
    }
}


sakuya_b3_goods_selected_output_add_check = {
    scope = country
    is_shown = {
        OR = {
            AND = { has_variable = sakuya_b3_sel_good_ammunition has_variable = sakuya_b3_goods_output_add_ammunition }
            AND = { has_variable = sakuya_b3_sel_good_small_arms has_variable = sakuya_b3_goods_output_add_small_arms }
            AND = { has_variable = sakuya_b3_sel_good_artillery has_variable = sakuya_b3_goods_output_add_artillery }
            AND = { has_variable = sakuya_b3_sel_good_tanks has_variable = sakuya_b3_goods_output_add_tanks }
            AND = { has_variable = sakuya_b3_sel_good_aeroplanes has_variable = sakuya_b3_goods_output_add_aeroplanes }
            AND = { has_variable = sakuya_b3_sel_good_manowars has_variable = sakuya_b3_goods_output_add_manowars }
            AND = { has_variable = sakuya_b3_sel_good_ironclads has_variable = sakuya_b3_goods_output_add_ironclads }
            AND = { has_variable = sakuya_b3_sel_good_grain has_variable = sakuya_b3_goods_output_add_grain }
            AND = { has_variable = sakuya_b3_sel_good_fish has_variable = sakuya_b3_goods_output_add_fish }
            AND = { has_variable = sakuya_b3_sel_good_fabric has_variable = sakuya_b3_goods_output_add_fabric }
            AND = { has_variable = sakuya_b3_sel_good_wood has_variable = sakuya_b3_goods_output_add_wood }
            AND = { has_variable = sakuya_b3_sel_good_groceries has_variable = sakuya_b3_goods_output_add_groceries }
            AND = { has_variable = sakuya_b3_sel_good_clothes has_variable = sakuya_b3_goods_output_add_clothes }
            AND = { has_variable = sakuya_b3_sel_good_furniture has_variable = sakuya_b3_goods_output_add_furniture }
            AND = { has_variable = sakuya_b3_sel_good_paper has_variable = sakuya_b3_goods_output_add_paper }
            AND = { has_variable = sakuya_b3_sel_good_merchant_marine has_variable = sakuya_b3_goods_output_add_merchant_marine }
            AND = { has_variable = sakuya_b3_sel_good_clippers has_variable = sakuya_b3_goods_output_add_clippers }
            AND = { has_variable = sakuya_b3_sel_good_steamers has_variable = sakuya_b3_goods_output_add_steamers }
            AND = { has_variable = sakuya_b3_sel_good_silk has_variable = sakuya_b3_goods_output_add_silk }
            AND = { has_variable = sakuya_b3_sel_good_dye has_variable = sakuya_b3_goods_output_add_dye }
            AND = { has_variable = sakuya_b3_sel_good_sulfur has_variable = sakuya_b3_goods_output_add_sulfur }
            AND = { has_variable = sakuya_b3_sel_good_coal has_variable = sakuya_b3_goods_output_add_coal }
            AND = { has_variable = sakuya_b3_sel_good_iron has_variable = sakuya_b3_goods_output_add_iron }
            AND = { has_variable = sakuya_b3_sel_good_lead has_variable = sakuya_b3_goods_output_add_lead }
AND = { has_variable = sakuya_b3_sel_good_copper has_variable = sakuya_b3_goods_output_add_copper }
            AND = { has_variable = sakuya_b3_sel_good_hardwood has_variable = sakuya_b3_goods_output_add_hardwood }
            AND = { has_variable = sakuya_b3_sel_good_rubber has_variable = sakuya_b3_goods_output_add_rubber }
            AND = { has_variable = sakuya_b3_sel_good_oil has_variable = sakuya_b3_goods_output_add_oil }
            AND = { has_variable = sakuya_b3_sel_good_engines has_variable = sakuya_b3_goods_output_add_engines }
            AND = { has_variable = sakuya_b3_sel_good_steel has_variable = sakuya_b3_goods_output_add_steel }
            AND = { has_variable = sakuya_b3_sel_good_glass has_variable = sakuya_b3_goods_output_add_glass }
            AND = { has_variable = sakuya_b3_sel_good_fertilizer has_variable = sakuya_b3_goods_output_add_fertilizer }
            AND = { has_variable = sakuya_b3_sel_good_tools has_variable = sakuya_b3_goods_output_add_tools }
            AND = { has_variable = sakuya_b3_sel_good_explosives has_variable = sakuya_b3_goods_output_add_explosives }
            AND = { has_variable = sakuya_b3_sel_good_porcelain has_variable = sakuya_b3_goods_output_add_porcelain }
            AND = { has_variable = sakuya_b3_sel_good_meat has_variable = sakuya_b3_goods_output_add_meat }
            AND = { has_variable = sakuya_b3_sel_good_fruit has_variable = sakuya_b3_goods_output_add_fruit }
            AND = { has_variable = sakuya_b3_sel_good_liquor has_variable = sakuya_b3_goods_output_add_liquor }
            AND = { has_variable = sakuya_b3_sel_good_wine has_variable = sakuya_b3_goods_output_add_wine }
            AND = { has_variable = sakuya_b3_sel_good_tea has_variable = sakuya_b3_goods_output_add_tea }
            AND = { has_variable = sakuya_b3_sel_good_coffee has_variable = sakuya_b3_goods_output_add_coffee }
            AND = { has_variable = sakuya_b3_sel_good_sugar has_variable = sakuya_b3_goods_output_add_sugar }
            AND = { has_variable = sakuya_b3_sel_good_tobacco has_variable = sakuya_b3_goods_output_add_tobacco }
            AND = { has_variable = sakuya_b3_sel_good_opium has_variable = sakuya_b3_goods_output_add_opium }
            AND = { has_variable = sakuya_b3_sel_good_automobiles has_variable = sakuya_b3_goods_output_add_automobiles }
            AND = { has_variable = sakuya_b3_sel_good_telephones has_variable = sakuya_b3_goods_output_add_telephones }
            AND = { has_variable = sakuya_b3_sel_good_radios has_variable = sakuya_b3_goods_output_add_radios }
            AND = { has_variable = sakuya_b3_sel_good_luxury_clothes has_variable = sakuya_b3_goods_output_add_luxury_clothes }
            AND = { has_variable = sakuya_b3_sel_good_luxury_furniture has_variable = sakuya_b3_goods_output_add_luxury_furniture }
            AND = { has_variable = sakuya_b3_sel_good_fine_art has_variable = sakuya_b3_goods_output_add_fine_art }
            AND = { has_variable = sakuya_b3_sel_good_gold has_variable = sakuya_b3_goods_output_add_gold }
            AND = { has_variable = sakuya_b3_sel_good_electricity has_variable = sakuya_b3_goods_output_add_electricity }
            AND = { has_variable = sakuya_b3_sel_good_transportation has_variable = sakuya_b3_goods_output_add_transportation }
            AND = { has_variable = sakuya_b3_sel_good_services has_variable = sakuya_b3_goods_output_add_services }
        }
    }
}

sakuya_b3_goods_selected_output_add_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_ammunition } } set_variable = { name = sakuya_b3_goods_output_add_ammunition value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_ammunition add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_ammunition add_modifier = { name = sakuya_cheat_b3_goods_output_add_ammunition multiplier = var:sakuya_b3_goods_output_add_ammunition } }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_small_arms } } set_variable = { name = sakuya_b3_goods_output_add_small_arms value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_small_arms add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_small_arms add_modifier = { name = sakuya_cheat_b3_goods_output_add_small_arms multiplier = var:sakuya_b3_goods_output_add_small_arms } }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_artillery } } set_variable = { name = sakuya_b3_goods_output_add_artillery value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_artillery add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_artillery add_modifier = { name = sakuya_cheat_b3_goods_output_add_artillery multiplier = var:sakuya_b3_goods_output_add_artillery } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tanks } } set_variable = { name = sakuya_b3_goods_output_add_tanks value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tanks add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_tanks add_modifier = { name = sakuya_cheat_b3_goods_output_add_tanks multiplier = var:sakuya_b3_goods_output_add_tanks } }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_aeroplanes } } set_variable = { name = sakuya_b3_goods_output_add_aeroplanes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_aeroplanes add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_aeroplanes add_modifier = { name = sakuya_cheat_b3_goods_output_add_aeroplanes multiplier = var:sakuya_b3_goods_output_add_aeroplanes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_manowars } } set_variable = { name = sakuya_b3_goods_output_add_manowars value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_manowars add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_manowars add_modifier = { name = sakuya_cheat_b3_goods_output_add_manowars multiplier = var:sakuya_b3_goods_output_add_manowars } }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_ironclads } } set_variable = { name = sakuya_b3_goods_output_add_ironclads value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_ironclads add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_ironclads add_modifier = { name = sakuya_cheat_b3_goods_output_add_ironclads multiplier = var:sakuya_b3_goods_output_add_ironclads } }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_grain } } set_variable = { name = sakuya_b3_goods_output_add_grain value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_grain add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_grain add_modifier = { name = sakuya_cheat_b3_goods_output_add_grain multiplier = var:sakuya_b3_goods_output_add_grain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fish } } set_variable = { name = sakuya_b3_goods_output_add_fish value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fish add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_fish add_modifier = { name = sakuya_cheat_b3_goods_output_add_fish multiplier = var:sakuya_b3_goods_output_add_fish } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fabric } } set_variable = { name = sakuya_b3_goods_output_add_fabric value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fabric add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_fabric add_modifier = { name = sakuya_cheat_b3_goods_output_add_fabric multiplier = var:sakuya_b3_goods_output_add_fabric } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_wood } } set_variable = { name = sakuya_b3_goods_output_add_wood value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_wood add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_wood add_modifier = { name = sakuya_cheat_b3_goods_output_add_wood multiplier = var:sakuya_b3_goods_output_add_wood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_groceries } } set_variable = { name = sakuya_b3_goods_output_add_groceries value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_groceries add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_groceries add_modifier = { name = sakuya_cheat_b3_goods_output_add_groceries multiplier = var:sakuya_b3_goods_output_add_groceries } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_clothes } } set_variable = { name = sakuya_b3_goods_output_add_clothes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_clothes add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_clothes add_modifier = { name = sakuya_cheat_b3_goods_output_add_clothes multiplier = var:sakuya_b3_goods_output_add_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_furniture } } set_variable = { name = sakuya_b3_goods_output_add_furniture value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_furniture add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_furniture add_modifier = { name = sakuya_cheat_b3_goods_output_add_furniture multiplier = var:sakuya_b3_goods_output_add_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_paper } } set_variable = { name = sakuya_b3_goods_output_add_paper value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_paper add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_paper add_modifier = { name = sakuya_cheat_b3_goods_output_add_paper multiplier = var:sakuya_b3_goods_output_add_paper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_merchant_marine } } set_variable = { name = sakuya_b3_goods_output_add_merchant_marine value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_merchant_marine add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_merchant_marine add_modifier = { name = sakuya_cheat_b3_goods_output_add_merchant_marine multiplier = var:sakuya_b3_goods_output_add_merchant_marine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_clippers } } set_variable = { name = sakuya_b3_goods_output_add_clippers value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_clippers add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_clippers add_modifier = { name = sakuya_cheat_b3_goods_output_add_clippers multiplier = var:sakuya_b3_goods_output_add_clippers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_steamers } } set_variable = { name = sakuya_b3_goods_output_add_steamers value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_steamers add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_steamers add_modifier = { name = sakuya_cheat_b3_goods_output_add_steamers multiplier = var:sakuya_b3_goods_output_add_steamers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_silk } } set_variable = { name = sakuya_b3_goods_output_add_silk value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_silk add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_silk add_modifier = { name = sakuya_cheat_b3_goods_output_add_silk multiplier = var:sakuya_b3_goods_output_add_silk } }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_dye } } set_variable = { name = sakuya_b3_goods_output_add_dye value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_dye add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_dye add_modifier = { name = sakuya_cheat_b3_goods_output_add_dye multiplier = var:sakuya_b3_goods_output_add_dye } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_sulfur } } set_variable = { name = sakuya_b3_goods_output_add_sulfur value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_sulfur add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_sulfur add_modifier = { name = sakuya_cheat_b3_goods_output_add_sulfur multiplier = var:sakuya_b3_goods_output_add_sulfur } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_coal } } set_variable = { name = sakuya_b3_goods_output_add_coal value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_coal add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_coal add_modifier = { name = sakuya_cheat_b3_goods_output_add_coal multiplier = var:sakuya_b3_goods_output_add_coal } }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_iron } } set_variable = { name = sakuya_b3_goods_output_add_iron value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_iron add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_iron add_modifier = { name = sakuya_cheat_b3_goods_output_add_iron multiplier = var:sakuya_b3_goods_output_add_iron } }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_lead } } set_variable = { name = sakuya_b3_goods_output_add_lead value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_lead add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_lead add_modifier = { name = sakuya_cheat_b3_goods_output_add_lead multiplier = var:sakuya_b3_goods_output_add_lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_copper } } set_variable = { name = sakuya_b3_goods_output_add_copper value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_copper add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_copper add_modifier = { name = sakuya_cheat_b3_goods_output_add_copper multiplier = var:sakuya_b3_goods_output_add_copper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_hardwood } } set_variable = { name = sakuya_b3_goods_output_add_hardwood value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_hardwood add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_hardwood add_modifier = { name = sakuya_cheat_b3_goods_output_add_hardwood multiplier = var:sakuya_b3_goods_output_add_hardwood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_rubber } } set_variable = { name = sakuya_b3_goods_output_add_rubber value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_rubber add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_rubber add_modifier = { name = sakuya_cheat_b3_goods_output_add_rubber multiplier = var:sakuya_b3_goods_output_add_rubber } }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_oil } } set_variable = { name = sakuya_b3_goods_output_add_oil value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_oil add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_oil add_modifier = { name = sakuya_cheat_b3_goods_output_add_oil multiplier = var:sakuya_b3_goods_output_add_oil } }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_engines } } set_variable = { name = sakuya_b3_goods_output_add_engines value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_engines add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_engines add_modifier = { name = sakuya_cheat_b3_goods_output_add_engines multiplier = var:sakuya_b3_goods_output_add_engines } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_steel } } set_variable = { name = sakuya_b3_goods_output_add_steel value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_steel add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_steel add_modifier = { name = sakuya_cheat_b3_goods_output_add_steel multiplier = var:sakuya_b3_goods_output_add_steel } }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_glass } } set_variable = { name = sakuya_b3_goods_output_add_glass value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_glass add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_glass add_modifier = { name = sakuya_cheat_b3_goods_output_add_glass multiplier = var:sakuya_b3_goods_output_add_glass } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fertilizer } } set_variable = { name = sakuya_b3_goods_output_add_fertilizer value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fertilizer add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_fertilizer add_modifier = { name = sakuya_cheat_b3_goods_output_add_fertilizer multiplier = var:sakuya_b3_goods_output_add_fertilizer } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tools } } set_variable = { name = sakuya_b3_goods_output_add_tools value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tools add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_tools add_modifier = { name = sakuya_cheat_b3_goods_output_add_tools multiplier = var:sakuya_b3_goods_output_add_tools } }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_explosives } } set_variable = { name = sakuya_b3_goods_output_add_explosives value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_explosives add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_explosives add_modifier = { name = sakuya_cheat_b3_goods_output_add_explosives multiplier = var:sakuya_b3_goods_output_add_explosives } }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_porcelain } } set_variable = { name = sakuya_b3_goods_output_add_porcelain value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_porcelain add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_porcelain add_modifier = { name = sakuya_cheat_b3_goods_output_add_porcelain multiplier = var:sakuya_b3_goods_output_add_porcelain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_meat } } set_variable = { name = sakuya_b3_goods_output_add_meat value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_meat add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_meat add_modifier = { name = sakuya_cheat_b3_goods_output_add_meat multiplier = var:sakuya_b3_goods_output_add_meat } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fruit } } set_variable = { name = sakuya_b3_goods_output_add_fruit value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fruit add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_fruit add_modifier = { name = sakuya_cheat_b3_goods_output_add_fruit multiplier = var:sakuya_b3_goods_output_add_fruit } }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_liquor } } set_variable = { name = sakuya_b3_goods_output_add_liquor value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_liquor add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_liquor add_modifier = { name = sakuya_cheat_b3_goods_output_add_liquor multiplier = var:sakuya_b3_goods_output_add_liquor } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_wine } } set_variable = { name = sakuya_b3_goods_output_add_wine value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_wine add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_wine add_modifier = { name = sakuya_cheat_b3_goods_output_add_wine multiplier = var:sakuya_b3_goods_output_add_wine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tea } } set_variable = { name = sakuya_b3_goods_output_add_tea value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tea add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_tea add_modifier = { name = sakuya_cheat_b3_goods_output_add_tea multiplier = var:sakuya_b3_goods_output_add_tea } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_coffee } } set_variable = { name = sakuya_b3_goods_output_add_coffee value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_coffee add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_coffee add_modifier = { name = sakuya_cheat_b3_goods_output_add_coffee multiplier = var:sakuya_b3_goods_output_add_coffee } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_sugar } } set_variable = { name = sakuya_b3_goods_output_add_sugar value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_sugar add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_sugar add_modifier = { name = sakuya_cheat_b3_goods_output_add_sugar multiplier = var:sakuya_b3_goods_output_add_sugar } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tobacco } } set_variable = { name = sakuya_b3_goods_output_add_tobacco value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tobacco add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_tobacco add_modifier = { name = sakuya_cheat_b3_goods_output_add_tobacco multiplier = var:sakuya_b3_goods_output_add_tobacco } }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_opium } } set_variable = { name = sakuya_b3_goods_output_add_opium value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_opium add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_opium add_modifier = { name = sakuya_cheat_b3_goods_output_add_opium multiplier = var:sakuya_b3_goods_output_add_opium } }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_automobiles } } set_variable = { name = sakuya_b3_goods_output_add_automobiles value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_automobiles add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_automobiles add_modifier = { name = sakuya_cheat_b3_goods_output_add_automobiles multiplier = var:sakuya_b3_goods_output_add_automobiles } }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_telephones } } set_variable = { name = sakuya_b3_goods_output_add_telephones value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_telephones add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_telephones add_modifier = { name = sakuya_cheat_b3_goods_output_add_telephones multiplier = var:sakuya_b3_goods_output_add_telephones } }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_radios } } set_variable = { name = sakuya_b3_goods_output_add_radios value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_radios add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_radios add_modifier = { name = sakuya_cheat_b3_goods_output_add_radios multiplier = var:sakuya_b3_goods_output_add_radios } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_luxury_clothes } } set_variable = { name = sakuya_b3_goods_output_add_luxury_clothes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_luxury_clothes add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_clothes add_modifier = { name = sakuya_cheat_b3_goods_output_add_luxury_clothes multiplier = var:sakuya_b3_goods_output_add_luxury_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_luxury_furniture } } set_variable = { name = sakuya_b3_goods_output_add_luxury_furniture value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_luxury_furniture add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_furniture add_modifier = { name = sakuya_cheat_b3_goods_output_add_luxury_furniture multiplier = var:sakuya_b3_goods_output_add_luxury_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fine_art } } set_variable = { name = sakuya_b3_goods_output_add_fine_art value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fine_art add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_fine_art add_modifier = { name = sakuya_cheat_b3_goods_output_add_fine_art multiplier = var:sakuya_b3_goods_output_add_fine_art } }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_gold } } set_variable = { name = sakuya_b3_goods_output_add_gold value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_gold add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_gold add_modifier = { name = sakuya_cheat_b3_goods_output_add_gold multiplier = var:sakuya_b3_goods_output_add_gold } }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_electricity } } set_variable = { name = sakuya_b3_goods_output_add_electricity value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_electricity add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_electricity add_modifier = { name = sakuya_cheat_b3_goods_output_add_electricity multiplier = var:sakuya_b3_goods_output_add_electricity } }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_transportation } } set_variable = { name = sakuya_b3_goods_output_add_transportation value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_transportation add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_transportation add_modifier = { name = sakuya_cheat_b3_goods_output_add_transportation multiplier = var:sakuya_b3_goods_output_add_transportation } }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_services } } set_variable = { name = sakuya_b3_goods_output_add_services value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_services add = 5 } remove_modifier = sakuya_cheat_b3_goods_output_add_services add_modifier = { name = sakuya_cheat_b3_goods_output_add_services multiplier = var:sakuya_b3_goods_output_add_services } }
    }
}

sakuya_b3_goods_selected_output_add_add_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_ammunition } } set_variable = { name = sakuya_b3_goods_output_add_ammunition value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_ammunition add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_ammunition add_modifier = { name = sakuya_cheat_b3_goods_output_add_ammunition multiplier = var:sakuya_b3_goods_output_add_ammunition } }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_small_arms } } set_variable = { name = sakuya_b3_goods_output_add_small_arms value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_small_arms add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_small_arms add_modifier = { name = sakuya_cheat_b3_goods_output_add_small_arms multiplier = var:sakuya_b3_goods_output_add_small_arms } }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_artillery } } set_variable = { name = sakuya_b3_goods_output_add_artillery value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_artillery add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_artillery add_modifier = { name = sakuya_cheat_b3_goods_output_add_artillery multiplier = var:sakuya_b3_goods_output_add_artillery } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tanks } } set_variable = { name = sakuya_b3_goods_output_add_tanks value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tanks add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_tanks add_modifier = { name = sakuya_cheat_b3_goods_output_add_tanks multiplier = var:sakuya_b3_goods_output_add_tanks } }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_aeroplanes } } set_variable = { name = sakuya_b3_goods_output_add_aeroplanes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_aeroplanes add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_aeroplanes add_modifier = { name = sakuya_cheat_b3_goods_output_add_aeroplanes multiplier = var:sakuya_b3_goods_output_add_aeroplanes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_manowars } } set_variable = { name = sakuya_b3_goods_output_add_manowars value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_manowars add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_manowars add_modifier = { name = sakuya_cheat_b3_goods_output_add_manowars multiplier = var:sakuya_b3_goods_output_add_manowars } }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_ironclads } } set_variable = { name = sakuya_b3_goods_output_add_ironclads value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_ironclads add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_ironclads add_modifier = { name = sakuya_cheat_b3_goods_output_add_ironclads multiplier = var:sakuya_b3_goods_output_add_ironclads } }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_grain } } set_variable = { name = sakuya_b3_goods_output_add_grain value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_grain add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_grain add_modifier = { name = sakuya_cheat_b3_goods_output_add_grain multiplier = var:sakuya_b3_goods_output_add_grain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fish } } set_variable = { name = sakuya_b3_goods_output_add_fish value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fish add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_fish add_modifier = { name = sakuya_cheat_b3_goods_output_add_fish multiplier = var:sakuya_b3_goods_output_add_fish } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fabric } } set_variable = { name = sakuya_b3_goods_output_add_fabric value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fabric add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_fabric add_modifier = { name = sakuya_cheat_b3_goods_output_add_fabric multiplier = var:sakuya_b3_goods_output_add_fabric } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_wood } } set_variable = { name = sakuya_b3_goods_output_add_wood value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_wood add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_wood add_modifier = { name = sakuya_cheat_b3_goods_output_add_wood multiplier = var:sakuya_b3_goods_output_add_wood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_groceries } } set_variable = { name = sakuya_b3_goods_output_add_groceries value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_groceries add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_groceries add_modifier = { name = sakuya_cheat_b3_goods_output_add_groceries multiplier = var:sakuya_b3_goods_output_add_groceries } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_clothes } } set_variable = { name = sakuya_b3_goods_output_add_clothes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_clothes add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_clothes add_modifier = { name = sakuya_cheat_b3_goods_output_add_clothes multiplier = var:sakuya_b3_goods_output_add_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_furniture } } set_variable = { name = sakuya_b3_goods_output_add_furniture value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_furniture add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_furniture add_modifier = { name = sakuya_cheat_b3_goods_output_add_furniture multiplier = var:sakuya_b3_goods_output_add_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_paper } } set_variable = { name = sakuya_b3_goods_output_add_paper value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_paper add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_paper add_modifier = { name = sakuya_cheat_b3_goods_output_add_paper multiplier = var:sakuya_b3_goods_output_add_paper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_merchant_marine } } set_variable = { name = sakuya_b3_goods_output_add_merchant_marine value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_merchant_marine add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_merchant_marine add_modifier = { name = sakuya_cheat_b3_goods_output_add_merchant_marine multiplier = var:sakuya_b3_goods_output_add_merchant_marine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_clippers } } set_variable = { name = sakuya_b3_goods_output_add_clippers value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_clippers add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_clippers add_modifier = { name = sakuya_cheat_b3_goods_output_add_clippers multiplier = var:sakuya_b3_goods_output_add_clippers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_steamers } } set_variable = { name = sakuya_b3_goods_output_add_steamers value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_steamers add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_steamers add_modifier = { name = sakuya_cheat_b3_goods_output_add_steamers multiplier = var:sakuya_b3_goods_output_add_steamers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_silk } } set_variable = { name = sakuya_b3_goods_output_add_silk value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_silk add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_silk add_modifier = { name = sakuya_cheat_b3_goods_output_add_silk multiplier = var:sakuya_b3_goods_output_add_silk } }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_dye } } set_variable = { name = sakuya_b3_goods_output_add_dye value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_dye add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_dye add_modifier = { name = sakuya_cheat_b3_goods_output_add_dye multiplier = var:sakuya_b3_goods_output_add_dye } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_sulfur } } set_variable = { name = sakuya_b3_goods_output_add_sulfur value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_sulfur add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_sulfur add_modifier = { name = sakuya_cheat_b3_goods_output_add_sulfur multiplier = var:sakuya_b3_goods_output_add_sulfur } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_coal } } set_variable = { name = sakuya_b3_goods_output_add_coal value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_coal add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_coal add_modifier = { name = sakuya_cheat_b3_goods_output_add_coal multiplier = var:sakuya_b3_goods_output_add_coal } }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_iron } } set_variable = { name = sakuya_b3_goods_output_add_iron value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_iron add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_iron add_modifier = { name = sakuya_cheat_b3_goods_output_add_iron multiplier = var:sakuya_b3_goods_output_add_iron } }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_lead } } set_variable = { name = sakuya_b3_goods_output_add_lead value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_lead add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_lead add_modifier = { name = sakuya_cheat_b3_goods_output_add_lead multiplier = var:sakuya_b3_goods_output_add_lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_copper } } set_variable = { name = sakuya_b3_goods_output_add_copper value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_copper add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_copper add_modifier = { name = sakuya_cheat_b3_goods_output_add_copper multiplier = var:sakuya_b3_goods_output_add_copper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_hardwood } } set_variable = { name = sakuya_b3_goods_output_add_hardwood value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_hardwood add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_hardwood add_modifier = { name = sakuya_cheat_b3_goods_output_add_hardwood multiplier = var:sakuya_b3_goods_output_add_hardwood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_rubber } } set_variable = { name = sakuya_b3_goods_output_add_rubber value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_rubber add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_rubber add_modifier = { name = sakuya_cheat_b3_goods_output_add_rubber multiplier = var:sakuya_b3_goods_output_add_rubber } }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_oil } } set_variable = { name = sakuya_b3_goods_output_add_oil value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_oil add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_oil add_modifier = { name = sakuya_cheat_b3_goods_output_add_oil multiplier = var:sakuya_b3_goods_output_add_oil } }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_engines } } set_variable = { name = sakuya_b3_goods_output_add_engines value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_engines add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_engines add_modifier = { name = sakuya_cheat_b3_goods_output_add_engines multiplier = var:sakuya_b3_goods_output_add_engines } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_steel } } set_variable = { name = sakuya_b3_goods_output_add_steel value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_steel add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_steel add_modifier = { name = sakuya_cheat_b3_goods_output_add_steel multiplier = var:sakuya_b3_goods_output_add_steel } }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_glass } } set_variable = { name = sakuya_b3_goods_output_add_glass value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_glass add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_glass add_modifier = { name = sakuya_cheat_b3_goods_output_add_glass multiplier = var:sakuya_b3_goods_output_add_glass } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fertilizer } } set_variable = { name = sakuya_b3_goods_output_add_fertilizer value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fertilizer add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_fertilizer add_modifier = { name = sakuya_cheat_b3_goods_output_add_fertilizer multiplier = var:sakuya_b3_goods_output_add_fertilizer } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tools } } set_variable = { name = sakuya_b3_goods_output_add_tools value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tools add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_tools add_modifier = { name = sakuya_cheat_b3_goods_output_add_tools multiplier = var:sakuya_b3_goods_output_add_tools } }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_explosives } } set_variable = { name = sakuya_b3_goods_output_add_explosives value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_explosives add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_explosives add_modifier = { name = sakuya_cheat_b3_goods_output_add_explosives multiplier = var:sakuya_b3_goods_output_add_explosives } }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_porcelain } } set_variable = { name = sakuya_b3_goods_output_add_porcelain value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_porcelain add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_porcelain add_modifier = { name = sakuya_cheat_b3_goods_output_add_porcelain multiplier = var:sakuya_b3_goods_output_add_porcelain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_meat } } set_variable = { name = sakuya_b3_goods_output_add_meat value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_meat add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_meat add_modifier = { name = sakuya_cheat_b3_goods_output_add_meat multiplier = var:sakuya_b3_goods_output_add_meat } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fruit } } set_variable = { name = sakuya_b3_goods_output_add_fruit value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fruit add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_fruit add_modifier = { name = sakuya_cheat_b3_goods_output_add_fruit multiplier = var:sakuya_b3_goods_output_add_fruit } }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_liquor } } set_variable = { name = sakuya_b3_goods_output_add_liquor value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_liquor add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_liquor add_modifier = { name = sakuya_cheat_b3_goods_output_add_liquor multiplier = var:sakuya_b3_goods_output_add_liquor } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_wine } } set_variable = { name = sakuya_b3_goods_output_add_wine value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_wine add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_wine add_modifier = { name = sakuya_cheat_b3_goods_output_add_wine multiplier = var:sakuya_b3_goods_output_add_wine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tea } } set_variable = { name = sakuya_b3_goods_output_add_tea value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tea add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_tea add_modifier = { name = sakuya_cheat_b3_goods_output_add_tea multiplier = var:sakuya_b3_goods_output_add_tea } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_coffee } } set_variable = { name = sakuya_b3_goods_output_add_coffee value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_coffee add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_coffee add_modifier = { name = sakuya_cheat_b3_goods_output_add_coffee multiplier = var:sakuya_b3_goods_output_add_coffee } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_sugar } } set_variable = { name = sakuya_b3_goods_output_add_sugar value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_sugar add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_sugar add_modifier = { name = sakuya_cheat_b3_goods_output_add_sugar multiplier = var:sakuya_b3_goods_output_add_sugar } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tobacco } } set_variable = { name = sakuya_b3_goods_output_add_tobacco value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tobacco add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_tobacco add_modifier = { name = sakuya_cheat_b3_goods_output_add_tobacco multiplier = var:sakuya_b3_goods_output_add_tobacco } }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_opium } } set_variable = { name = sakuya_b3_goods_output_add_opium value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_opium add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_opium add_modifier = { name = sakuya_cheat_b3_goods_output_add_opium multiplier = var:sakuya_b3_goods_output_add_opium } }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_automobiles } } set_variable = { name = sakuya_b3_goods_output_add_automobiles value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_automobiles add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_automobiles add_modifier = { name = sakuya_cheat_b3_goods_output_add_automobiles multiplier = var:sakuya_b3_goods_output_add_automobiles } }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_telephones } } set_variable = { name = sakuya_b3_goods_output_add_telephones value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_telephones add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_telephones add_modifier = { name = sakuya_cheat_b3_goods_output_add_telephones multiplier = var:sakuya_b3_goods_output_add_telephones } }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_radios } } set_variable = { name = sakuya_b3_goods_output_add_radios value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_radios add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_radios add_modifier = { name = sakuya_cheat_b3_goods_output_add_radios multiplier = var:sakuya_b3_goods_output_add_radios } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_luxury_clothes } } set_variable = { name = sakuya_b3_goods_output_add_luxury_clothes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_luxury_clothes add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_clothes add_modifier = { name = sakuya_cheat_b3_goods_output_add_luxury_clothes multiplier = var:sakuya_b3_goods_output_add_luxury_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_luxury_furniture } } set_variable = { name = sakuya_b3_goods_output_add_luxury_furniture value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_luxury_furniture add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_furniture add_modifier = { name = sakuya_cheat_b3_goods_output_add_luxury_furniture multiplier = var:sakuya_b3_goods_output_add_luxury_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fine_art } } set_variable = { name = sakuya_b3_goods_output_add_fine_art value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fine_art add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_fine_art add_modifier = { name = sakuya_cheat_b3_goods_output_add_fine_art multiplier = var:sakuya_b3_goods_output_add_fine_art } }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_gold } } set_variable = { name = sakuya_b3_goods_output_add_gold value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_gold add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_gold add_modifier = { name = sakuya_cheat_b3_goods_output_add_gold multiplier = var:sakuya_b3_goods_output_add_gold } }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_electricity } } set_variable = { name = sakuya_b3_goods_output_add_electricity value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_electricity add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_electricity add_modifier = { name = sakuya_cheat_b3_goods_output_add_electricity multiplier = var:sakuya_b3_goods_output_add_electricity } }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_transportation } } set_variable = { name = sakuya_b3_goods_output_add_transportation value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_transportation add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_transportation add_modifier = { name = sakuya_cheat_b3_goods_output_add_transportation multiplier = var:sakuya_b3_goods_output_add_transportation } }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_services } } set_variable = { name = sakuya_b3_goods_output_add_services value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_services add = 100 } remove_modifier = sakuya_cheat_b3_goods_output_add_services add_modifier = { name = sakuya_cheat_b3_goods_output_add_services multiplier = var:sakuya_b3_goods_output_add_services } }
    }
}

sakuya_b3_goods_selected_output_add_add_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_ammunition } } set_variable = { name = sakuya_b3_goods_output_add_ammunition value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_ammunition add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_ammunition add_modifier = { name = sakuya_cheat_b3_goods_output_add_ammunition multiplier = var:sakuya_b3_goods_output_add_ammunition } }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_small_arms } } set_variable = { name = sakuya_b3_goods_output_add_small_arms value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_small_arms add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_small_arms add_modifier = { name = sakuya_cheat_b3_goods_output_add_small_arms multiplier = var:sakuya_b3_goods_output_add_small_arms } }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_artillery } } set_variable = { name = sakuya_b3_goods_output_add_artillery value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_artillery add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_artillery add_modifier = { name = sakuya_cheat_b3_goods_output_add_artillery multiplier = var:sakuya_b3_goods_output_add_artillery } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tanks } } set_variable = { name = sakuya_b3_goods_output_add_tanks value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tanks add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_tanks add_modifier = { name = sakuya_cheat_b3_goods_output_add_tanks multiplier = var:sakuya_b3_goods_output_add_tanks } }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_aeroplanes } } set_variable = { name = sakuya_b3_goods_output_add_aeroplanes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_aeroplanes add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_aeroplanes add_modifier = { name = sakuya_cheat_b3_goods_output_add_aeroplanes multiplier = var:sakuya_b3_goods_output_add_aeroplanes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_manowars } } set_variable = { name = sakuya_b3_goods_output_add_manowars value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_manowars add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_manowars add_modifier = { name = sakuya_cheat_b3_goods_output_add_manowars multiplier = var:sakuya_b3_goods_output_add_manowars } }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_ironclads } } set_variable = { name = sakuya_b3_goods_output_add_ironclads value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_ironclads add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_ironclads add_modifier = { name = sakuya_cheat_b3_goods_output_add_ironclads multiplier = var:sakuya_b3_goods_output_add_ironclads } }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_grain } } set_variable = { name = sakuya_b3_goods_output_add_grain value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_grain add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_grain add_modifier = { name = sakuya_cheat_b3_goods_output_add_grain multiplier = var:sakuya_b3_goods_output_add_grain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fish } } set_variable = { name = sakuya_b3_goods_output_add_fish value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fish add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_fish add_modifier = { name = sakuya_cheat_b3_goods_output_add_fish multiplier = var:sakuya_b3_goods_output_add_fish } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fabric } } set_variable = { name = sakuya_b3_goods_output_add_fabric value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fabric add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_fabric add_modifier = { name = sakuya_cheat_b3_goods_output_add_fabric multiplier = var:sakuya_b3_goods_output_add_fabric } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_wood } } set_variable = { name = sakuya_b3_goods_output_add_wood value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_wood add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_wood add_modifier = { name = sakuya_cheat_b3_goods_output_add_wood multiplier = var:sakuya_b3_goods_output_add_wood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_groceries } } set_variable = { name = sakuya_b3_goods_output_add_groceries value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_groceries add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_groceries add_modifier = { name = sakuya_cheat_b3_goods_output_add_groceries multiplier = var:sakuya_b3_goods_output_add_groceries } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_clothes } } set_variable = { name = sakuya_b3_goods_output_add_clothes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_clothes add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_clothes add_modifier = { name = sakuya_cheat_b3_goods_output_add_clothes multiplier = var:sakuya_b3_goods_output_add_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_furniture } } set_variable = { name = sakuya_b3_goods_output_add_furniture value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_furniture add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_furniture add_modifier = { name = sakuya_cheat_b3_goods_output_add_furniture multiplier = var:sakuya_b3_goods_output_add_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_paper } } set_variable = { name = sakuya_b3_goods_output_add_paper value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_paper add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_paper add_modifier = { name = sakuya_cheat_b3_goods_output_add_paper multiplier = var:sakuya_b3_goods_output_add_paper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_merchant_marine } } set_variable = { name = sakuya_b3_goods_output_add_merchant_marine value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_merchant_marine add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_merchant_marine add_modifier = { name = sakuya_cheat_b3_goods_output_add_merchant_marine multiplier = var:sakuya_b3_goods_output_add_merchant_marine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_clippers } } set_variable = { name = sakuya_b3_goods_output_add_clippers value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_clippers add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_clippers add_modifier = { name = sakuya_cheat_b3_goods_output_add_clippers multiplier = var:sakuya_b3_goods_output_add_clippers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_steamers } } set_variable = { name = sakuya_b3_goods_output_add_steamers value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_steamers add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_steamers add_modifier = { name = sakuya_cheat_b3_goods_output_add_steamers multiplier = var:sakuya_b3_goods_output_add_steamers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_silk } } set_variable = { name = sakuya_b3_goods_output_add_silk value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_silk add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_silk add_modifier = { name = sakuya_cheat_b3_goods_output_add_silk multiplier = var:sakuya_b3_goods_output_add_silk } }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_dye } } set_variable = { name = sakuya_b3_goods_output_add_dye value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_dye add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_dye add_modifier = { name = sakuya_cheat_b3_goods_output_add_dye multiplier = var:sakuya_b3_goods_output_add_dye } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_sulfur } } set_variable = { name = sakuya_b3_goods_output_add_sulfur value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_sulfur add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_sulfur add_modifier = { name = sakuya_cheat_b3_goods_output_add_sulfur multiplier = var:sakuya_b3_goods_output_add_sulfur } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_coal } } set_variable = { name = sakuya_b3_goods_output_add_coal value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_coal add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_coal add_modifier = { name = sakuya_cheat_b3_goods_output_add_coal multiplier = var:sakuya_b3_goods_output_add_coal } }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_iron } } set_variable = { name = sakuya_b3_goods_output_add_iron value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_iron add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_iron add_modifier = { name = sakuya_cheat_b3_goods_output_add_iron multiplier = var:sakuya_b3_goods_output_add_iron } }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_lead } } set_variable = { name = sakuya_b3_goods_output_add_lead value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_lead add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_lead add_modifier = { name = sakuya_cheat_b3_goods_output_add_lead multiplier = var:sakuya_b3_goods_output_add_lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_copper } } set_variable = { name = sakuya_b3_goods_output_add_copper value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_copper add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_copper add_modifier = { name = sakuya_cheat_b3_goods_output_add_copper multiplier = var:sakuya_b3_goods_output_add_copper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_hardwood } } set_variable = { name = sakuya_b3_goods_output_add_hardwood value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_hardwood add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_hardwood add_modifier = { name = sakuya_cheat_b3_goods_output_add_hardwood multiplier = var:sakuya_b3_goods_output_add_hardwood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_rubber } } set_variable = { name = sakuya_b3_goods_output_add_rubber value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_rubber add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_rubber add_modifier = { name = sakuya_cheat_b3_goods_output_add_rubber multiplier = var:sakuya_b3_goods_output_add_rubber } }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_oil } } set_variable = { name = sakuya_b3_goods_output_add_oil value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_oil add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_oil add_modifier = { name = sakuya_cheat_b3_goods_output_add_oil multiplier = var:sakuya_b3_goods_output_add_oil } }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_engines } } set_variable = { name = sakuya_b3_goods_output_add_engines value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_engines add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_engines add_modifier = { name = sakuya_cheat_b3_goods_output_add_engines multiplier = var:sakuya_b3_goods_output_add_engines } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_steel } } set_variable = { name = sakuya_b3_goods_output_add_steel value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_steel add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_steel add_modifier = { name = sakuya_cheat_b3_goods_output_add_steel multiplier = var:sakuya_b3_goods_output_add_steel } }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_glass } } set_variable = { name = sakuya_b3_goods_output_add_glass value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_glass add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_glass add_modifier = { name = sakuya_cheat_b3_goods_output_add_glass multiplier = var:sakuya_b3_goods_output_add_glass } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fertilizer } } set_variable = { name = sakuya_b3_goods_output_add_fertilizer value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fertilizer add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_fertilizer add_modifier = { name = sakuya_cheat_b3_goods_output_add_fertilizer multiplier = var:sakuya_b3_goods_output_add_fertilizer } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tools } } set_variable = { name = sakuya_b3_goods_output_add_tools value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tools add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_tools add_modifier = { name = sakuya_cheat_b3_goods_output_add_tools multiplier = var:sakuya_b3_goods_output_add_tools } }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_explosives } } set_variable = { name = sakuya_b3_goods_output_add_explosives value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_explosives add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_explosives add_modifier = { name = sakuya_cheat_b3_goods_output_add_explosives multiplier = var:sakuya_b3_goods_output_add_explosives } }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_porcelain } } set_variable = { name = sakuya_b3_goods_output_add_porcelain value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_porcelain add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_porcelain add_modifier = { name = sakuya_cheat_b3_goods_output_add_porcelain multiplier = var:sakuya_b3_goods_output_add_porcelain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_meat } } set_variable = { name = sakuya_b3_goods_output_add_meat value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_meat add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_meat add_modifier = { name = sakuya_cheat_b3_goods_output_add_meat multiplier = var:sakuya_b3_goods_output_add_meat } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fruit } } set_variable = { name = sakuya_b3_goods_output_add_fruit value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fruit add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_fruit add_modifier = { name = sakuya_cheat_b3_goods_output_add_fruit multiplier = var:sakuya_b3_goods_output_add_fruit } }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_liquor } } set_variable = { name = sakuya_b3_goods_output_add_liquor value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_liquor add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_liquor add_modifier = { name = sakuya_cheat_b3_goods_output_add_liquor multiplier = var:sakuya_b3_goods_output_add_liquor } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_wine } } set_variable = { name = sakuya_b3_goods_output_add_wine value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_wine add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_wine add_modifier = { name = sakuya_cheat_b3_goods_output_add_wine multiplier = var:sakuya_b3_goods_output_add_wine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tea } } set_variable = { name = sakuya_b3_goods_output_add_tea value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tea add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_tea add_modifier = { name = sakuya_cheat_b3_goods_output_add_tea multiplier = var:sakuya_b3_goods_output_add_tea } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_coffee } } set_variable = { name = sakuya_b3_goods_output_add_coffee value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_coffee add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_coffee add_modifier = { name = sakuya_cheat_b3_goods_output_add_coffee multiplier = var:sakuya_b3_goods_output_add_coffee } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_sugar } } set_variable = { name = sakuya_b3_goods_output_add_sugar value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_sugar add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_sugar add_modifier = { name = sakuya_cheat_b3_goods_output_add_sugar multiplier = var:sakuya_b3_goods_output_add_sugar } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tobacco } } set_variable = { name = sakuya_b3_goods_output_add_tobacco value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tobacco add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_tobacco add_modifier = { name = sakuya_cheat_b3_goods_output_add_tobacco multiplier = var:sakuya_b3_goods_output_add_tobacco } }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_opium } } set_variable = { name = sakuya_b3_goods_output_add_opium value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_opium add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_opium add_modifier = { name = sakuya_cheat_b3_goods_output_add_opium multiplier = var:sakuya_b3_goods_output_add_opium } }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_automobiles } } set_variable = { name = sakuya_b3_goods_output_add_automobiles value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_automobiles add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_automobiles add_modifier = { name = sakuya_cheat_b3_goods_output_add_automobiles multiplier = var:sakuya_b3_goods_output_add_automobiles } }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_telephones } } set_variable = { name = sakuya_b3_goods_output_add_telephones value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_telephones add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_telephones add_modifier = { name = sakuya_cheat_b3_goods_output_add_telephones multiplier = var:sakuya_b3_goods_output_add_telephones } }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_radios } } set_variable = { name = sakuya_b3_goods_output_add_radios value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_radios add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_radios add_modifier = { name = sakuya_cheat_b3_goods_output_add_radios multiplier = var:sakuya_b3_goods_output_add_radios } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_luxury_clothes } } set_variable = { name = sakuya_b3_goods_output_add_luxury_clothes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_luxury_clothes add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_clothes add_modifier = { name = sakuya_cheat_b3_goods_output_add_luxury_clothes multiplier = var:sakuya_b3_goods_output_add_luxury_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_luxury_furniture } } set_variable = { name = sakuya_b3_goods_output_add_luxury_furniture value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_luxury_furniture add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_furniture add_modifier = { name = sakuya_cheat_b3_goods_output_add_luxury_furniture multiplier = var:sakuya_b3_goods_output_add_luxury_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fine_art } } set_variable = { name = sakuya_b3_goods_output_add_fine_art value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fine_art add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_fine_art add_modifier = { name = sakuya_cheat_b3_goods_output_add_fine_art multiplier = var:sakuya_b3_goods_output_add_fine_art } }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_gold } } set_variable = { name = sakuya_b3_goods_output_add_gold value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_gold add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_gold add_modifier = { name = sakuya_cheat_b3_goods_output_add_gold multiplier = var:sakuya_b3_goods_output_add_gold } }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_electricity } } set_variable = { name = sakuya_b3_goods_output_add_electricity value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_electricity add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_electricity add_modifier = { name = sakuya_cheat_b3_goods_output_add_electricity multiplier = var:sakuya_b3_goods_output_add_electricity } }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_transportation } } set_variable = { name = sakuya_b3_goods_output_add_transportation value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_transportation add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_transportation add_modifier = { name = sakuya_cheat_b3_goods_output_add_transportation multiplier = var:sakuya_b3_goods_output_add_transportation } }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_services } } set_variable = { name = sakuya_b3_goods_output_add_services value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_services add = 1 } remove_modifier = sakuya_cheat_b3_goods_output_add_services add_modifier = { name = sakuya_cheat_b3_goods_output_add_services multiplier = var:sakuya_b3_goods_output_add_services } }
    }
}

sakuya_b3_goods_selected_output_add_add_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_ammunition } } set_variable = { name = sakuya_b3_goods_output_add_ammunition value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_ammunition add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_ammunition add_modifier = { name = sakuya_cheat_b3_goods_output_add_ammunition multiplier = var:sakuya_b3_goods_output_add_ammunition } }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_small_arms } } set_variable = { name = sakuya_b3_goods_output_add_small_arms value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_small_arms add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_small_arms add_modifier = { name = sakuya_cheat_b3_goods_output_add_small_arms multiplier = var:sakuya_b3_goods_output_add_small_arms } }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_artillery } } set_variable = { name = sakuya_b3_goods_output_add_artillery value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_artillery add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_artillery add_modifier = { name = sakuya_cheat_b3_goods_output_add_artillery multiplier = var:sakuya_b3_goods_output_add_artillery } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tanks } } set_variable = { name = sakuya_b3_goods_output_add_tanks value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tanks add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_tanks add_modifier = { name = sakuya_cheat_b3_goods_output_add_tanks multiplier = var:sakuya_b3_goods_output_add_tanks } }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_aeroplanes } } set_variable = { name = sakuya_b3_goods_output_add_aeroplanes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_aeroplanes add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_aeroplanes add_modifier = { name = sakuya_cheat_b3_goods_output_add_aeroplanes multiplier = var:sakuya_b3_goods_output_add_aeroplanes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_manowars } } set_variable = { name = sakuya_b3_goods_output_add_manowars value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_manowars add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_manowars add_modifier = { name = sakuya_cheat_b3_goods_output_add_manowars multiplier = var:sakuya_b3_goods_output_add_manowars } }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_ironclads } } set_variable = { name = sakuya_b3_goods_output_add_ironclads value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_ironclads add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_ironclads add_modifier = { name = sakuya_cheat_b3_goods_output_add_ironclads multiplier = var:sakuya_b3_goods_output_add_ironclads } }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_grain } } set_variable = { name = sakuya_b3_goods_output_add_grain value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_grain add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_grain add_modifier = { name = sakuya_cheat_b3_goods_output_add_grain multiplier = var:sakuya_b3_goods_output_add_grain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fish } } set_variable = { name = sakuya_b3_goods_output_add_fish value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fish add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_fish add_modifier = { name = sakuya_cheat_b3_goods_output_add_fish multiplier = var:sakuya_b3_goods_output_add_fish } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fabric } } set_variable = { name = sakuya_b3_goods_output_add_fabric value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fabric add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_fabric add_modifier = { name = sakuya_cheat_b3_goods_output_add_fabric multiplier = var:sakuya_b3_goods_output_add_fabric } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_wood } } set_variable = { name = sakuya_b3_goods_output_add_wood value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_wood add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_wood add_modifier = { name = sakuya_cheat_b3_goods_output_add_wood multiplier = var:sakuya_b3_goods_output_add_wood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_groceries } } set_variable = { name = sakuya_b3_goods_output_add_groceries value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_groceries add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_groceries add_modifier = { name = sakuya_cheat_b3_goods_output_add_groceries multiplier = var:sakuya_b3_goods_output_add_groceries } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_clothes } } set_variable = { name = sakuya_b3_goods_output_add_clothes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_clothes add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_clothes add_modifier = { name = sakuya_cheat_b3_goods_output_add_clothes multiplier = var:sakuya_b3_goods_output_add_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_furniture } } set_variable = { name = sakuya_b3_goods_output_add_furniture value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_furniture add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_furniture add_modifier = { name = sakuya_cheat_b3_goods_output_add_furniture multiplier = var:sakuya_b3_goods_output_add_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_paper } } set_variable = { name = sakuya_b3_goods_output_add_paper value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_paper add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_paper add_modifier = { name = sakuya_cheat_b3_goods_output_add_paper multiplier = var:sakuya_b3_goods_output_add_paper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_merchant_marine } } set_variable = { name = sakuya_b3_goods_output_add_merchant_marine value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_merchant_marine add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_merchant_marine add_modifier = { name = sakuya_cheat_b3_goods_output_add_merchant_marine multiplier = var:sakuya_b3_goods_output_add_merchant_marine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_clippers } } set_variable = { name = sakuya_b3_goods_output_add_clippers value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_clippers add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_clippers add_modifier = { name = sakuya_cheat_b3_goods_output_add_clippers multiplier = var:sakuya_b3_goods_output_add_clippers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_steamers } } set_variable = { name = sakuya_b3_goods_output_add_steamers value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_steamers add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_steamers add_modifier = { name = sakuya_cheat_b3_goods_output_add_steamers multiplier = var:sakuya_b3_goods_output_add_steamers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_silk } } set_variable = { name = sakuya_b3_goods_output_add_silk value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_silk add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_silk add_modifier = { name = sakuya_cheat_b3_goods_output_add_silk multiplier = var:sakuya_b3_goods_output_add_silk } }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_dye } } set_variable = { name = sakuya_b3_goods_output_add_dye value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_dye add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_dye add_modifier = { name = sakuya_cheat_b3_goods_output_add_dye multiplier = var:sakuya_b3_goods_output_add_dye } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_sulfur } } set_variable = { name = sakuya_b3_goods_output_add_sulfur value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_sulfur add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_sulfur add_modifier = { name = sakuya_cheat_b3_goods_output_add_sulfur multiplier = var:sakuya_b3_goods_output_add_sulfur } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_coal } } set_variable = { name = sakuya_b3_goods_output_add_coal value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_coal add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_coal add_modifier = { name = sakuya_cheat_b3_goods_output_add_coal multiplier = var:sakuya_b3_goods_output_add_coal } }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_iron } } set_variable = { name = sakuya_b3_goods_output_add_iron value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_iron add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_iron add_modifier = { name = sakuya_cheat_b3_goods_output_add_iron multiplier = var:sakuya_b3_goods_output_add_iron } }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_lead } } set_variable = { name = sakuya_b3_goods_output_add_lead value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_lead add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_lead add_modifier = { name = sakuya_cheat_b3_goods_output_add_lead multiplier = var:sakuya_b3_goods_output_add_lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_copper } } set_variable = { name = sakuya_b3_goods_output_add_copper value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_copper add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_copper add_modifier = { name = sakuya_cheat_b3_goods_output_add_copper multiplier = var:sakuya_b3_goods_output_add_copper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_hardwood } } set_variable = { name = sakuya_b3_goods_output_add_hardwood value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_hardwood add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_hardwood add_modifier = { name = sakuya_cheat_b3_goods_output_add_hardwood multiplier = var:sakuya_b3_goods_output_add_hardwood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_rubber } } set_variable = { name = sakuya_b3_goods_output_add_rubber value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_rubber add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_rubber add_modifier = { name = sakuya_cheat_b3_goods_output_add_rubber multiplier = var:sakuya_b3_goods_output_add_rubber } }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_oil } } set_variable = { name = sakuya_b3_goods_output_add_oil value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_oil add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_oil add_modifier = { name = sakuya_cheat_b3_goods_output_add_oil multiplier = var:sakuya_b3_goods_output_add_oil } }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_engines } } set_variable = { name = sakuya_b3_goods_output_add_engines value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_engines add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_engines add_modifier = { name = sakuya_cheat_b3_goods_output_add_engines multiplier = var:sakuya_b3_goods_output_add_engines } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_steel } } set_variable = { name = sakuya_b3_goods_output_add_steel value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_steel add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_steel add_modifier = { name = sakuya_cheat_b3_goods_output_add_steel multiplier = var:sakuya_b3_goods_output_add_steel } }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_glass } } set_variable = { name = sakuya_b3_goods_output_add_glass value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_glass add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_glass add_modifier = { name = sakuya_cheat_b3_goods_output_add_glass multiplier = var:sakuya_b3_goods_output_add_glass } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fertilizer } } set_variable = { name = sakuya_b3_goods_output_add_fertilizer value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fertilizer add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_fertilizer add_modifier = { name = sakuya_cheat_b3_goods_output_add_fertilizer multiplier = var:sakuya_b3_goods_output_add_fertilizer } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tools } } set_variable = { name = sakuya_b3_goods_output_add_tools value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tools add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_tools add_modifier = { name = sakuya_cheat_b3_goods_output_add_tools multiplier = var:sakuya_b3_goods_output_add_tools } }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_explosives } } set_variable = { name = sakuya_b3_goods_output_add_explosives value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_explosives add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_explosives add_modifier = { name = sakuya_cheat_b3_goods_output_add_explosives multiplier = var:sakuya_b3_goods_output_add_explosives } }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_porcelain } } set_variable = { name = sakuya_b3_goods_output_add_porcelain value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_porcelain add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_porcelain add_modifier = { name = sakuya_cheat_b3_goods_output_add_porcelain multiplier = var:sakuya_b3_goods_output_add_porcelain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_meat } } set_variable = { name = sakuya_b3_goods_output_add_meat value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_meat add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_meat add_modifier = { name = sakuya_cheat_b3_goods_output_add_meat multiplier = var:sakuya_b3_goods_output_add_meat } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fruit } } set_variable = { name = sakuya_b3_goods_output_add_fruit value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fruit add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_fruit add_modifier = { name = sakuya_cheat_b3_goods_output_add_fruit multiplier = var:sakuya_b3_goods_output_add_fruit } }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_liquor } } set_variable = { name = sakuya_b3_goods_output_add_liquor value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_liquor add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_liquor add_modifier = { name = sakuya_cheat_b3_goods_output_add_liquor multiplier = var:sakuya_b3_goods_output_add_liquor } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_wine } } set_variable = { name = sakuya_b3_goods_output_add_wine value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_wine add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_wine add_modifier = { name = sakuya_cheat_b3_goods_output_add_wine multiplier = var:sakuya_b3_goods_output_add_wine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tea } } set_variable = { name = sakuya_b3_goods_output_add_tea value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tea add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_tea add_modifier = { name = sakuya_cheat_b3_goods_output_add_tea multiplier = var:sakuya_b3_goods_output_add_tea } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_coffee } } set_variable = { name = sakuya_b3_goods_output_add_coffee value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_coffee add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_coffee add_modifier = { name = sakuya_cheat_b3_goods_output_add_coffee multiplier = var:sakuya_b3_goods_output_add_coffee } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_sugar } } set_variable = { name = sakuya_b3_goods_output_add_sugar value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_sugar add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_sugar add_modifier = { name = sakuya_cheat_b3_goods_output_add_sugar multiplier = var:sakuya_b3_goods_output_add_sugar } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_tobacco } } set_variable = { name = sakuya_b3_goods_output_add_tobacco value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_tobacco add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_tobacco add_modifier = { name = sakuya_cheat_b3_goods_output_add_tobacco multiplier = var:sakuya_b3_goods_output_add_tobacco } }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_opium } } set_variable = { name = sakuya_b3_goods_output_add_opium value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_opium add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_opium add_modifier = { name = sakuya_cheat_b3_goods_output_add_opium multiplier = var:sakuya_b3_goods_output_add_opium } }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_automobiles } } set_variable = { name = sakuya_b3_goods_output_add_automobiles value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_automobiles add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_automobiles add_modifier = { name = sakuya_cheat_b3_goods_output_add_automobiles multiplier = var:sakuya_b3_goods_output_add_automobiles } }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_telephones } } set_variable = { name = sakuya_b3_goods_output_add_telephones value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_telephones add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_telephones add_modifier = { name = sakuya_cheat_b3_goods_output_add_telephones multiplier = var:sakuya_b3_goods_output_add_telephones } }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_radios } } set_variable = { name = sakuya_b3_goods_output_add_radios value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_radios add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_radios add_modifier = { name = sakuya_cheat_b3_goods_output_add_radios multiplier = var:sakuya_b3_goods_output_add_radios } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_luxury_clothes } } set_variable = { name = sakuya_b3_goods_output_add_luxury_clothes value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_luxury_clothes add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_clothes add_modifier = { name = sakuya_cheat_b3_goods_output_add_luxury_clothes multiplier = var:sakuya_b3_goods_output_add_luxury_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_luxury_furniture } } set_variable = { name = sakuya_b3_goods_output_add_luxury_furniture value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_luxury_furniture add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_furniture add_modifier = { name = sakuya_cheat_b3_goods_output_add_luxury_furniture multiplier = var:sakuya_b3_goods_output_add_luxury_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_fine_art } } set_variable = { name = sakuya_b3_goods_output_add_fine_art value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_fine_art add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_fine_art add_modifier = { name = sakuya_cheat_b3_goods_output_add_fine_art multiplier = var:sakuya_b3_goods_output_add_fine_art } }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_gold } } set_variable = { name = sakuya_b3_goods_output_add_gold value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_gold add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_gold add_modifier = { name = sakuya_cheat_b3_goods_output_add_gold multiplier = var:sakuya_b3_goods_output_add_gold } }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_electricity } } set_variable = { name = sakuya_b3_goods_output_add_electricity value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_electricity add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_electricity add_modifier = { name = sakuya_cheat_b3_goods_output_add_electricity multiplier = var:sakuya_b3_goods_output_add_electricity } }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_transportation } } set_variable = { name = sakuya_b3_goods_output_add_transportation value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_transportation add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_transportation add_modifier = { name = sakuya_cheat_b3_goods_output_add_transportation multiplier = var:sakuya_b3_goods_output_add_transportation } }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } if = { limit = { NOT = { has_variable = sakuya_b3_goods_output_add_services } } set_variable = { name = sakuya_b3_goods_output_add_services value = 0 } } change_variable = { name = sakuya_b3_goods_output_add_services add = 20 } remove_modifier = sakuya_cheat_b3_goods_output_add_services add_modifier = { name = sakuya_cheat_b3_goods_output_add_services multiplier = var:sakuya_b3_goods_output_add_services } }
    }
}

sakuya_b3_goods_selected_output_add_clear_current = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } remove_modifier = sakuya_cheat_b3_goods_output_add_ammunition remove_variable = sakuya_b3_goods_output_add_ammunition }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } remove_modifier = sakuya_cheat_b3_goods_output_add_small_arms remove_variable = sakuya_b3_goods_output_add_small_arms }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } remove_modifier = sakuya_cheat_b3_goods_output_add_artillery remove_variable = sakuya_b3_goods_output_add_artillery }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } remove_modifier = sakuya_cheat_b3_goods_output_add_tanks remove_variable = sakuya_b3_goods_output_add_tanks }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } remove_modifier = sakuya_cheat_b3_goods_output_add_aeroplanes remove_variable = sakuya_b3_goods_output_add_aeroplanes }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } remove_modifier = sakuya_cheat_b3_goods_output_add_manowars remove_variable = sakuya_b3_goods_output_add_manowars }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } remove_modifier = sakuya_cheat_b3_goods_output_add_ironclads remove_variable = sakuya_b3_goods_output_add_ironclads }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } remove_modifier = sakuya_cheat_b3_goods_output_add_grain remove_variable = sakuya_b3_goods_output_add_grain }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } remove_modifier = sakuya_cheat_b3_goods_output_add_fish remove_variable = sakuya_b3_goods_output_add_fish }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } remove_modifier = sakuya_cheat_b3_goods_output_add_fabric remove_variable = sakuya_b3_goods_output_add_fabric }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } remove_modifier = sakuya_cheat_b3_goods_output_add_wood remove_variable = sakuya_b3_goods_output_add_wood }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } remove_modifier = sakuya_cheat_b3_goods_output_add_groceries remove_variable = sakuya_b3_goods_output_add_groceries }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } remove_modifier = sakuya_cheat_b3_goods_output_add_clothes remove_variable = sakuya_b3_goods_output_add_clothes }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } remove_modifier = sakuya_cheat_b3_goods_output_add_furniture remove_variable = sakuya_b3_goods_output_add_furniture }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } remove_modifier = sakuya_cheat_b3_goods_output_add_paper remove_variable = sakuya_b3_goods_output_add_paper }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } remove_modifier = sakuya_cheat_b3_goods_output_add_merchant_marine remove_variable = sakuya_b3_goods_output_add_merchant_marine }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } remove_modifier = sakuya_cheat_b3_goods_output_add_clippers remove_variable = sakuya_b3_goods_output_add_clippers }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } remove_modifier = sakuya_cheat_b3_goods_output_add_steamers remove_variable = sakuya_b3_goods_output_add_steamers }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } remove_modifier = sakuya_cheat_b3_goods_output_add_silk remove_variable = sakuya_b3_goods_output_add_silk }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } remove_modifier = sakuya_cheat_b3_goods_output_add_dye remove_variable = sakuya_b3_goods_output_add_dye }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } remove_modifier = sakuya_cheat_b3_goods_output_add_sulfur remove_variable = sakuya_b3_goods_output_add_sulfur }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } remove_modifier = sakuya_cheat_b3_goods_output_add_coal remove_variable = sakuya_b3_goods_output_add_coal }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } remove_modifier = sakuya_cheat_b3_goods_output_add_iron remove_variable = sakuya_b3_goods_output_add_iron }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } remove_modifier = sakuya_cheat_b3_goods_output_add_lead remove_variable = sakuya_b3_goods_output_add_lead }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } remove_modifier = sakuya_cheat_b3_goods_output_add_copper remove_variable = sakuya_b3_goods_output_add_copper }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } remove_modifier = sakuya_cheat_b3_goods_output_add_hardwood remove_variable = sakuya_b3_goods_output_add_hardwood }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } remove_modifier = sakuya_cheat_b3_goods_output_add_rubber remove_variable = sakuya_b3_goods_output_add_rubber }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } remove_modifier = sakuya_cheat_b3_goods_output_add_oil remove_variable = sakuya_b3_goods_output_add_oil }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } remove_modifier = sakuya_cheat_b3_goods_output_add_engines remove_variable = sakuya_b3_goods_output_add_engines }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } remove_modifier = sakuya_cheat_b3_goods_output_add_steel remove_variable = sakuya_b3_goods_output_add_steel }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } remove_modifier = sakuya_cheat_b3_goods_output_add_glass remove_variable = sakuya_b3_goods_output_add_glass }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } remove_modifier = sakuya_cheat_b3_goods_output_add_fertilizer remove_variable = sakuya_b3_goods_output_add_fertilizer }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } remove_modifier = sakuya_cheat_b3_goods_output_add_tools remove_variable = sakuya_b3_goods_output_add_tools }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } remove_modifier = sakuya_cheat_b3_goods_output_add_explosives remove_variable = sakuya_b3_goods_output_add_explosives }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } remove_modifier = sakuya_cheat_b3_goods_output_add_porcelain remove_variable = sakuya_b3_goods_output_add_porcelain }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } remove_modifier = sakuya_cheat_b3_goods_output_add_meat remove_variable = sakuya_b3_goods_output_add_meat }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } remove_modifier = sakuya_cheat_b3_goods_output_add_fruit remove_variable = sakuya_b3_goods_output_add_fruit }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } remove_modifier = sakuya_cheat_b3_goods_output_add_liquor remove_variable = sakuya_b3_goods_output_add_liquor }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } remove_modifier = sakuya_cheat_b3_goods_output_add_wine remove_variable = sakuya_b3_goods_output_add_wine }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } remove_modifier = sakuya_cheat_b3_goods_output_add_tea remove_variable = sakuya_b3_goods_output_add_tea }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } remove_modifier = sakuya_cheat_b3_goods_output_add_coffee remove_variable = sakuya_b3_goods_output_add_coffee }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } remove_modifier = sakuya_cheat_b3_goods_output_add_sugar remove_variable = sakuya_b3_goods_output_add_sugar }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } remove_modifier = sakuya_cheat_b3_goods_output_add_tobacco remove_variable = sakuya_b3_goods_output_add_tobacco }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } remove_modifier = sakuya_cheat_b3_goods_output_add_opium remove_variable = sakuya_b3_goods_output_add_opium }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } remove_modifier = sakuya_cheat_b3_goods_output_add_automobiles remove_variable = sakuya_b3_goods_output_add_automobiles }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } remove_modifier = sakuya_cheat_b3_goods_output_add_telephones remove_variable = sakuya_b3_goods_output_add_telephones }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } remove_modifier = sakuya_cheat_b3_goods_output_add_radios remove_variable = sakuya_b3_goods_output_add_radios }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_clothes remove_variable = sakuya_b3_goods_output_add_luxury_clothes }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } remove_modifier = sakuya_cheat_b3_goods_output_add_luxury_furniture remove_variable = sakuya_b3_goods_output_add_luxury_furniture }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } remove_modifier = sakuya_cheat_b3_goods_output_add_fine_art remove_variable = sakuya_b3_goods_output_add_fine_art }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } remove_modifier = sakuya_cheat_b3_goods_output_add_gold remove_variable = sakuya_b3_goods_output_add_gold }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } remove_modifier = sakuya_cheat_b3_goods_output_add_electricity remove_variable = sakuya_b3_goods_output_add_electricity }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } remove_modifier = sakuya_cheat_b3_goods_output_add_transportation remove_variable = sakuya_b3_goods_output_add_transportation }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } remove_modifier = sakuya_cheat_b3_goods_output_add_services remove_variable = sakuya_b3_goods_output_add_services }
    }
}

sakuya_b3_goods_selected_tax_add_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } add_taxed_goods = g:ammunition }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } add_taxed_goods = g:small_arms }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } add_taxed_goods = g:artillery }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } add_taxed_goods = g:tanks }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } add_taxed_goods = g:aeroplanes }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } add_taxed_goods = g:manowars }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } add_taxed_goods = g:ironclads }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } add_taxed_goods = g:grain }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } add_taxed_goods = g:fish }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } add_taxed_goods = g:fabric }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } add_taxed_goods = g:wood }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } add_taxed_goods = g:groceries }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } add_taxed_goods = g:clothes }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } add_taxed_goods = g:furniture }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } add_taxed_goods = g:paper }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } add_taxed_goods = g:merchant_marine }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } add_taxed_goods = g:clippers }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } add_taxed_goods = g:steamers }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } add_taxed_goods = g:silk }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } add_taxed_goods = g:dye }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } add_taxed_goods = g:sulfur }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } add_taxed_goods = g:coal }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } add_taxed_goods = g:iron }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } add_taxed_goods = g:lead }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } add_taxed_goods = g:copper }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } add_taxed_goods = g:hardwood }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } add_taxed_goods = g:rubber }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } add_taxed_goods = g:oil }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } add_taxed_goods = g:engines }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } add_taxed_goods = g:steel }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } add_taxed_goods = g:glass }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } add_taxed_goods = g:fertilizer }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } add_taxed_goods = g:tools }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } add_taxed_goods = g:explosives }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } add_taxed_goods = g:porcelain }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } add_taxed_goods = g:meat }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } add_taxed_goods = g:fruit }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } add_taxed_goods = g:liquor }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } add_taxed_goods = g:wine }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } add_taxed_goods = g:tea }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } add_taxed_goods = g:coffee }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } add_taxed_goods = g:sugar }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } add_taxed_goods = g:tobacco }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } add_taxed_goods = g:opium }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } add_taxed_goods = g:automobiles }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } add_taxed_goods = g:telephones }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } add_taxed_goods = g:radios }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } add_taxed_goods = g:luxury_clothes }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } add_taxed_goods = g:luxury_furniture }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } add_taxed_goods = g:fine_art }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } add_taxed_goods = g:gold }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } add_taxed_goods = g:electricity }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } add_taxed_goods = g:transportation }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } add_taxed_goods = g:services }
    }
}

sakuya_b3_goods_selected_tax_remove_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } remove_taxed_goods = g:ammunition }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } remove_taxed_goods = g:small_arms }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } remove_taxed_goods = g:artillery }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } remove_taxed_goods = g:tanks }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } remove_taxed_goods = g:aeroplanes }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } remove_taxed_goods = g:manowars }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } remove_taxed_goods = g:ironclads }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } remove_taxed_goods = g:grain }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } remove_taxed_goods = g:fish }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } remove_taxed_goods = g:fabric }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } remove_taxed_goods = g:wood }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } remove_taxed_goods = g:groceries }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } remove_taxed_goods = g:clothes }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } remove_taxed_goods = g:furniture }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } remove_taxed_goods = g:paper }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } remove_taxed_goods = g:merchant_marine }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } remove_taxed_goods = g:clippers }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } remove_taxed_goods = g:steamers }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } remove_taxed_goods = g:silk }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } remove_taxed_goods = g:dye }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } remove_taxed_goods = g:sulfur }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } remove_taxed_goods = g:coal }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } remove_taxed_goods = g:iron }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } remove_taxed_goods = g:lead }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } remove_taxed_goods = g:copper }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } remove_taxed_goods = g:hardwood }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } remove_taxed_goods = g:rubber }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } remove_taxed_goods = g:oil }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } remove_taxed_goods = g:engines }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } remove_taxed_goods = g:steel }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } remove_taxed_goods = g:glass }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } remove_taxed_goods = g:fertilizer }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } remove_taxed_goods = g:tools }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } remove_taxed_goods = g:explosives }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } remove_taxed_goods = g:porcelain }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } remove_taxed_goods = g:meat }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } remove_taxed_goods = g:fruit }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } remove_taxed_goods = g:liquor }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } remove_taxed_goods = g:wine }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } remove_taxed_goods = g:tea }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } remove_taxed_goods = g:coffee }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } remove_taxed_goods = g:sugar }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } remove_taxed_goods = g:tobacco }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } remove_taxed_goods = g:opium }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } remove_taxed_goods = g:automobiles }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } remove_taxed_goods = g:telephones }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } remove_taxed_goods = g:radios }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } remove_taxed_goods = g:luxury_clothes }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } remove_taxed_goods = g:luxury_furniture }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } remove_taxed_goods = g:fine_art }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } remove_taxed_goods = g:gold }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } remove_taxed_goods = g:electricity }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } remove_taxed_goods = g:transportation }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } remove_taxed_goods = g:services }
    }
}

sakuya_b3_goods_selected_tax_add_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        every_country = { limit = { has_variable = sakuya_mark_country_target } save_scope_as = sakuya_marked_country_scope }
        if = {
            limit = { exists = scope:sakuya_marked_country_scope }
            if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } scope:sakuya_marked_country_scope = { add_taxed_goods = g:ammunition } }
            if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } scope:sakuya_marked_country_scope = { add_taxed_goods = g:small_arms } }
            if = { limit = { has_variable = sakuya_b3_sel_good_artillery } scope:sakuya_marked_country_scope = { add_taxed_goods = g:artillery } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tanks } scope:sakuya_marked_country_scope = { add_taxed_goods = g:tanks } }
            if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } scope:sakuya_marked_country_scope = { add_taxed_goods = g:aeroplanes } }
            if = { limit = { has_variable = sakuya_b3_sel_good_manowars } scope:sakuya_marked_country_scope = { add_taxed_goods = g:manowars } }
            if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } scope:sakuya_marked_country_scope = { add_taxed_goods = g:ironclads } }
            if = { limit = { has_variable = sakuya_b3_sel_good_grain } scope:sakuya_marked_country_scope = { add_taxed_goods = g:grain } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fish } scope:sakuya_marked_country_scope = { add_taxed_goods = g:fish } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fabric } scope:sakuya_marked_country_scope = { add_taxed_goods = g:fabric } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wood } scope:sakuya_marked_country_scope = { add_taxed_goods = g:wood } }
            if = { limit = { has_variable = sakuya_b3_sel_good_groceries } scope:sakuya_marked_country_scope = { add_taxed_goods = g:groceries } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clothes } scope:sakuya_marked_country_scope = { add_taxed_goods = g:clothes } }
            if = { limit = { has_variable = sakuya_b3_sel_good_furniture } scope:sakuya_marked_country_scope = { add_taxed_goods = g:furniture } }
            if = { limit = { has_variable = sakuya_b3_sel_good_paper } scope:sakuya_marked_country_scope = { add_taxed_goods = g:paper } }
            if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } scope:sakuya_marked_country_scope = { add_taxed_goods = g:merchant_marine } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clippers } scope:sakuya_marked_country_scope = { add_taxed_goods = g:clippers } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steamers } scope:sakuya_marked_country_scope = { add_taxed_goods = g:steamers } }
            if = { limit = { has_variable = sakuya_b3_sel_good_silk } scope:sakuya_marked_country_scope = { add_taxed_goods = g:silk } }
            if = { limit = { has_variable = sakuya_b3_sel_good_dye } scope:sakuya_marked_country_scope = { add_taxed_goods = g:dye } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } scope:sakuya_marked_country_scope = { add_taxed_goods = g:sulfur } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coal } scope:sakuya_marked_country_scope = { add_taxed_goods = g:coal } }
            if = { limit = { has_variable = sakuya_b3_sel_good_iron } scope:sakuya_marked_country_scope = { add_taxed_goods = g:iron } }
            if = { limit = { has_variable = sakuya_b3_sel_good_lead } scope:sakuya_marked_country_scope = { add_taxed_goods = g:lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } scope:sakuya_marked_country_scope = { add_taxed_goods = g:copper } }
            if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } scope:sakuya_marked_country_scope = { add_taxed_goods = g:hardwood } }
            if = { limit = { has_variable = sakuya_b3_sel_good_rubber } scope:sakuya_marked_country_scope = { add_taxed_goods = g:rubber } }
            if = { limit = { has_variable = sakuya_b3_sel_good_oil } scope:sakuya_marked_country_scope = { add_taxed_goods = g:oil } }
            if = { limit = { has_variable = sakuya_b3_sel_good_engines } scope:sakuya_marked_country_scope = { add_taxed_goods = g:engines } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steel } scope:sakuya_marked_country_scope = { add_taxed_goods = g:steel } }
            if = { limit = { has_variable = sakuya_b3_sel_good_glass } scope:sakuya_marked_country_scope = { add_taxed_goods = g:glass } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } scope:sakuya_marked_country_scope = { add_taxed_goods = g:fertilizer } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tools } scope:sakuya_marked_country_scope = { add_taxed_goods = g:tools } }
            if = { limit = { has_variable = sakuya_b3_sel_good_explosives } scope:sakuya_marked_country_scope = { add_taxed_goods = g:explosives } }
            if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } scope:sakuya_marked_country_scope = { add_taxed_goods = g:porcelain } }
            if = { limit = { has_variable = sakuya_b3_sel_good_meat } scope:sakuya_marked_country_scope = { add_taxed_goods = g:meat } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fruit } scope:sakuya_marked_country_scope = { add_taxed_goods = g:fruit } }
            if = { limit = { has_variable = sakuya_b3_sel_good_liquor } scope:sakuya_marked_country_scope = { add_taxed_goods = g:liquor } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wine } scope:sakuya_marked_country_scope = { add_taxed_goods = g:wine } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tea } scope:sakuya_marked_country_scope = { add_taxed_goods = g:tea } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coffee } scope:sakuya_marked_country_scope = { add_taxed_goods = g:coffee } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sugar } scope:sakuya_marked_country_scope = { add_taxed_goods = g:sugar } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } scope:sakuya_marked_country_scope = { add_taxed_goods = g:tobacco } }
            if = { limit = { has_variable = sakuya_b3_sel_good_opium } scope:sakuya_marked_country_scope = { add_taxed_goods = g:opium } }
            if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } scope:sakuya_marked_country_scope = { add_taxed_goods = g:automobiles } }
            if = { limit = { has_variable = sakuya_b3_sel_good_telephones } scope:sakuya_marked_country_scope = { add_taxed_goods = g:telephones } }
            if = { limit = { has_variable = sakuya_b3_sel_good_radios } scope:sakuya_marked_country_scope = { add_taxed_goods = g:radios } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } scope:sakuya_marked_country_scope = { add_taxed_goods = g:luxury_clothes } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } scope:sakuya_marked_country_scope = { add_taxed_goods = g:luxury_furniture } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } scope:sakuya_marked_country_scope = { add_taxed_goods = g:fine_art } }
            if = { limit = { has_variable = sakuya_b3_sel_good_gold } scope:sakuya_marked_country_scope = { add_taxed_goods = g:gold } }
            if = { limit = { has_variable = sakuya_b3_sel_good_electricity } scope:sakuya_marked_country_scope = { add_taxed_goods = g:electricity } }
            if = { limit = { has_variable = sakuya_b3_sel_good_transportation } scope:sakuya_marked_country_scope = { add_taxed_goods = g:transportation } }
            if = { limit = { has_variable = sakuya_b3_sel_good_services } scope:sakuya_marked_country_scope = { add_taxed_goods = g:services } }
        }
    }
}

sakuya_b3_goods_selected_tax_remove_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        every_country = { limit = { has_variable = sakuya_mark_country_target } save_scope_as = sakuya_marked_country_scope }
        if = {
            limit = { exists = scope:sakuya_marked_country_scope }
            if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:ammunition } }
            if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:small_arms } }
            if = { limit = { has_variable = sakuya_b3_sel_good_artillery } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:artillery } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tanks } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:tanks } }
            if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:aeroplanes } }
            if = { limit = { has_variable = sakuya_b3_sel_good_manowars } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:manowars } }
            if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:ironclads } }
            if = { limit = { has_variable = sakuya_b3_sel_good_grain } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:grain } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fish } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:fish } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fabric } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:fabric } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wood } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:wood } }
            if = { limit = { has_variable = sakuya_b3_sel_good_groceries } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:groceries } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clothes } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:clothes } }
            if = { limit = { has_variable = sakuya_b3_sel_good_furniture } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:furniture } }
            if = { limit = { has_variable = sakuya_b3_sel_good_paper } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:paper } }
            if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:merchant_marine } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clippers } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:clippers } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steamers } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:steamers } }
            if = { limit = { has_variable = sakuya_b3_sel_good_silk } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:silk } }
            if = { limit = { has_variable = sakuya_b3_sel_good_dye } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:dye } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:sulfur } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coal } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:coal } }
            if = { limit = { has_variable = sakuya_b3_sel_good_iron } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:iron } }
            if = { limit = { has_variable = sakuya_b3_sel_good_lead } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:copper } }
            if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:hardwood } }
            if = { limit = { has_variable = sakuya_b3_sel_good_rubber } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:rubber } }
            if = { limit = { has_variable = sakuya_b3_sel_good_oil } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:oil } }
            if = { limit = { has_variable = sakuya_b3_sel_good_engines } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:engines } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steel } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:steel } }
            if = { limit = { has_variable = sakuya_b3_sel_good_glass } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:glass } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:fertilizer } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tools } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:tools } }
            if = { limit = { has_variable = sakuya_b3_sel_good_explosives } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:explosives } }
            if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:porcelain } }
            if = { limit = { has_variable = sakuya_b3_sel_good_meat } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:meat } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fruit } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:fruit } }
            if = { limit = { has_variable = sakuya_b3_sel_good_liquor } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:liquor } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wine } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:wine } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tea } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:tea } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coffee } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:coffee } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sugar } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:sugar } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:tobacco } }
            if = { limit = { has_variable = sakuya_b3_sel_good_opium } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:opium } }
            if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:automobiles } }
            if = { limit = { has_variable = sakuya_b3_sel_good_telephones } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:telephones } }
            if = { limit = { has_variable = sakuya_b3_sel_good_radios } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:radios } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:luxury_clothes } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:luxury_furniture } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:fine_art } }
            if = { limit = { has_variable = sakuya_b3_sel_good_gold } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:gold } }
            if = { limit = { has_variable = sakuya_b3_sel_good_electricity } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:electricity } }
            if = { limit = { has_variable = sakuya_b3_sel_good_transportation } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:transportation } }
            if = { limit = { has_variable = sakuya_b3_sel_good_services } scope:sakuya_marked_country_scope = { remove_taxed_goods = g:services } }
        }
    }
}
sakuya_b3_goods_obsession_add_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } every_primary_culture = { add_cultural_obsession = ammunition } }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } every_primary_culture = { add_cultural_obsession = small_arms } }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } every_primary_culture = { add_cultural_obsession = artillery } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } every_primary_culture = { add_cultural_obsession = tanks } }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } every_primary_culture = { add_cultural_obsession = aeroplanes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } every_primary_culture = { add_cultural_obsession = manowars } }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } every_primary_culture = { add_cultural_obsession = ironclads } }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } every_primary_culture = { add_cultural_obsession = grain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } every_primary_culture = { add_cultural_obsession = fish } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } every_primary_culture = { add_cultural_obsession = fabric } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } every_primary_culture = { add_cultural_obsession = wood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } every_primary_culture = { add_cultural_obsession = groceries } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } every_primary_culture = { add_cultural_obsession = clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } every_primary_culture = { add_cultural_obsession = furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } every_primary_culture = { add_cultural_obsession = paper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } every_primary_culture = { add_cultural_obsession = merchant_marine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } every_primary_culture = { add_cultural_obsession = clippers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } every_primary_culture = { add_cultural_obsession = steamers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } every_primary_culture = { add_cultural_obsession = silk } }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } every_primary_culture = { add_cultural_obsession = dye } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } every_primary_culture = { add_cultural_obsession = sulfur } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } every_primary_culture = { add_cultural_obsession = coal } }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } every_primary_culture = { add_cultural_obsession = iron } }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } every_primary_culture = { add_cultural_obsession = lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } every_primary_culture = { add_cultural_obsession = copper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } every_primary_culture = { add_cultural_obsession = hardwood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } every_primary_culture = { add_cultural_obsession = rubber } }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } every_primary_culture = { add_cultural_obsession = oil } }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } every_primary_culture = { add_cultural_obsession = engines } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } every_primary_culture = { add_cultural_obsession = steel } }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } every_primary_culture = { add_cultural_obsession = glass } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } every_primary_culture = { add_cultural_obsession = fertilizer } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } every_primary_culture = { add_cultural_obsession = tools } }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } every_primary_culture = { add_cultural_obsession = explosives } }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } every_primary_culture = { add_cultural_obsession = porcelain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } every_primary_culture = { add_cultural_obsession = meat } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } every_primary_culture = { add_cultural_obsession = fruit } }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } every_primary_culture = { add_cultural_obsession = liquor } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } every_primary_culture = { add_cultural_obsession = wine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } every_primary_culture = { add_cultural_obsession = tea } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } every_primary_culture = { add_cultural_obsession = coffee } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } every_primary_culture = { add_cultural_obsession = sugar } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } every_primary_culture = { add_cultural_obsession = tobacco } }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } every_primary_culture = { add_cultural_obsession = opium } }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } every_primary_culture = { add_cultural_obsession = automobiles } }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } every_primary_culture = { add_cultural_obsession = telephones } }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } every_primary_culture = { add_cultural_obsession = radios } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } every_primary_culture = { add_cultural_obsession = luxury_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } every_primary_culture = { add_cultural_obsession = luxury_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } every_primary_culture = { add_cultural_obsession = fine_art } }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } every_primary_culture = { add_cultural_obsession = gold } }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } every_primary_culture = { add_cultural_obsession = electricity } }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } every_primary_culture = { add_cultural_obsession = transportation } }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } every_primary_culture = { add_cultural_obsession = services } }
    }
}

sakuya_b3_goods_obsession_remove_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } every_primary_culture = { remove_cultural_obsession = ammunition } }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } every_primary_culture = { remove_cultural_obsession = small_arms } }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } every_primary_culture = { remove_cultural_obsession = artillery } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } every_primary_culture = { remove_cultural_obsession = tanks } }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } every_primary_culture = { remove_cultural_obsession = aeroplanes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } every_primary_culture = { remove_cultural_obsession = manowars } }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } every_primary_culture = { remove_cultural_obsession = ironclads } }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } every_primary_culture = { remove_cultural_obsession = grain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } every_primary_culture = { remove_cultural_obsession = fish } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } every_primary_culture = { remove_cultural_obsession = fabric } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } every_primary_culture = { remove_cultural_obsession = wood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } every_primary_culture = { remove_cultural_obsession = groceries } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } every_primary_culture = { remove_cultural_obsession = clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } every_primary_culture = { remove_cultural_obsession = furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } every_primary_culture = { remove_cultural_obsession = paper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } every_primary_culture = { remove_cultural_obsession = merchant_marine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } every_primary_culture = { remove_cultural_obsession = clippers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } every_primary_culture = { remove_cultural_obsession = steamers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } every_primary_culture = { remove_cultural_obsession = silk } }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } every_primary_culture = { remove_cultural_obsession = dye } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } every_primary_culture = { remove_cultural_obsession = sulfur } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } every_primary_culture = { remove_cultural_obsession = coal } }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } every_primary_culture = { remove_cultural_obsession = iron } }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } every_primary_culture = { remove_cultural_obsession = lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } every_primary_culture = { remove_cultural_obsession = copper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } every_primary_culture = { remove_cultural_obsession = hardwood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } every_primary_culture = { remove_cultural_obsession = rubber } }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } every_primary_culture = { remove_cultural_obsession = oil } }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } every_primary_culture = { remove_cultural_obsession = engines } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } every_primary_culture = { remove_cultural_obsession = steel } }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } every_primary_culture = { remove_cultural_obsession = glass } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } every_primary_culture = { remove_cultural_obsession = fertilizer } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } every_primary_culture = { remove_cultural_obsession = tools } }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } every_primary_culture = { remove_cultural_obsession = explosives } }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } every_primary_culture = { remove_cultural_obsession = porcelain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } every_primary_culture = { remove_cultural_obsession = meat } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } every_primary_culture = { remove_cultural_obsession = fruit } }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } every_primary_culture = { remove_cultural_obsession = liquor } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } every_primary_culture = { remove_cultural_obsession = wine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } every_primary_culture = { remove_cultural_obsession = tea } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } every_primary_culture = { remove_cultural_obsession = coffee } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } every_primary_culture = { remove_cultural_obsession = sugar } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } every_primary_culture = { remove_cultural_obsession = tobacco } }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } every_primary_culture = { remove_cultural_obsession = opium } }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } every_primary_culture = { remove_cultural_obsession = automobiles } }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } every_primary_culture = { remove_cultural_obsession = telephones } }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } every_primary_culture = { remove_cultural_obsession = radios } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } every_primary_culture = { remove_cultural_obsession = luxury_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } every_primary_culture = { remove_cultural_obsession = luxury_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } every_primary_culture = { remove_cultural_obsession = fine_art } }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } every_primary_culture = { remove_cultural_obsession = gold } }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } every_primary_culture = { remove_cultural_obsession = electricity } }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } every_primary_culture = { remove_cultural_obsession = transportation } }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } every_primary_culture = { remove_cultural_obsession = services } }
    }
}

sakuya_b3_goods_obsession_add_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        every_country = { limit = { has_variable = sakuya_mark_country_target } save_scope_as = sakuya_marked_country_scope }
        if = {
            limit = { exists = scope:sakuya_marked_country_scope }
            if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = ammunition } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = small_arms } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_artillery } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = artillery } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tanks } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = tanks } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = aeroplanes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_manowars } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = manowars } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = ironclads } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_grain } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = grain } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fish } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = fish } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fabric } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = fabric } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wood } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = wood } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_groceries } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = groceries } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clothes } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = clothes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_furniture } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = furniture } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_paper } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = paper } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = merchant_marine } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clippers } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = clippers } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steamers } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = steamers } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_silk } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = silk } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_dye } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = dye } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = sulfur } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coal } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = coal } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_iron } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = iron } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_lead } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = lead } } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = copper } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = hardwood } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_rubber } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = rubber } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_oil } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = oil } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_engines } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = engines } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steel } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = steel } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_glass } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = glass } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = fertilizer } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tools } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = tools } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_explosives } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = explosives } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = porcelain } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_meat } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = meat } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fruit } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = fruit } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_liquor } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = liquor } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wine } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = wine } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tea } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = tea } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coffee } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = coffee } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sugar } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = sugar } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = tobacco } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_opium } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = opium } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = automobiles } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_telephones } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = telephones } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_radios } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = radios } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = luxury_clothes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = luxury_furniture } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = fine_art } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_gold } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = gold } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_electricity } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = electricity } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_transportation } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = transportation } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_services } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_obsession = services } } }
        }
    }
}

sakuya_b3_goods_obsession_remove_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        every_country = { limit = { has_variable = sakuya_mark_country_target } save_scope_as = sakuya_marked_country_scope }
        if = {
            limit = { exists = scope:sakuya_marked_country_scope }
            if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = ammunition } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = small_arms } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_artillery } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = artillery } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tanks } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = tanks } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = aeroplanes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_manowars } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = manowars } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = ironclads } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_grain } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = grain } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fish } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = fish } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fabric } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = fabric } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wood } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = wood } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_groceries } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = groceries } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clothes } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = clothes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_furniture } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = furniture } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_paper } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = paper } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = merchant_marine } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clippers } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = clippers } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steamers } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = steamers } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_silk } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = silk } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_dye } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = dye } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = sulfur } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coal } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = coal } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_iron } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = iron } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_lead } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = lead } } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = copper } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = hardwood } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_rubber } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = rubber } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_oil } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = oil } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_engines } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = engines } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steel } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = steel } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_glass } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = glass } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = fertilizer } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tools } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = tools } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_explosives } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = explosives } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = porcelain } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_meat } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = meat } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fruit } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = fruit } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_liquor } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = liquor } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wine } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = wine } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tea } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = tea } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coffee } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = coffee } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sugar } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = sugar } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = tobacco } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_opium } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = opium } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = automobiles } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_telephones } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = telephones } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_radios } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = radios } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = luxury_clothes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = luxury_furniture } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = fine_art } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_gold } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = gold } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_electricity } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = electricity } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_transportation } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = transportation } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_services } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_obsession = services } } }
        }
    }
}


sakuya_b3_goods_taboo_add_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } every_primary_culture = { add_cultural_taboo = ammunition } }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } every_primary_culture = { add_cultural_taboo = small_arms } }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } every_primary_culture = { add_cultural_taboo = artillery } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } every_primary_culture = { add_cultural_taboo = tanks } }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } every_primary_culture = { add_cultural_taboo = aeroplanes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } every_primary_culture = { add_cultural_taboo = manowars } }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } every_primary_culture = { add_cultural_taboo = ironclads } }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } every_primary_culture = { add_cultural_taboo = grain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } every_primary_culture = { add_cultural_taboo = fish } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } every_primary_culture = { add_cultural_taboo = fabric } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } every_primary_culture = { add_cultural_taboo = wood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } every_primary_culture = { add_cultural_taboo = groceries } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } every_primary_culture = { add_cultural_taboo = clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } every_primary_culture = { add_cultural_taboo = furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } every_primary_culture = { add_cultural_taboo = paper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } every_primary_culture = { add_cultural_taboo = merchant_marine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } every_primary_culture = { add_cultural_taboo = clippers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } every_primary_culture = { add_cultural_taboo = steamers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } every_primary_culture = { add_cultural_taboo = silk } }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } every_primary_culture = { add_cultural_taboo = dye } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } every_primary_culture = { add_cultural_taboo = sulfur } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } every_primary_culture = { add_cultural_taboo = coal } }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } every_primary_culture = { add_cultural_taboo = iron } }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } every_primary_culture = { add_cultural_taboo = lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } every_primary_culture = { add_cultural_taboo = copper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } every_primary_culture = { add_cultural_taboo = hardwood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } every_primary_culture = { add_cultural_taboo = rubber } }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } every_primary_culture = { add_cultural_taboo = oil } }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } every_primary_culture = { add_cultural_taboo = engines } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } every_primary_culture = { add_cultural_taboo = steel } }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } every_primary_culture = { add_cultural_taboo = glass } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } every_primary_culture = { add_cultural_taboo = fertilizer } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } every_primary_culture = { add_cultural_taboo = tools } }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } every_primary_culture = { add_cultural_taboo = explosives } }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } every_primary_culture = { add_cultural_taboo = porcelain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } every_primary_culture = { add_cultural_taboo = meat } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } every_primary_culture = { add_cultural_taboo = fruit } }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } every_primary_culture = { add_cultural_taboo = liquor } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } every_primary_culture = { add_cultural_taboo = wine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } every_primary_culture = { add_cultural_taboo = tea } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } every_primary_culture = { add_cultural_taboo = coffee } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } every_primary_culture = { add_cultural_taboo = sugar } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } every_primary_culture = { add_cultural_taboo = tobacco } }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } every_primary_culture = { add_cultural_taboo = opium } }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } every_primary_culture = { add_cultural_taboo = automobiles } }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } every_primary_culture = { add_cultural_taboo = telephones } }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } every_primary_culture = { add_cultural_taboo = radios } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } every_primary_culture = { add_cultural_taboo = luxury_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } every_primary_culture = { add_cultural_taboo = luxury_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } every_primary_culture = { add_cultural_taboo = fine_art } }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } every_primary_culture = { add_cultural_taboo = gold } }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } every_primary_culture = { add_cultural_taboo = electricity } }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } every_primary_culture = { add_cultural_taboo = transportation } }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } every_primary_culture = { add_cultural_taboo = services } }
    }
}

sakuya_b3_goods_taboo_remove_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } every_primary_culture = { remove_cultural_taboo = ammunition } }
        if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } every_primary_culture = { remove_cultural_taboo = small_arms } }
        if = { limit = { has_variable = sakuya_b3_sel_good_artillery } every_primary_culture = { remove_cultural_taboo = artillery } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tanks } every_primary_culture = { remove_cultural_taboo = tanks } }
        if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } every_primary_culture = { remove_cultural_taboo = aeroplanes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_manowars } every_primary_culture = { remove_cultural_taboo = manowars } }
        if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } every_primary_culture = { remove_cultural_taboo = ironclads } }
        if = { limit = { has_variable = sakuya_b3_sel_good_grain } every_primary_culture = { remove_cultural_taboo = grain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fish } every_primary_culture = { remove_cultural_taboo = fish } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fabric } every_primary_culture = { remove_cultural_taboo = fabric } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wood } every_primary_culture = { remove_cultural_taboo = wood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_groceries } every_primary_culture = { remove_cultural_taboo = groceries } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clothes } every_primary_culture = { remove_cultural_taboo = clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_furniture } every_primary_culture = { remove_cultural_taboo = furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_paper } every_primary_culture = { remove_cultural_taboo = paper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } every_primary_culture = { remove_cultural_taboo = merchant_marine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_clippers } every_primary_culture = { remove_cultural_taboo = clippers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steamers } every_primary_culture = { remove_cultural_taboo = steamers } }
        if = { limit = { has_variable = sakuya_b3_sel_good_silk } every_primary_culture = { remove_cultural_taboo = silk } }
        if = { limit = { has_variable = sakuya_b3_sel_good_dye } every_primary_culture = { remove_cultural_taboo = dye } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } every_primary_culture = { remove_cultural_taboo = sulfur } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coal } every_primary_culture = { remove_cultural_taboo = coal } }
        if = { limit = { has_variable = sakuya_b3_sel_good_iron } every_primary_culture = { remove_cultural_taboo = iron } }
        if = { limit = { has_variable = sakuya_b3_sel_good_lead } every_primary_culture = { remove_cultural_taboo = lead } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } every_primary_culture = { remove_cultural_taboo = copper } }
        if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } every_primary_culture = { remove_cultural_taboo = hardwood } }
        if = { limit = { has_variable = sakuya_b3_sel_good_rubber } every_primary_culture = { remove_cultural_taboo = rubber } }
        if = { limit = { has_variable = sakuya_b3_sel_good_oil } every_primary_culture = { remove_cultural_taboo = oil } }
        if = { limit = { has_variable = sakuya_b3_sel_good_engines } every_primary_culture = { remove_cultural_taboo = engines } }
        if = { limit = { has_variable = sakuya_b3_sel_good_steel } every_primary_culture = { remove_cultural_taboo = steel } }
        if = { limit = { has_variable = sakuya_b3_sel_good_glass } every_primary_culture = { remove_cultural_taboo = glass } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } every_primary_culture = { remove_cultural_taboo = fertilizer } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tools } every_primary_culture = { remove_cultural_taboo = tools } }
        if = { limit = { has_variable = sakuya_b3_sel_good_explosives } every_primary_culture = { remove_cultural_taboo = explosives } }
        if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } every_primary_culture = { remove_cultural_taboo = porcelain } }
        if = { limit = { has_variable = sakuya_b3_sel_good_meat } every_primary_culture = { remove_cultural_taboo = meat } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fruit } every_primary_culture = { remove_cultural_taboo = fruit } }
        if = { limit = { has_variable = sakuya_b3_sel_good_liquor } every_primary_culture = { remove_cultural_taboo = liquor } }
        if = { limit = { has_variable = sakuya_b3_sel_good_wine } every_primary_culture = { remove_cultural_taboo = wine } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tea } every_primary_culture = { remove_cultural_taboo = tea } }
        if = { limit = { has_variable = sakuya_b3_sel_good_coffee } every_primary_culture = { remove_cultural_taboo = coffee } }
        if = { limit = { has_variable = sakuya_b3_sel_good_sugar } every_primary_culture = { remove_cultural_taboo = sugar } }
        if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } every_primary_culture = { remove_cultural_taboo = tobacco } }
        if = { limit = { has_variable = sakuya_b3_sel_good_opium } every_primary_culture = { remove_cultural_taboo = opium } }
        if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } every_primary_culture = { remove_cultural_taboo = automobiles } }
        if = { limit = { has_variable = sakuya_b3_sel_good_telephones } every_primary_culture = { remove_cultural_taboo = telephones } }
        if = { limit = { has_variable = sakuya_b3_sel_good_radios } every_primary_culture = { remove_cultural_taboo = radios } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } every_primary_culture = { remove_cultural_taboo = luxury_clothes } }
        if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } every_primary_culture = { remove_cultural_taboo = luxury_furniture } }
        if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } every_primary_culture = { remove_cultural_taboo = fine_art } }
        if = { limit = { has_variable = sakuya_b3_sel_good_gold } every_primary_culture = { remove_cultural_taboo = gold } }
        if = { limit = { has_variable = sakuya_b3_sel_good_electricity } every_primary_culture = { remove_cultural_taboo = electricity } }
        if = { limit = { has_variable = sakuya_b3_sel_good_transportation } every_primary_culture = { remove_cultural_taboo = transportation } }
        if = { limit = { has_variable = sakuya_b3_sel_good_services } every_primary_culture = { remove_cultural_taboo = services } }
    }
}

sakuya_b3_goods_taboo_add_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        every_country = { limit = { has_variable = sakuya_mark_country_target } save_scope_as = sakuya_marked_country_scope }
        if = {
            limit = { exists = scope:sakuya_marked_country_scope }
            if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = ammunition } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = small_arms } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_artillery } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = artillery } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tanks } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = tanks } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = aeroplanes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_manowars } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = manowars } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = ironclads } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_grain } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = grain } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fish } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = fish } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fabric } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = fabric } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wood } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = wood } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_groceries } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = groceries } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clothes } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = clothes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_furniture } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = furniture } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_paper } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = paper } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = merchant_marine } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clippers } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = clippers } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steamers } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = steamers } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_silk } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = silk } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_dye } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = dye } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = sulfur } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coal } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = coal } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_iron } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = iron } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_lead } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = lead } } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = copper } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = hardwood } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_rubber } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = rubber } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_oil } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = oil } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_engines } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = engines } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steel } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = steel } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_glass } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = glass } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = fertilizer } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tools } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = tools } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_explosives } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = explosives } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = porcelain } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_meat } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = meat } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fruit } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = fruit } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_liquor } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = liquor } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wine } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = wine } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tea } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = tea } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coffee } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = coffee } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sugar } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = sugar } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = tobacco } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_opium } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = opium } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = automobiles } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_telephones } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = telephones } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_radios } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = radios } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = luxury_clothes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = luxury_furniture } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = fine_art } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_gold } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = gold } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_electricity } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = electricity } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_transportation } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = transportation } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_services } scope:sakuya_marked_country_scope = { every_primary_culture = { add_cultural_taboo = services } } }
        }
    }
}

sakuya_b3_goods_taboo_remove_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        every_country = { limit = { has_variable = sakuya_mark_country_target } save_scope_as = sakuya_marked_country_scope }
        if = {
            limit = { exists = scope:sakuya_marked_country_scope }
            if = { limit = { has_variable = sakuya_b3_sel_good_ammunition } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = ammunition } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_small_arms } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = small_arms } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_artillery } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = artillery } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tanks } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = tanks } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_aeroplanes } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = aeroplanes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_manowars } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = manowars } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_ironclads } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = ironclads } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_grain } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = grain } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fish } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = fish } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fabric } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = fabric } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wood } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = wood } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_groceries } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = groceries } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clothes } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = clothes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_furniture } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = furniture } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_paper } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = paper } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_merchant_marine } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = merchant_marine } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_clippers } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = clippers } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steamers } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = steamers } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_silk } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = silk } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_dye } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = dye } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sulfur } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = sulfur } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coal } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = coal } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_iron } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = iron } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_lead } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = lead } } }
if = { limit = { has_variable = sakuya_b3_sel_good_copper } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = copper } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_hardwood } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = hardwood } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_rubber } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = rubber } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_oil } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = oil } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_engines } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = engines } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_steel } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = steel } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_glass } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = glass } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fertilizer } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = fertilizer } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tools } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = tools } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_explosives } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = explosives } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_porcelain } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = porcelain } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_meat } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = meat } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fruit } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = fruit } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_liquor } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = liquor } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_wine } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = wine } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tea } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = tea } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_coffee } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = coffee } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_sugar } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = sugar } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_tobacco } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = tobacco } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_opium } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = opium } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_automobiles } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = automobiles } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_telephones } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = telephones } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_radios } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = radios } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_clothes } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = luxury_clothes } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_luxury_furniture } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = luxury_furniture } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_fine_art } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = fine_art } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_gold } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = gold } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_electricity } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = electricity } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_transportation } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = transportation } } }
            if = { limit = { has_variable = sakuya_b3_sel_good_services } scope:sakuya_marked_country_scope = { every_primary_culture = { remove_cultural_taboo = services } } }
        }
    }
}

# === B3 CHARACTER GENERATED BEGIN ===
sakuya_b3_has_marked_country_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_country = { has_variable = sakuya_mark_country_target }
    }
}

sakuya_b3_country_culture_add_marked_country_to_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_add_marked_country_to_player_effect = yes }
}

sakuya_b3_country_culture_add_player_state_to_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_add_player_marked_state_to_player_effect = yes }
}

sakuya_b3_country_culture_add_marked_country_state_to_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_add_marked_country_state_to_player_effect = yes }
}

sakuya_b3_country_culture_add_marked_character_to_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_add_marked_character_to_player_effect = yes }
}

sakuya_b3_country_culture_add_player_to_marked_country = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_add_player_to_marked_country_effect = yes }
}

sakuya_b3_country_culture_add_player_state_to_marked_country = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_add_player_marked_state_to_marked_country_effect = yes }
}

sakuya_b3_country_culture_add_marked_country_state_to_marked_country = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_add_marked_country_state_to_marked_country_effect = yes }
}

sakuya_b3_country_culture_add_marked_character_to_marked_country = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_add_marked_character_to_marked_country_effect = yes }
}

sakuya_b3_country_culture_remove_marked_country_from_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_remove_marked_country_from_player_effect = yes }
}

sakuya_b3_country_culture_remove_player_state_from_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_remove_player_marked_state_from_player_effect = yes }
}

sakuya_b3_country_culture_remove_marked_country_state_from_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_remove_marked_country_state_from_player_effect = yes }
}

sakuya_b3_country_culture_remove_marked_character_from_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_remove_marked_character_from_player_effect = yes }
}

sakuya_b3_country_culture_remove_player_from_marked_country = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_remove_player_from_marked_country_effect = yes }
}

sakuya_b3_country_culture_remove_player_state_from_marked_country = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_remove_player_marked_state_from_marked_country_effect = yes }
}

sakuya_b3_country_culture_remove_marked_country_state_from_marked_country = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_remove_marked_country_state_from_marked_country_effect = yes }
}

sakuya_b3_country_culture_remove_marked_character_from_marked_country = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_country_culture_remove_marked_character_from_marked_country_effect = yes }
}

sakuya_b3_country_religion_catholic_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:catholic state_religion_switch_effect = yes } }
sakuya_b3_country_religion_catholic_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:catholic state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_protestant_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:protestant state_religion_switch_effect = yes } }
sakuya_b3_country_religion_protestant_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:protestant state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_orthodox_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:orthodox state_religion_switch_effect = yes } }
sakuya_b3_country_religion_orthodox_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:orthodox state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_oriental_orthodox_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:oriental_orthodox state_religion_switch_effect = yes } }
sakuya_b3_country_religion_oriental_orthodox_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:oriental_orthodox state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_sunni_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:sunni state_religion_switch_effect = yes } }
sakuya_b3_country_religion_sunni_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:sunni state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_shiite_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:shiite state_religion_switch_effect = yes } }
sakuya_b3_country_religion_shiite_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:shiite state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_ibadi_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:ibadi state_religion_switch_effect = yes } }
sakuya_b3_country_religion_ibadi_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:ibadi state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_jewish_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:jewish state_religion_switch_effect = yes } }
sakuya_b3_country_religion_jewish_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:jewish state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_mahayana_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:mahayana state_religion_switch_effect = yes } }
sakuya_b3_country_religion_mahayana_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:mahayana state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_gelugpa_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:gelugpa state_religion_switch_effect = yes } }
sakuya_b3_country_religion_gelugpa_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:gelugpa state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_theravada_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:theravada state_religion_switch_effect = yes } }
sakuya_b3_country_religion_theravada_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:theravada state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_confucian_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:confucian state_religion_switch_effect = yes } }
sakuya_b3_country_religion_confucian_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:confucian state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_hindu_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:hindu state_religion_switch_effect = yes } }
sakuya_b3_country_religion_hindu_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:hindu state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_shinto_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:shinto state_religion_switch_effect = yes } }
sakuya_b3_country_religion_shinto_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:shinto state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_sikh_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:sikh state_religion_switch_effect = yes } }
sakuya_b3_country_religion_sikh_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:sikh state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_animist_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:animist state_religion_switch_effect = yes } }
sakuya_b3_country_religion_animist_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:animist state_religion_switch_effect = yes } } } }
sakuya_b3_country_religion_atheist_player = { scope = country is_shown = { is_player = yes } effect = { set_state_religion = rel:atheist state_religion_switch_effect = yes } }
sakuya_b3_country_religion_atheist_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { set_state_religion = rel:atheist state_religion_switch_effect = yes } } } }

  sakuya_b3_country_tech_sericulture_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = sericulture } }
  sakuya_b3_country_tech_sericulture_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = sericulture } } } }
  sakuya_b3_country_tech_enclosure_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = enclosure } }
  sakuya_b3_country_tech_enclosure_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = enclosure } } } }
  sakuya_b3_country_tech_manufacturies_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = manufacturies } }
  sakuya_b3_country_tech_manufacturies_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = manufacturies } } } }
  sakuya_b3_country_tech_shaft_mining_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = shaft_mining } }
  sakuya_b3_country_tech_shaft_mining_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = shaft_mining } } } }
  sakuya_b3_country_tech_cotton_gin_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = cotton_gin } }
  sakuya_b3_country_tech_cotton_gin_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = cotton_gin } } } }
  sakuya_b3_country_tech_lathe_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = lathe } }
  sakuya_b3_country_tech_lathe_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = lathe } } } }
  sakuya_b3_country_tech_distillation_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = distillation } }
  sakuya_b3_country_tech_distillation_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = distillation } } } }
  sakuya_b3_country_tech_steelworking_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = steelworking } }
  sakuya_b3_country_tech_steelworking_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = steelworking } } } }
  sakuya_b3_country_tech_prospecting_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = prospecting } }
  sakuya_b3_country_tech_prospecting_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = prospecting } } } }
  sakuya_b3_country_tech_crystal_glass_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = crystal_glass } }
  sakuya_b3_country_tech_crystal_glass_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = crystal_glass } } } }
  sakuya_b3_country_tech_intensive_agriculture_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = intensive_agriculture } }
  sakuya_b3_country_tech_intensive_agriculture_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = intensive_agriculture } } } }
  sakuya_b3_country_tech_fractional_distillation_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = fractional_distillation } }
  sakuya_b3_country_tech_fractional_distillation_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = fractional_distillation } } } }
  sakuya_b3_country_tech_canneries_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = canneries } }
  sakuya_b3_country_tech_canneries_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = canneries } } } }
  sakuya_b3_country_tech_watertube_boiler_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = watertube_boiler } }
  sakuya_b3_country_tech_watertube_boiler_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = watertube_boiler } } } }
  sakuya_b3_country_tech_atmospheric_engine_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = atmospheric_engine } }
  sakuya_b3_country_tech_atmospheric_engine_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = atmospheric_engine } } } }
  sakuya_b3_country_tech_railways_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = railways } }
  sakuya_b3_country_tech_railways_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = railways } } } }
  sakuya_b3_country_tech_chemical_bleaching_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = chemical_bleaching } }
  sakuya_b3_country_tech_chemical_bleaching_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = chemical_bleaching } } } }
  sakuya_b3_country_tech_nitroglycerin_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = nitroglycerin } }
  sakuya_b3_country_tech_nitroglycerin_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = nitroglycerin } } } }
  sakuya_b3_country_tech_bessemer_process_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = bessemer_process } }
  sakuya_b3_country_tech_bessemer_process_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = bessemer_process } } } }
  sakuya_b3_country_tech_baking_powder_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = baking_powder } }
  sakuya_b3_country_tech_baking_powder_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = baking_powder } } } }
  sakuya_b3_country_tech_mechanized_workshops_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mechanized_workshops } }
  sakuya_b3_country_tech_mechanized_workshops_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mechanized_workshops } } } }
  sakuya_b3_country_tech_mechanical_tools_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mechanical_tools } }
  sakuya_b3_country_tech_mechanical_tools_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mechanical_tools } } } }
  sakuya_b3_country_tech_improved_fertilizer_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = improved_fertilizer } }
  sakuya_b3_country_tech_improved_fertilizer_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = improved_fertilizer } } } }
  sakuya_b3_country_tech_steam_donkey_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = steam_donkey } }
  sakuya_b3_country_tech_steam_donkey_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = steam_donkey } } } }
  sakuya_b3_country_tech_dynamite_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = dynamite } }
  sakuya_b3_country_tech_dynamite_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = dynamite } } } }
  sakuya_b3_country_tech_rubber_mastication_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = rubber_mastication } }
  sakuya_b3_country_tech_rubber_mastication_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = rubber_mastication } } } }
  sakuya_b3_country_tech_rotary_valve_engine_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = rotary_valve_engine } }
  sakuya_b3_country_tech_rotary_valve_engine_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = rotary_valve_engine } } } }
  sakuya_b3_country_tech_reinforced_concrete_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = reinforced_concrete } }
  sakuya_b3_country_tech_reinforced_concrete_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = reinforced_concrete } } } }
  sakuya_b3_country_tech_threshing_machine_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = threshing_machine } }
  sakuya_b3_country_tech_threshing_machine_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = threshing_machine } } } }
  sakuya_b3_country_tech_pumpjacks_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = pumpjacks } }
  sakuya_b3_country_tech_pumpjacks_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = pumpjacks } } } }
  sakuya_b3_country_tech_aniline_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = aniline } }
  sakuya_b3_country_tech_aniline_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = aniline } } } }
  sakuya_b3_country_tech_open_hearth_process_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = open_hearth_process } }
  sakuya_b3_country_tech_open_hearth_process_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = open_hearth_process } } } }
  sakuya_b3_country_tech_vulcanization_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = vulcanization } }
  sakuya_b3_country_tech_vulcanization_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = vulcanization } } } }
  sakuya_b3_country_tech_vacuum_canning_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = vacuum_canning } }
  sakuya_b3_country_tech_vacuum_canning_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = vacuum_canning } } } }
  sakuya_b3_country_tech_shift_work_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = shift_work } }
  sakuya_b3_country_tech_shift_work_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = shift_work } } } }
  sakuya_b3_country_tech_steel_railway_cars_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = steel_railway_cars } }
  sakuya_b3_country_tech_steel_railway_cars_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = steel_railway_cars } } } }
  sakuya_b3_country_tech_electrical_generation_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = electrical_generation } }
  sakuya_b3_country_tech_electrical_generation_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = electrical_generation } } } }
  sakuya_b3_country_tech_mechanized_farming_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mechanized_farming } }
  sakuya_b3_country_tech_mechanized_farming_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mechanized_farming } } } }
  sakuya_b3_country_tech_art_silk_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = art_silk } }
  sakuya_b3_country_tech_art_silk_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = art_silk } } } }
  sakuya_b3_country_tech_automatic_bottle_blowers_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = automatic_bottle_blowers } }
  sakuya_b3_country_tech_automatic_bottle_blowers_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = automatic_bottle_blowers } } } }
  sakuya_b3_country_tech_conveyors_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = conveyors } }
  sakuya_b3_country_tech_conveyors_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = conveyors } } } }
  sakuya_b3_country_tech_pasteurization_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = pasteurization } }
  sakuya_b3_country_tech_pasteurization_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = pasteurization } } } }
  sakuya_b3_country_tech_electric_railway_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = electric_railway } }
  sakuya_b3_country_tech_electric_railway_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = electric_railway } } } }
  sakuya_b3_country_tech_combustion_engine_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = combustion_engine } }
  sakuya_b3_country_tech_combustion_engine_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = combustion_engine } } } }
  sakuya_b3_country_tech_pneumatic_tools_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = pneumatic_tools } }
  sakuya_b3_country_tech_pneumatic_tools_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = pneumatic_tools } } } }
  sakuya_b3_country_tech_nitrogen_fixation_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = nitrogen_fixation } }
  sakuya_b3_country_tech_nitrogen_fixation_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = nitrogen_fixation } } } }
  sakuya_b3_country_tech_electric_arc_process_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = electric_arc_process } }
  sakuya_b3_country_tech_electric_arc_process_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = electric_arc_process } } } }
  sakuya_b3_country_tech_steam_turbine_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = steam_turbine } }
  sakuya_b3_country_tech_steam_turbine_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = steam_turbine } } } }
  sakuya_b3_country_tech_plastics_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = plastics } }
  sakuya_b3_country_tech_plastics_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = plastics } } } }
  sakuya_b3_country_tech_electrical_capacitors_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = electrical_capacitors } }
  sakuya_b3_country_tech_electrical_capacitors_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = electrical_capacitors } } } }
  sakuya_b3_country_tech_radio_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = radio } }
  sakuya_b3_country_tech_radio_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = radio } } } }
  sakuya_b3_country_tech_telephone_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = telephone } }
  sakuya_b3_country_tech_telephone_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = telephone } } } }
  sakuya_b3_country_tech_dough_rollers_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = dough_rollers } }
  sakuya_b3_country_tech_dough_rollers_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = dough_rollers } } } }
  sakuya_b3_country_tech_flash_freezing_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = flash_freezing } }
  sakuya_b3_country_tech_flash_freezing_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = flash_freezing } } } }
  sakuya_b3_country_tech_oil_turbine_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = oil_turbine } }
  sakuya_b3_country_tech_oil_turbine_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = oil_turbine } } } }
  sakuya_b3_country_tech_arc_welding_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = arc_welding } }
  sakuya_b3_country_tech_arc_welding_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = arc_welding } } } }
  sakuya_b3_country_tech_compression_ignition_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = compression_ignition } }
  sakuya_b3_country_tech_compression_ignition_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = compression_ignition } } } }
  sakuya_b3_country_tech_standing_army_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = standing_army } }
  sakuya_b3_country_tech_standing_army_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = standing_army } } } }
  sakuya_b3_country_tech_navigation_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = navigation } }
  sakuya_b3_country_tech_navigation_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = navigation } } } }
  sakuya_b3_country_tech_drydocks_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = drydocks } }
  sakuya_b3_country_tech_drydocks_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = drydocks } } } }
  sakuya_b3_country_tech_mandatory_service_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mandatory_service } }
  sakuya_b3_country_tech_mandatory_service_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mandatory_service } } } }
  sakuya_b3_country_tech_gunsmithing_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = gunsmithing } }
  sakuya_b3_country_tech_gunsmithing_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = gunsmithing } } } }
  sakuya_b3_country_tech_artillery_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = artillery } }
  sakuya_b3_country_tech_artillery_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = artillery } } } }
  sakuya_b3_country_tech_military_drill_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = military_drill } }
  sakuya_b3_country_tech_military_drill_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = military_drill } } } }
  sakuya_b3_country_tech_napoleonic_warfare_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = napoleonic_warfare } }
  sakuya_b3_country_tech_napoleonic_warfare_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = napoleonic_warfare } } } }
  sakuya_b3_country_tech_admiralty_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = admiralty } }
  sakuya_b3_country_tech_admiralty_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = admiralty } } } }
  sakuya_b3_country_tech_army_reserves_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = army_reserves } }
  sakuya_b3_country_tech_army_reserves_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = army_reserves } } } }
  sakuya_b3_country_tech_line_infantry_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = line_infantry } }
  sakuya_b3_country_tech_line_infantry_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = line_infantry } } } }
  sakuya_b3_country_tech_paddle_steamer_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = paddle_steamer } }
  sakuya_b3_country_tech_paddle_steamer_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = paddle_steamer } } } }
  sakuya_b3_country_tech_field_works_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = field_works } }
  sakuya_b3_country_tech_field_works_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = field_works } } } }
  sakuya_b3_country_tech_logistics_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = logistics } }
  sakuya_b3_country_tech_logistics_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = logistics } } } }
  sakuya_b3_country_tech_triage_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = triage } }
  sakuya_b3_country_tech_triage_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = triage } } } }
  sakuya_b3_country_tech_shell_gun_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = shell_gun } }
  sakuya_b3_country_tech_shell_gun_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = shell_gun } } } }
  sakuya_b3_country_tech_percussion_cap_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = percussion_cap } }
  sakuya_b3_country_tech_percussion_cap_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = percussion_cap } } } }
  sakuya_b3_country_tech_rifling_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = rifling } }
  sakuya_b3_country_tech_rifling_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = rifling } } } }
  sakuya_b3_country_tech_general_staff_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = general_staff } }
  sakuya_b3_country_tech_general_staff_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = general_staff } } } }
  sakuya_b3_country_tech_screw_frigate_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = screw_frigate } }
  sakuya_b3_country_tech_screw_frigate_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = screw_frigate } } } }
  sakuya_b3_country_tech_power_of_the_purse_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = power_of_the_purse } }
  sakuya_b3_country_tech_power_of_the_purse_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = power_of_the_purse } } } }
  sakuya_b3_country_tech_hydraulic_cranes_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = hydraulic_cranes } }
  sakuya_b3_country_tech_hydraulic_cranes_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = hydraulic_cranes } } } }
  sakuya_b3_country_tech_modern_nursing_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = modern_nursing } }
  sakuya_b3_country_tech_modern_nursing_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = modern_nursing } } } }
  sakuya_b3_country_tech_enlistment_offices_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = enlistment_offices } }
  sakuya_b3_country_tech_enlistment_offices_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = enlistment_offices } } } }
  sakuya_b3_country_tech_electric_telegraph_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = electric_telegraph } }
  sakuya_b3_country_tech_electric_telegraph_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = electric_telegraph } } } }
  sakuya_b3_country_tech_military_statistics_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = military_statistics } }
  sakuya_b3_country_tech_military_statistics_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = military_statistics } } } }
  sakuya_b3_country_tech_repeaters_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = repeaters } }
  sakuya_b3_country_tech_repeaters_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = repeaters } } } }
  sakuya_b3_country_tech_breech_loading_artillery_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = breech_loading_artillery } }
  sakuya_b3_country_tech_breech_loading_artillery_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = breech_loading_artillery } } } }
  sakuya_b3_country_tech_handcranked_machine_gun_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = handcranked_machine_gun } }
  sakuya_b3_country_tech_handcranked_machine_gun_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = handcranked_machine_gun } } } }
  sakuya_b3_country_tech_self_propelled_torpedoes_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = self_propelled_torpedoes } }
  sakuya_b3_country_tech_self_propelled_torpedoes_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = self_propelled_torpedoes } } } }
  sakuya_b3_country_tech_monitor_tech_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = monitor_tech } }
  sakuya_b3_country_tech_monitor_tech_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = monitor_tech } } } }
  sakuya_b3_country_tech_ironclad_tech_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = ironclad_tech } }
  sakuya_b3_country_tech_ironclad_tech_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = ironclad_tech } } } }
  sakuya_b3_country_tech_jeune_ecole_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = jeune_ecole } }
  sakuya_b3_country_tech_jeune_ecole_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = jeune_ecole } } } }
  sakuya_b3_country_tech_floating_harbor_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = floating_harbor } }
  sakuya_b3_country_tech_floating_harbor_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = floating_harbor } } } }
  sakuya_b3_country_tech_gantry_cranes_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = gantry_cranes } }
  sakuya_b3_country_tech_gantry_cranes_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = gantry_cranes } } } }
  sakuya_b3_country_tech_trench_works_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = trench_works } }
  sakuya_b3_country_tech_trench_works_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = trench_works } } } }
  sakuya_b3_country_tech_war_propaganda_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = war_propaganda } }
  sakuya_b3_country_tech_war_propaganda_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = war_propaganda } } } }
  sakuya_b3_country_tech_wargaming_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = wargaming } }
  sakuya_b3_country_tech_wargaming_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = wargaming } } } }
  sakuya_b3_country_tech_defense_in_depth_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = defense_in_depth } }
  sakuya_b3_country_tech_defense_in_depth_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = defense_in_depth } } } }
  sakuya_b3_country_tech_bolt_action_rifles_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = bolt_action_rifles } }
  sakuya_b3_country_tech_bolt_action_rifles_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = bolt_action_rifles } } } }
  sakuya_b3_country_tech_automatic_machine_guns_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = automatic_machine_guns } }
  sakuya_b3_country_tech_automatic_machine_guns_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = automatic_machine_guns } } } }
  sakuya_b3_country_tech_submarine_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = submarine } }
  sakuya_b3_country_tech_submarine_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = submarine } } } }
  sakuya_b3_country_tech_pre_dreadnought_tech_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = pre_dreadnought_tech } }
  sakuya_b3_country_tech_pre_dreadnought_tech_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = pre_dreadnought_tech } } } }
  sakuya_b3_country_tech_dreadnought_tech_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = dreadnought_tech } }
  sakuya_b3_country_tech_dreadnought_tech_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = dreadnought_tech } } } }
  sakuya_b3_country_tech_sea_lane_strategies_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = sea_lane_strategies } }
  sakuya_b3_country_tech_sea_lane_strategies_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = sea_lane_strategies } } } }
  sakuya_b3_country_tech_landing_craft_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = landing_craft } }
  sakuya_b3_country_tech_landing_craft_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = landing_craft } } } }
  sakuya_b3_country_tech_concrete_dockyards_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = concrete_dockyards } }
  sakuya_b3_country_tech_concrete_dockyards_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = concrete_dockyards } } } }
  sakuya_b3_country_tech_destroyer_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = destroyer } }
  sakuya_b3_country_tech_destroyer_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = destroyer } } } }
  sakuya_b3_country_tech_nco_training_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = nco_training } }
  sakuya_b3_country_tech_nco_training_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = nco_training } } } }
  sakuya_b3_country_tech_chemical_warfare_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = chemical_warfare } }
  sakuya_b3_country_tech_chemical_warfare_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = chemical_warfare } } } }
  sakuya_b3_country_tech_stormtroopers_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = stormtroopers } }
  sakuya_b3_country_tech_stormtroopers_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = stormtroopers } } } }
  sakuya_b3_country_tech_concrete_fortifications_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = concrete_fortifications } }
  sakuya_b3_country_tech_concrete_fortifications_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = concrete_fortifications } } } }
  sakuya_b3_country_tech_mobile_armor_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mobile_armor } }
  sakuya_b3_country_tech_mobile_armor_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mobile_armor } } } }
  sakuya_b3_country_tech_military_aviation_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = military_aviation } }
  sakuya_b3_country_tech_military_aviation_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = military_aviation } } } }
  sakuya_b3_country_tech_flamethrowers_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = flamethrowers } }
  sakuya_b3_country_tech_flamethrowers_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = flamethrowers } } } }
  sakuya_b3_country_tech_carrier_tech_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = carrier_tech } }
  sakuya_b3_country_tech_carrier_tech_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = carrier_tech } } } }
  sakuya_b3_country_tech_battleship_tech_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = battleship_tech } }
  sakuya_b3_country_tech_battleship_tech_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = battleship_tech } } } }
  sakuya_b3_country_tech_battlefleet_tactics_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = battlefleet_tactics } }
  sakuya_b3_country_tech_battlefleet_tactics_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = battlefleet_tactics } } } }
  sakuya_b3_country_tech_urbanization_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = urbanization } }
  sakuya_b3_country_tech_urbanization_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = urbanization } } } }
  sakuya_b3_country_tech_urban_planning_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = urban_planning } }
  sakuya_b3_country_tech_urban_planning_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = urban_planning } } } }
  sakuya_b3_country_tech_rationalism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = rationalism } }
  sakuya_b3_country_tech_rationalism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = rationalism } } } }
  sakuya_b3_country_tech_tech_bureaucracy_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = tech_bureaucracy } }
  sakuya_b3_country_tech_tech_bureaucracy_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = tech_bureaucracy } } } }
  sakuya_b3_country_tech_currency_standards_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = currency_standards } }
  sakuya_b3_country_tech_currency_standards_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = currency_standards } } } }
  sakuya_b3_country_tech_democracy_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = democracy } }
  sakuya_b3_country_tech_democracy_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = democracy } } } }
  sakuya_b3_country_tech_romanticism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = romanticism } }
  sakuya_b3_country_tech_romanticism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = romanticism } } } }
  sakuya_b3_country_tech_international_trade_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = international_trade } }
  sakuya_b3_country_tech_international_trade_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = international_trade } } } }
  sakuya_b3_country_tech_centralization_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = centralization } }
  sakuya_b3_country_tech_centralization_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = centralization } } } }
  sakuya_b3_country_tech_banking_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = banking } }
  sakuya_b3_country_tech_banking_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = banking } } } }
  sakuya_b3_country_tech_academia_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = academia } }
  sakuya_b3_country_tech_academia_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = academia } } } }
  sakuya_b3_country_tech_colonization_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = colonization } }
  sakuya_b3_country_tech_colonization_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = colonization } } } }
  sakuya_b3_country_tech_international_relations_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = international_relations } }
  sakuya_b3_country_tech_international_relations_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = international_relations } } } }
  sakuya_b3_country_tech_law_enforcement_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = law_enforcement } }
  sakuya_b3_country_tech_law_enforcement_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = law_enforcement } } } }
  sakuya_b3_country_tech_stock_exchange_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = stock_exchange } }
  sakuya_b3_country_tech_stock_exchange_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = stock_exchange } } } }
  sakuya_b3_country_tech_medical_degrees_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = medical_degrees } }
  sakuya_b3_country_tech_medical_degrees_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = medical_degrees } } } }
  sakuya_b3_country_tech_mass_communication_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mass_communication } }
  sakuya_b3_country_tech_mass_communication_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mass_communication } } } }
  sakuya_b3_country_tech_empiricism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = empiricism } }
  sakuya_b3_country_tech_empiricism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = empiricism } } } }
  sakuya_b3_country_tech_corporate_charters_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = corporate_charters } }
  sakuya_b3_country_tech_corporate_charters_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = corporate_charters } } } }
  sakuya_b3_country_tech_egalitarianism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = egalitarianism } }
  sakuya_b3_country_tech_egalitarianism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = egalitarianism } } } }
  sakuya_b3_country_tech_pharmaceuticals_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = pharmaceuticals } }
  sakuya_b3_country_tech_pharmaceuticals_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = pharmaceuticals } } } }
  sakuya_b3_country_tech_modern_sewerage_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = modern_sewerage } }
  sakuya_b3_country_tech_modern_sewerage_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = modern_sewerage } } } }
  sakuya_b3_country_tech_quinine_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = quinine } }
  sakuya_b3_country_tech_quinine_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = quinine } } } }
  sakuya_b3_country_tech_organized_sports_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = organized_sports } }
  sakuya_b3_country_tech_organized_sports_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = organized_sports } } } }
  sakuya_b3_country_tech_central_archives_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = central_archives } }
  sakuya_b3_country_tech_central_archives_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = central_archives } } } }
  sakuya_b3_country_tech_central_banking_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = central_banking } }
  sakuya_b3_country_tech_central_banking_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = central_banking } } } }
  sakuya_b3_country_tech_joint_stock_companies_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = joint_stock_companies } }
  sakuya_b3_country_tech_joint_stock_companies_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = joint_stock_companies } } } }
  sakuya_b3_country_tech_dialectics_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = dialectics } }
  sakuya_b3_country_tech_dialectics_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = dialectics } } } }
  sakuya_b3_country_tech_psychiatry_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = psychiatry } }
  sakuya_b3_country_tech_psychiatry_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = psychiatry } } } }
  sakuya_b3_country_tech_realism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = realism } }
  sakuya_b3_country_tech_realism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = realism } } } }
  sakuya_b3_country_tech_nationalism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = nationalism } }
  sakuya_b3_country_tech_nationalism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = nationalism } } } }
  sakuya_b3_country_tech_labor_movement_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = labor_movement } }
  sakuya_b3_country_tech_labor_movement_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = labor_movement } } } }
  sakuya_b3_country_tech_postal_savings_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = postal_savings } }
  sakuya_b3_country_tech_postal_savings_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = postal_savings } } } }
  sakuya_b3_country_tech_human_rights_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = human_rights } }
  sakuya_b3_country_tech_human_rights_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = human_rights } } } }
  sakuya_b3_country_tech_feminism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = feminism } }
  sakuya_b3_country_tech_feminism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = feminism } } } }
  sakuya_b3_country_tech_steel_frame_buildings_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = steel_frame_buildings } }
  sakuya_b3_country_tech_steel_frame_buildings_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = steel_frame_buildings } } } }
  sakuya_b3_country_tech_civilizing_mission_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = civilizing_mission } }
  sakuya_b3_country_tech_civilizing_mission_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = civilizing_mission } } } }
  sakuya_b3_country_tech_anarchism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = anarchism } }
  sakuya_b3_country_tech_anarchism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = anarchism } } } }
  sakuya_b3_country_tech_socialism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = socialism } }
  sakuya_b3_country_tech_socialism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = socialism } } } }
  sakuya_b3_country_tech_corporatism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = corporatism } }
  sakuya_b3_country_tech_corporatism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = corporatism } } } }
  sakuya_b3_country_tech_pan_nationalism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = pan-nationalism } }
  sakuya_b3_country_tech_pan_nationalism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = pan-nationalism } } } }
  sakuya_b3_country_tech_mutual_funds_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mutual_funds } }
  sakuya_b3_country_tech_mutual_funds_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mutual_funds } } } }
  sakuya_b3_country_tech_investment_banks_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = investment_banks } }
  sakuya_b3_country_tech_investment_banks_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = investment_banks } } } }
  sakuya_b3_country_tech_camera_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = camera } }
  sakuya_b3_country_tech_camera_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = camera } } } }
  sakuya_b3_country_tech_philosophical_pragmatism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = philosophical_pragmatism } }
  sakuya_b3_country_tech_philosophical_pragmatism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = philosophical_pragmatism } } } }
  sakuya_b3_country_tech_identification_documents_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = identification_documents } }
  sakuya_b3_country_tech_identification_documents_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = identification_documents } } } }
  sakuya_b3_country_tech_elevator_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = elevator } }
  sakuya_b3_country_tech_elevator_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = elevator } } } }
  sakuya_b3_country_tech_zeppelins_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = zeppelins } }
  sakuya_b3_country_tech_zeppelins_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = zeppelins } } } }
  sakuya_b3_country_tech_malaria_prevention_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = malaria_prevention } }
  sakuya_b3_country_tech_malaria_prevention_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = malaria_prevention } } } }
  sakuya_b3_country_tech_central_planning_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = central_planning } }
  sakuya_b3_country_tech_central_planning_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = central_planning } } } }
  sakuya_b3_country_tech_political_agitation_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = political_agitation } }
  sakuya_b3_country_tech_political_agitation_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = political_agitation } } } }
  sakuya_b3_country_tech_international_exchange_standards_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = international_exchange_standards } }
  sakuya_b3_country_tech_international_exchange_standards_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = international_exchange_standards } } } }
  sakuya_b3_country_tech_corporate_management_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = corporate_management } }
  sakuya_b3_country_tech_corporate_management_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = corporate_management } } } }
  sakuya_b3_country_tech_psychoanalysis_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = psychoanalysis } }
  sakuya_b3_country_tech_psychoanalysis_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = psychoanalysis } } } }
  sakuya_b3_country_tech_film_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = film } }
  sakuya_b3_country_tech_film_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = film } } } }
  sakuya_b3_country_tech_multilateral_alliances_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = multilateral_alliances } }
  sakuya_b3_country_tech_multilateral_alliances_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = multilateral_alliances } } } }
  sakuya_b3_country_tech_mass_surveillance_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mass_surveillance } }
  sakuya_b3_country_tech_mass_surveillance_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mass_surveillance } } } }
  sakuya_b3_country_tech_antibiotics_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = antibiotics } }
  sakuya_b3_country_tech_antibiotics_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = antibiotics } } } }
  sakuya_b3_country_tech_mass_propaganda_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = mass_propaganda } }
  sakuya_b3_country_tech_mass_propaganda_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = mass_propaganda } } } }
  sakuya_b3_country_tech_modern_financial_instruments_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = modern_financial_instruments } }
  sakuya_b3_country_tech_modern_financial_instruments_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = modern_financial_instruments } } } }
  sakuya_b3_country_tech_macroeconomics_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = macroeconomics } }
  sakuya_b3_country_tech_macroeconomics_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = macroeconomics } } } }
  sakuya_b3_country_tech_behaviorism_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = behaviorism } }
  sakuya_b3_country_tech_behaviorism_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = behaviorism } } } }
  sakuya_b3_country_tech_analytical_philosophy_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = analytical_philosophy } }
  sakuya_b3_country_tech_analytical_philosophy_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = analytical_philosophy } } } }
  sakuya_b3_country_tech_paved_roads_player = { scope = country is_shown = { is_player = yes } effect = { add_technology_researched = paved_roads } }
  sakuya_b3_country_tech_paved_roads_marked = { scope = country is_shown = { is_player = yes any_country = { has_variable = sakuya_mark_country_target } } effect = { sakuya_b3_resolve_marked_country_effect = yes if = { limit = { has_variable = sakuya_b3_marked_country_found exists = scope:sakuya_b3_marked_country_scope } scope:sakuya_b3_marked_country_scope = { add_technology_researched = paved_roads } } } }

sakuya_b3_has_marked_character_check = {
    scope = country
    is_shown = { is_player = yes has_variable = sakuya_b3_marked_character_cached }
}

sakuya_b3_sync_marked_character_cache = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        remove_variable = sakuya_b3_marked_character_cached
        if = {
            limit = {
                OR = {
                    any_country = {
                        any_scope_character = {
                            has_variable = sakuya_mark_character_target
                        }
                    }
                    any_character_in_exile_pool = {
                        has_variable = sakuya_mark_character_target
                    }
                }
            }
            set_variable = sakuya_b3_marked_character_cached
        }
    }
}

sakuya_b3_special_trait_ip4_check = {
    scope = country
    is_shown = {
        is_player = yes
        has_dlc_feature = ip4_content
    }
}

sakuya_b3_has_marked_character_and_country_check = {
    scope = country
    is_shown = {
        is_player = yes
        has_variable = sakuya_b3_marked_character_cached
        any_country = { has_variable = sakuya_mark_country_target }
    }
}

sakuya_b3_country_agitator_slots_check = {
    scope = country
    is_shown = { is_player = yes has_variable = sakuya_b3_country_agitator_slots_active }
}

sakuya_b3_country_agitator_slots_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_apply_player_agitator_slots_modifier_delta_effect = { DELTA = 1 } }
}

sakuya_b3_country_agitator_slots_add_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_apply_player_agitator_slots_modifier_delta_effect = { DELTA = 99 } }
}

sakuya_b3_country_agitator_slots_add_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_apply_marked_agitator_slots_modifier_delta_effect = { DELTA = 1 } }
}

sakuya_b3_country_agitator_slots_sub = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_apply_player_agitator_slots_modifier_delta_effect = { DELTA = -1 } }
}

sakuya_b3_country_agitator_slots_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_clear_all_agitator_slots_modifier_effect = yes }
}

sakuya_b3_fx_unify_player_character_ideology = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_unify_player_character_ideology_to_ruler_effect = yes }
}

sakuya_b3_fx_unify_marked_country_character_ideology = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_unify_marked_country_character_ideology_to_ruler_effect = yes }
}

sakuya_b3_fx_marked_character_life_experience = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_add_marked_character_life_experience_effect = yes }
}

sakuya_b3_fx_marked_character_set_adult = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_set_marked_character_as_adult_effect = yes }
}

sakuya_b3_fx_marked_character_set_noble = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_set_marked_character_as_noble_effect = yes }
}

sakuya_b3_fx_marked_character_unset_noble = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_unset_marked_character_as_noble_effect = yes }
}

sakuya_b3_can_set_selected_ig_leader_check = {
    scope = country
    is_shown = {
        is_player = yes
        has_variable = sakuya_b3_marked_character_cached
        calc_true_if = {
            amount = 1
            has_variable = sakuya_b5_sel_ig_armed_forces
            has_variable = sakuya_b5_sel_ig_devout
            has_variable = sakuya_b5_sel_ig_industrialists
            has_variable = sakuya_b5_sel_ig_intelligentsia
            has_variable = sakuya_b5_sel_ig_landowners
            has_variable = sakuya_b5_sel_ig_petty_bourgeoisie
            has_variable = sakuya_b5_sel_ig_rural_folk
            has_variable = sakuya_b5_sel_ig_trade_unions
        }
        OR = {
            AND = {
                has_variable = sakuya_b5_sel_ig_armed_forces
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = { is_same_interest_group_type = ig:ig_armed_forces }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_devout
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = { is_same_interest_group_type = ig:ig_devout }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_industrialists
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = { is_same_interest_group_type = ig:ig_industrialists }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_intelligentsia
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = { is_same_interest_group_type = ig:ig_intelligentsia }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_landowners
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = { is_same_interest_group_type = ig:ig_landowners }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_petty_bourgeoisie
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = { is_same_interest_group_type = ig:ig_petty_bourgeoisie }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_rural_folk
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = { is_same_interest_group_type = ig:ig_rural_folk }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_trade_unions
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = { is_same_interest_group_type = ig:ig_trade_unions }
                    }
                }
            }
        }
    }
}

sakuya_b3_marked_character_commander_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_country = {
            any_scope_character = {
                has_variable = sakuya_mark_character_target
                OR = { has_role = character_role_general has_role = character_role_admiral }
            }
        }
    }
}

sakuya_b3_marked_character_admiral_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_country = {
            any_scope_character = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_admiral
            }
        }
    }
}

sakuya_b3_marked_character_politician_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_country = {
            any_scope_character = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_politician
            }
        }
    }
}

sakuya_b3_marked_character_agitator_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_country = {
            any_scope_character = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_agitator
            }
        }
    }
}

sakuya_b3_marked_character_general_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_country = {
            any_scope_character = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_general
            }
        }
    }
}

sakuya_main_03_02_mark_character_open = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        remove_variable = sakuya_main_force_show
        remove_variable = sakuya_main_03_02_mark_country_found
        remove_variable = sakuya_main_03_02_force_empty_notice
        remove_variable = sakuya_main_03_02_page_2
        every_country = {
            limit = { has_variable = sakuya_mark_country_target }
            root = { set_variable = sakuya_main_03_02_mark_country_found }
            save_scope_as = sakuya_main_03_02_marked_country_scope
        }
        if = {
            limit = {
                has_variable = sakuya_main_03_02_mark_country_found
                exists = scope:sakuya_main_03_02_marked_country_scope
            }
            trigger_event = { id = sakuya_main_03_02.1 popup = yes }
        }
        else = {
            set_variable = sakuya_main_03_02_force_empty_notice
            trigger_event = { id = sakuya_main_03_02.1 popup = yes }
        }
        remove_variable = sakuya_main_03_02_mark_country_found
    }
}

sakuya_main_03_02_mark_character_clear_all = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_clear_all_marked_character_effect = yes }
}

sakuya_b3_fx_transfer_marked_character = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_fx_transfer_marked_character_effect = yes }
}

sakuya_b3_fx_exile_marked_character = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_fx_exile_marked_character_effect = yes }
}

sakuya_b3_fx_kill_marked_character = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3_fx_kill_marked_character_effect = yes }
}

sakuya_b3_fx_role_politician_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_role_effect = {
            ADD_ROLE = character_role_politician
            REMOVE_ROLE = character_role_agitator
        }
    }
}

sakuya_b3_fx_role_politician_remove = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_role_effect = {
            ROLE = character_role_politician
        }
    }
}

sakuya_b3_fx_role_agitator_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_role_effect = {
            ADD_ROLE = character_role_agitator
            REMOVE_ROLE = character_role_politician
        }
    }
}

sakuya_b3_fx_role_agitator_remove = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_role_effect = {
            ROLE = character_role_agitator
        }
    }
}

sakuya_b3_fx_role_general_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_role_effect = {
            ADD_ROLE = character_role_general
            REMOVE_ROLE = character_role_admiral
        }
    }
}

sakuya_b3_fx_role_general_remove = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_role_effect = {
            ROLE = character_role_general
        }
    }
}

sakuya_b3_fx_role_admiral_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_role_effect = {
            ADD_ROLE = character_role_admiral
            REMOVE_ROLE = character_role_general
        }
    }
}

sakuya_b3_fx_role_admiral_remove = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_role_effect = {
            ROLE = character_role_admiral
        }
    }
}

sakuya_b3_character_modifier_popularity_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_popularity_value
        }
    }
}

sakuya_b3_char_mod_popularity_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_popularity
            VAR = sakuya_b3_character_popularity_value
            DELTA = 20
        }
    }
}

sakuya_b3_char_mod_popularity_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_popularity
            VAR = sakuya_b3_character_popularity_value
            DELTA = 2000
        }
    }
}

sakuya_b3_char_mod_popularity_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_popularity
            VAR = sakuya_b3_character_popularity_value
            DELTA = 5
        }
    }
}

sakuya_b3_char_mod_popularity_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_popularity
            VAR = sakuya_b3_character_popularity_value
            DELTA = -20
        }
    }
}

sakuya_b3_char_mod_popularity_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_popularity
            VAR = sakuya_b3_character_popularity_value
        }
    }
}

sakuya_b3_character_modifier_health_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_health_value
        }
    }
}

sakuya_b3_char_mod_health_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_health
            VAR = sakuya_b3_character_health_value
            DELTA = 10
        }
    }
}

sakuya_b3_char_mod_health_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_health
            VAR = sakuya_b3_character_health_value
            DELTA = 1000
        }
    }
}

sakuya_b3_char_mod_health_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_health
            VAR = sakuya_b3_character_health_value
            DELTA = 1
        }
    }
}

sakuya_b3_char_mod_health_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_health
            VAR = sakuya_b3_character_health_value
            DELTA = -10
        }
    }
}

sakuya_b3_char_mod_health_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_health
            VAR = sakuya_b3_character_health_value
        }
    }
}

sakuya_b3_character_modifier_command_limit_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_command_limit_value
        }
    }
}

sakuya_b3_char_mod_command_limit_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_command_limit
            VAR = sakuya_b3_character_command_limit_value
            DELTA = 5
        }
    }
}

sakuya_b3_char_mod_command_limit_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_command_limit
            VAR = sakuya_b3_character_command_limit_value
            DELTA = 500
        }
    }
}

sakuya_b3_char_mod_command_limit_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_command_limit
            VAR = sakuya_b3_character_command_limit_value
            DELTA = 1
        }
    }
}

sakuya_b3_char_mod_command_limit_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_command_limit
            VAR = sakuya_b3_character_command_limit_value
            DELTA = -5
        }
    }
}

sakuya_b3_char_mod_command_limit_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_command_limit
            VAR = sakuya_b3_character_command_limit_value
        }
    }
}

sakuya_b3_character_modifier_advancement_speed_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_advancement_speed_value
        }
    }
}

sakuya_b3_char_mod_advancement_speed_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_advancement_speed
            VAR = sakuya_b3_character_advancement_speed_value
            DELTA = 0.2
        }
    }
}

sakuya_b3_char_mod_advancement_speed_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_advancement_speed
            VAR = sakuya_b3_character_advancement_speed_value
            DELTA = 20
        }
    }
}

sakuya_b3_char_mod_advancement_speed_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_advancement_speed
            VAR = sakuya_b3_character_advancement_speed_value
            DELTA = 0.05
        }
    }
}

sakuya_b3_char_mod_advancement_speed_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_advancement_speed
            VAR = sakuya_b3_character_advancement_speed_value
            DELTA = -0.2
        }
    }
}

sakuya_b3_char_mod_advancement_speed_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_advancement_speed
            VAR = sakuya_b3_character_advancement_speed_value
        }
    }
}

sakuya_b3_character_modifier_supply_route_cost_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_supply_route_cost_value
        }
    }
}

sakuya_b3_char_mod_supply_route_cost_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_supply_route_cost
            VAR = sakuya_b3_character_supply_route_cost_value
            DELTA = -0.2
        }
    }
}

sakuya_b3_char_mod_supply_route_cost_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_supply_route_cost
            VAR = sakuya_b3_character_supply_route_cost_value
            DELTA = -20
        }
    }
}

sakuya_b3_char_mod_supply_route_cost_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_supply_route_cost
            VAR = sakuya_b3_character_supply_route_cost_value
            DELTA = -0.05
        }
    }
}

sakuya_b3_char_mod_supply_route_cost_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_supply_route_cost
            VAR = sakuya_b3_character_supply_route_cost_value
            DELTA = 0.2
        }
    }
}

sakuya_b3_char_mod_supply_route_cost_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_supply_route_cost
            VAR = sakuya_b3_character_supply_route_cost_value
        }
    }
}

sakuya_b3_character_modifier_convoy_protection_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_convoy_protection_value
        }
    }
}

sakuya_b3_char_mod_convoy_protection_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_convoy_protection
            VAR = sakuya_b3_character_convoy_protection_value
            DELTA = 0.2
        }
    }
}

sakuya_b3_char_mod_convoy_protection_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_convoy_protection
            VAR = sakuya_b3_character_convoy_protection_value
            DELTA = 20
        }
    }
}

sakuya_b3_char_mod_convoy_protection_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_convoy_protection
            VAR = sakuya_b3_character_convoy_protection_value
            DELTA = 0.05
        }
    }
}

sakuya_b3_char_mod_convoy_protection_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_convoy_protection
            VAR = sakuya_b3_character_convoy_protection_value
            DELTA = -0.2
        }
    }
}

sakuya_b3_char_mod_convoy_protection_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_convoy_protection
            VAR = sakuya_b3_character_convoy_protection_value
        }
    }
}

sakuya_b3_character_modifier_blockade_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_blockade_value
        }
    }
}

sakuya_b3_char_mod_blockade_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_blockade
            VAR = sakuya_b3_character_blockade_value
            DELTA = 0.2
        }
    }
}

sakuya_b3_char_mod_blockade_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_blockade
            VAR = sakuya_b3_character_blockade_value
            DELTA = 20
        }
    }
}

sakuya_b3_char_mod_blockade_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_blockade
            VAR = sakuya_b3_character_blockade_value
            DELTA = 0.05
        }
    }
}

sakuya_b3_char_mod_blockade_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_blockade
            VAR = sakuya_b3_character_blockade_value
            DELTA = -0.2
        }
    }
}

sakuya_b3_char_mod_blockade_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_blockade
            VAR = sakuya_b3_character_blockade_value
        }
    }
}

sakuya_b3_character_modifier_interception_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_interception_value
        }
    }
}

sakuya_b3_char_mod_interception_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_interception
            VAR = sakuya_b3_character_interception_value
            DELTA = 5
        }
    }
}

sakuya_b3_char_mod_interception_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_interception
            VAR = sakuya_b3_character_interception_value
            DELTA = 500
        }
    }
}

sakuya_b3_char_mod_interception_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_interception
            VAR = sakuya_b3_character_interception_value
            DELTA = 1
        }
    }
}

sakuya_b3_char_mod_interception_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_interception
            VAR = sakuya_b3_character_interception_value
            DELTA = -5
        }
    }
}

sakuya_b3_char_mod_interception_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_interception
            VAR = sakuya_b3_character_interception_value
        }
    }
}

sakuya_b3_character_modifier_convoy_raiding_check = {
    scope = country
    is_shown = {
        is_player = yes
        any_character = {
            has_variable = sakuya_mark_character_target
            has_variable = sakuya_b3_character_convoy_raiding_value
        }
    }
}

sakuya_b3_char_mod_convoy_raiding_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_convoy_raiding
            VAR = sakuya_b3_character_convoy_raiding_value
            DELTA = 0.2
        }
    }
}

sakuya_b3_char_mod_convoy_raiding_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_convoy_raiding
            VAR = sakuya_b3_character_convoy_raiding_value
            DELTA = 20
        }
    }
}

sakuya_b3_char_mod_convoy_raiding_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_convoy_raiding
            VAR = sakuya_b3_character_convoy_raiding_value
            DELTA = 0.05
        }
    }
}

sakuya_b3_char_mod_convoy_raiding_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_apply_marked_character_modifier_delta_effect = {
            MOD = sakuya_cheat_b3_character_convoy_raiding
            VAR = sakuya_b3_character_convoy_raiding_value
            DELTA = -0.2
        }
    }
}

sakuya_b3_char_mod_convoy_raiding_clear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_clear_marked_character_modifier_effect = {
            MOD = sakuya_cheat_b3_character_convoy_raiding
            VAR = sakuya_b3_character_convoy_raiding_value
        }
    }
}

sakuya_b3_ideology_set_moderate = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_moderate
        }
    }
}

sakuya_b3_ideology_set_pacifist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_pacifist
        }
    }
}

sakuya_b3_ideology_set_traditionalist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_traditionalist
        }
    }
}

sakuya_b3_ideology_set_traditionalist_minoritarian = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_traditionalist_minoritarian
        }
    }
}

sakuya_b3_ideology_set_royalist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_royalist
        }
    }
}

sakuya_b3_ideology_set_theocrat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_theocrat
        }
    }
}

sakuya_b3_ideology_set_humanitarian_royalist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_humanitarian_royalist
        }
    }
}

sakuya_b3_ideology_set_orleanist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_orleanist
        }
    }
}

sakuya_b3_ideology_set_legitimist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_legitimist
        }
    }
}

sakuya_b3_ideology_set_bonapartist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_bonapartist
        }
    }
}

sakuya_b3_ideology_set_carlist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_carlist
        }
    }
}

sakuya_b3_ideology_set_carlist_2 = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_carlist_2
        }
    }
}

sakuya_b3_ideology_set_miguelist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_miguelist
        }
    }
}

sakuya_b3_ideology_set_miguelist_2 = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_miguelist_2
        }
    }
}

sakuya_b3_ideology_set_reformer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_reformer
        }
    }
}

sakuya_b3_ideology_set_liberal_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_liberal_leader
        }
    }
}

sakuya_b3_ideology_set_market_liberal = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_market_liberal
        }
    }
}

sakuya_b3_ideology_set_feminist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_feminist
        }
    }
}

sakuya_b3_ideology_set_abolitionist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_abolitionist
        }
    }
}

sakuya_b3_ideology_set_humanitarian = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_humanitarian
        }
    }
}

sakuya_b3_ideology_set_positivist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_positivist
        }
    }
}

sakuya_b3_ideology_set_utilitarian_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_utilitarian_leader
        }
    }
}

sakuya_b3_ideology_set_modernizer_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_modernizer_leader
        }
    }
}

sakuya_b3_ideology_set_ilustrado_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_ilustrado_leader
        }
    }
}

sakuya_b3_ideology_set_protectionist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_protectionist
        }
    }
}

sakuya_b3_ideology_set_land_reformer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_land_reformer
        }
    }
}

sakuya_b3_ideology_set_jacksonian_democrat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_jacksonian_democrat
        }
    }
}

sakuya_b3_ideology_set_radical = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_radical
        }
    }
}

sakuya_b3_ideology_set_republican_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_republican_leader
        }
    }
}

sakuya_b3_ideology_set_social_democrat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_state_socialist
        }
    }
}

sakuya_b3_ideology_set_communist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_communist_leader
        }
    }
}

sakuya_b3_ideology_set_vanguardist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_vanguardist
        }
    }
}

sakuya_b3_ideology_set_anarchist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_anarchist
        }
    }
}

sakuya_b3_ideology_set_utopian = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_utopian
        }
    }
}

sakuya_b3_ideology_set_despotic_utopian = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_despotic_utopian
        }
    }
}

sakuya_b3_ideology_set_jingoist_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_jingoist_leader
        }
    }
}

sakuya_b3_ideology_set_ethno_nationalist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_ethno_nationalist
        }
    }
}

sakuya_b3_ideology_set_fascist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_fascist
        }
    }
}

sakuya_b3_ideology_set_authoritarian = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_authoritarian
        }
    }
}

sakuya_b3_ideology_set_integralist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_integralist
        }
    }
}

sakuya_b3_ideology_set_corporatist_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_corporatist_leader
        }
    }
}

sakuya_b3_ideology_set_sovereignist_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_sovereignist_leader
        }
    }
}

sakuya_b3_ideology_set_slaver = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_slaver
        }
    }
}

sakuya_b3_ideology_set_nihilist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_nihilist
        }
    }
}

sakuya_b3_ideology_set_luddite = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_luddite
        }
    }
}

sakuya_b3_ideology_set_child = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_child
        }
    }
}

sakuya_b3_ideology_set_mitogaku = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_mitogaku
        }
    }
}

sakuya_b3_ideology_set_shojoi = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_set_marked_character_ideology_effect = {
            IDEOLOGY = ideology_shojoi
        }
    }
}

sakuya_b3_trait_add_direct = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = direct
        }
    }
}

sakuya_b3_trait_remove_direct = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = direct
        }
    }
}

sakuya_b3_trait_add_persistent = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = persistent
        }
    }
}

sakuya_b3_trait_remove_persistent = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = persistent
        }
    }
}

sakuya_b3_trait_add_cautious = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = cautious
        }
    }
}

sakuya_b3_trait_remove_cautious = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = cautious
        }
    }
}

sakuya_b3_trait_add_arrogant = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = arrogant
        }
    }
}

sakuya_b3_trait_remove_arrogant = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = arrogant
        }
    }
}

sakuya_b3_trait_add_bigoted = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = bigoted
        }
    }
}

sakuya_b3_trait_remove_bigoted = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = bigoted
        }
    }
}

sakuya_b3_trait_add_reckless = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = reckless
        }
    }
}

sakuya_b3_trait_remove_reckless = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = reckless
        }
    }
}

sakuya_b3_trait_add_tactful = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = tactful
        }
    }
}

sakuya_b3_trait_remove_tactful = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = tactful
        }
    }
}

sakuya_b3_trait_add_ambitious = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = ambitious
        }
    }
}

sakuya_b3_trait_remove_ambitious = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = ambitious
        }
    }
}

sakuya_b3_trait_add_imperious = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = imperious
        }
    }
}

sakuya_b3_trait_remove_imperious = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = imperious
        }
    }
}

sakuya_b3_trait_add_wrathful = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = wrathful
        }
    }
}

sakuya_b3_trait_remove_wrathful = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = wrathful
        }
    }
}

sakuya_b3_trait_add_reserved = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = reserved
        }
    }
}

sakuya_b3_trait_remove_reserved = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = reserved
        }
    }
}

sakuya_b3_trait_add_cruel = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = cruel
        }
    }
}

sakuya_b3_trait_remove_cruel = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = cruel
        }
    }
}

sakuya_b3_trait_add_meticulous = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = meticulous
        }
    }
}

sakuya_b3_trait_remove_meticulous = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = meticulous
        }
    }
}

sakuya_b3_trait_add_charismatic = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = charismatic
        }
    }
}

sakuya_b3_trait_remove_charismatic = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = charismatic
        }
    }
}

sakuya_b3_trait_add_romantic = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = romantic
        }
    }
}

sakuya_b3_trait_remove_romantic = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = romantic
        }
    }
}

sakuya_b3_trait_add_brave = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = brave
        }
    }
}

sakuya_b3_trait_remove_brave = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = brave
        }
    }
}

sakuya_b3_trait_add_innovative = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = innovative
        }
    }
}

sakuya_b3_trait_remove_innovative = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = innovative
        }
    }
}

sakuya_b3_trait_add_hedonist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = hedonist
        }
    }
}

sakuya_b3_trait_remove_hedonist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = hedonist
        }
    }
}

sakuya_b3_trait_add_pious = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = pious
        }
    }
}

sakuya_b3_trait_remove_pious = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = pious
        }
    }
}

sakuya_b3_trait_add_imposing = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = imposing
        }
    }
}

sakuya_b3_trait_remove_imposing = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = imposing
        }
    }
}

sakuya_b3_trait_add_honorable = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = honorable
        }
    }
}

sakuya_b3_trait_remove_honorable = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = honorable
        }
    }
}

sakuya_b3_trait_add_ruthless = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = ruthless
        }
    }
}

sakuya_b3_trait_remove_ruthless = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = ruthless
        }
    }
}

sakuya_b3_trait_add_compliant = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = compliant
        }
    }
}

sakuya_b3_trait_remove_compliant = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = compliant
        }
    }
}

sakuya_b3_trait_add_aesthete = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = aesthete
        }
    }
}

sakuya_b3_trait_remove_aesthete = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = aesthete
        }
    }
}

sakuya_b3_trait_add_scarred = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = scarred
        }
    }
}

sakuya_b3_trait_remove_scarred = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = scarred
        }
    }
}

sakuya_b3_trait_add_wounded = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = wounded
        }
    }
}

sakuya_b3_trait_remove_wounded = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = wounded
        }
    }
}

sakuya_b3_trait_add_alcoholic = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = alcoholic
        }
    }
}

sakuya_b3_trait_remove_alcoholic = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = alcoholic
        }
    }
}

sakuya_b3_trait_add_opium_addiction = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = opium_addiction
        }
    }
}

sakuya_b3_trait_remove_opium_addiction = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = opium_addiction
        }
    }
}

sakuya_b3_trait_add_cocaine_addiction = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = cocaine_addiction
        }
    }
}

sakuya_b3_trait_remove_cocaine_addiction = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = cocaine_addiction
        }
    }
}

sakuya_b3_trait_add_cancer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = cancer
        }
    }
}

sakuya_b3_trait_remove_cancer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = cancer
        }
    }
}

sakuya_b3_trait_add_tuberculosis = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = tuberculosis
        }
    }
}

sakuya_b3_trait_remove_tuberculosis = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = tuberculosis
        }
    }
}

sakuya_b3_trait_add_grifter = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = grifter
        }
    }
}

sakuya_b3_trait_remove_grifter = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = grifter
        }
    }
}

sakuya_b3_trait_add_senile = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = senile
        }
    }
}

sakuya_b3_trait_remove_senile = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = senile
        }
    }
}

sakuya_b3_trait_add_syphilis = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = syphilis
        }
    }
}

sakuya_b3_trait_remove_syphilis = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = syphilis
        }
    }
}

sakuya_b3_trait_add_shellshocked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = shellshocked
        }
    }
}

sakuya_b3_trait_remove_shellshocked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = shellshocked
        }
    }
}

sakuya_b3_trait_add_psychological_affliction = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = psychological_affliction
        }
    }
}

sakuya_b3_trait_remove_psychological_affliction = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = psychological_affliction
        }
    }
}

sakuya_b3_trait_add_expensive_tastes = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expensive_tastes
        }
    }
}

sakuya_b3_trait_remove_expensive_tastes = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expensive_tastes
        }
    }
}

sakuya_b3_trait_add_kidney_stones = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = kidney_stones
        }
    }
}

sakuya_b3_trait_remove_kidney_stones = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = kidney_stones
        }
    }
}

sakuya_b3_trait_add_beetle_ear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = beetle_ear
        }
    }
}

sakuya_b3_trait_remove_beetle_ear = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = beetle_ear
        }
    }
}

sakuya_b3_trait_add_war_criminal = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = war_criminal
        }
    }
}

sakuya_b3_trait_remove_war_criminal = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = war_criminal
        }
    }
}

sakuya_b3_trait_add_sickly = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = sickly
        }
    }
}

sakuya_b3_trait_remove_sickly = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = sickly
        }
    }
}

sakuya_b3_trait_add_trait_child = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = trait_child
        }
    }
}

sakuya_b3_trait_remove_trait_child = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = trait_child
        }
    }
}

sakuya_b3_trait_add_resupply_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = resupply_commander
        }
    }
}

sakuya_b3_trait_remove_resupply_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = resupply_commander
        }
    }
}

sakuya_b3_trait_add_pillager = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = pillager
        }
    }
}

sakuya_b3_trait_remove_pillager = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = pillager
        }
    }
}

sakuya_b3_trait_add_surveyor = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = surveyor
        }
    }
}

sakuya_b3_trait_remove_surveyor = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = surveyor
        }
    }
}

sakuya_b3_trait_add_forest_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = forest_commander
        }
    }
}

sakuya_b3_trait_remove_forest_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = forest_commander
        }
    }
}

sakuya_b3_trait_add_plains_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = plains_commander
        }
    }
}

sakuya_b3_trait_remove_plains_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = plains_commander
        }
    }
}

sakuya_b3_trait_add_mountain_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = mountain_commander
        }
    }
}

sakuya_b3_trait_remove_mountain_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = mountain_commander
        }
    }
}

sakuya_b3_trait_add_basic_artillery_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_artillery_commander
        }
    }
}

sakuya_b3_trait_remove_basic_artillery_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_artillery_commander
        }
    }
}

sakuya_b3_trait_add_experienced_artillery_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_artillery_commander
        }
    }
}

sakuya_b3_trait_remove_experienced_artillery_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_artillery_commander
        }
    }
}

sakuya_b3_trait_add_expert_artillery_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_artillery_commander
        }
    }
}

sakuya_b3_trait_remove_expert_artillery_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_artillery_commander
        }
    }
}

sakuya_b3_trait_add_stalwart_defender = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = stalwart_defender
        }
    }
}

sakuya_b3_trait_remove_stalwart_defender = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = stalwart_defender
        }
    }
}

sakuya_b3_trait_add_trench_rat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = trench_rat
        }
    }
}

sakuya_b3_trait_remove_trench_rat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = trench_rat
        }
    }
}

sakuya_b3_trait_add_defense_in_depth_specialist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = defense_in_depth_specialist
        }
    }
}

sakuya_b3_trait_remove_defense_in_depth_specialist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = defense_in_depth_specialist
        }
    }
}

sakuya_b3_trait_add_basic_offensive_planner = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_offensive_planner
        }
    }
}

sakuya_b3_trait_remove_basic_offensive_planner = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_offensive_planner
        }
    }
}

sakuya_b3_trait_add_experienced_offensive_planner = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_offensive_planner
        }
    }
}

sakuya_b3_trait_remove_experienced_offensive_planner = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_offensive_planner
        }
    }
}

sakuya_b3_trait_add_expert_offensive_planner = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_offensive_planner
        }
    }
}

sakuya_b3_trait_remove_expert_offensive_planner = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_offensive_planner
        }
    }
}

sakuya_b3_trait_add_basic_defensive_strategist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_defensive_strategist
        }
    }
}

sakuya_b3_trait_remove_basic_defensive_strategist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_defensive_strategist
        }
    }
}

sakuya_b3_trait_add_experienced_defensive_strategist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_defensive_strategist
        }
    }
}

sakuya_b3_trait_remove_experienced_defensive_strategist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_defensive_strategist
        }
    }
}

sakuya_b3_trait_add_expert_defensive_strategist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_defensive_strategist
        }
    }
}

sakuya_b3_trait_remove_expert_defensive_strategist = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_defensive_strategist
        }
    }
}

sakuya_b3_trait_add_basic_naval_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_naval_commander
        }
    }
}

sakuya_b3_trait_remove_basic_naval_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_naval_commander
        }
    }
}

sakuya_b3_trait_add_experienced_naval_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_naval_commander
        }
    }
}

sakuya_b3_trait_remove_experienced_naval_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_naval_commander
        }
    }
}

sakuya_b3_trait_add_expert_naval_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_naval_commander
        }
    }
}

sakuya_b3_trait_remove_expert_naval_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_naval_commander
        }
    }
}

sakuya_b3_trait_add_convoy_raider_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = convoy_raider_commander
        }
    }
}

sakuya_b3_trait_remove_convoy_raider_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = convoy_raider_commander
        }
    }
}

sakuya_b3_trait_add_experienced_convoy_raider = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_convoy_raider
        }
    }
}

sakuya_b3_trait_remove_experienced_convoy_raider = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_convoy_raider
        }
    }
}

sakuya_b3_trait_add_expert_convoy_raider = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_convoy_raider
        }
    }
}

sakuya_b3_trait_remove_expert_convoy_raider = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_convoy_raider
        }
    }
}

sakuya_b3_trait_add_traditionalist_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = traditionalist_commander
        }
    }
}

sakuya_b3_trait_remove_traditionalist_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = traditionalist_commander
        }
    }
}

sakuya_b3_trait_add_popular_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = popular_commander
        }
    }
}

sakuya_b3_trait_remove_popular_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = popular_commander
        }
    }
}

sakuya_b3_trait_add_celebrity_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = celebrity_commander
        }
    }
}

sakuya_b3_trait_remove_celebrity_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = celebrity_commander
        }
    }
}

sakuya_b3_trait_add_dockyard_master = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = dockyard_master
        }
    }
}

sakuya_b3_trait_remove_dockyard_master = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = dockyard_master
        }
    }
}

sakuya_b3_trait_add_explorer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = explorer
        }
    }
}

sakuya_b3_trait_remove_explorer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = explorer
        }
    }
}

sakuya_b3_trait_add_basic_diplomat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_diplomat
        }
    }
}

sakuya_b3_trait_remove_basic_diplomat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_diplomat
        }
    }
}

sakuya_b3_trait_add_experienced_diplomat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_diplomat
        }
    }
}

sakuya_b3_trait_remove_experienced_diplomat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_diplomat
        }
    }
}

sakuya_b3_trait_add_masterful_diplomat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = masterful_diplomat
        }
    }
}

sakuya_b3_trait_remove_masterful_diplomat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = masterful_diplomat
        }
    }
}

sakuya_b3_trait_add_basic_colonial_administrator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_colonial_administrator
        }
    }
}

sakuya_b3_trait_remove_basic_colonial_administrator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_colonial_administrator
        }
    }
}

sakuya_b3_trait_add_experienced_colonial_administrator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_colonial_administrator
        }
    }
}

sakuya_b3_trait_remove_experienced_colonial_administrator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_colonial_administrator
        }
    }
}

sakuya_b3_trait_add_expert_colonial_administrator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_colonial_administrator
        }
    }
}

sakuya_b3_trait_remove_expert_colonial_administrator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_colonial_administrator
        }
    }
}

sakuya_b3_trait_add_basic_political_operator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_political_operator
        }
    }
}

sakuya_b3_trait_remove_basic_political_operator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_political_operator
        }
    }
}

sakuya_b3_trait_add_experienced_political_operator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_political_operator
        }
    }
}

sakuya_b3_trait_remove_experienced_political_operator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_political_operator
        }
    }
}

sakuya_b3_trait_add_expert_political_operator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_political_operator
        }
    }
}

sakuya_b3_trait_remove_expert_political_operator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_political_operator
        }
    }
}

sakuya_b3_trait_add_inspirational_orator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = inspirational_orator
        }
    }
}

sakuya_b3_trait_remove_inspirational_orator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = inspirational_orator
        }
    }
}

sakuya_b3_trait_add_demagogue = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = demagogue
        }
    }
}

sakuya_b3_trait_remove_demagogue = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = demagogue
        }
    }
}

sakuya_b3_trait_add_firebrand = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = firebrand
        }
    }
}

sakuya_b3_trait_remove_firebrand = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = firebrand
        }
    }
}

sakuya_b3_trait_add_bandit = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = bandit
        }
    }
}

sakuya_b3_trait_remove_bandit = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = bandit
        }
    }
}

sakuya_b3_trait_add_erudite = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = erudite
        }
    }
}

sakuya_b3_trait_remove_erudite = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = erudite
        }
    }
}

sakuya_b3_trait_add_literary = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = literary
        }
    }
}

sakuya_b3_trait_remove_literary = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = literary
        }
    }
}

sakuya_b3_trait_add_engineer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = engineer
        }
    }
}

sakuya_b3_trait_remove_engineer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = engineer
        }
    }
}

sakuya_b3_trait_add_master_bureaucrat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = master_bureaucrat
        }
    }
}

sakuya_b3_trait_remove_master_bureaucrat = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = master_bureaucrat
        }
    }
}

sakuya_b3_trait_add_political_appointee = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = political_appointee
        }
    }
}

sakuya_b3_trait_remove_political_appointee = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = political_appointee
        }
    }
}

sakuya_b3_trait_add_inept = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = inept
        }
    }
}

sakuya_b3_trait_remove_inept = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = inept
        }
    }
}

sakuya_b3_trait_add_inexperienced = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = inexperienced
        }
    }
}

sakuya_b3_trait_remove_inexperienced = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = inexperienced
        }
    }
}

sakuya_b3_trait_add_social_bandit = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = social_bandit
        }
    }
}

sakuya_b3_trait_remove_social_bandit = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = social_bandit
        }
    }
}

sakuya_b3_trait_add_elder = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = elder
        }
    }
}

sakuya_b3_trait_remove_elder = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = elder
        }
    }
}

sakuya_b3_trait_add_basic_entrepreneur = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_entrepreneur
        }
    }
}

sakuya_b3_trait_remove_basic_entrepreneur = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_entrepreneur
        }
    }
}

sakuya_b3_trait_add_experienced_entrepreneur = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_entrepreneur
        }
    }
}

sakuya_b3_trait_remove_experienced_entrepreneur = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_entrepreneur
        }
    }
}

sakuya_b3_trait_add_expert_entrepreneur = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_entrepreneur
        }
    }
}

sakuya_b3_trait_remove_expert_entrepreneur = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_entrepreneur
        }
    }
}

sakuya_b3_trait_add_special_character_restitutor_orbis = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_restitutor_orbis
        }
    }
}

sakuya_b3_trait_remove_special_character_restitutor_orbis = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_restitutor_orbis
        }
    }
}

sakuya_b3_trait_add_special_character_blanqui_is_free = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_blanqui_is_free
        }
    }
}

sakuya_b3_trait_remove_special_character_blanqui_is_free = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_blanqui_is_free
        }
    }
}

sakuya_b3_trait_add_special_character_german_unifier_ruler = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_german_unifier_ruler
        }
    }
}

sakuya_b3_trait_remove_special_character_german_unifier_ruler = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_german_unifier_ruler
        }
    }
}

sakuya_b3_trait_add_special_character_great_reformer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_great_reformer
        }
    }
}

sakuya_b3_trait_remove_special_character_great_reformer = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_great_reformer
        }
    }
}

sakuya_b3_trait_add_special_character_passionate_academic = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_passionate_academic
        }
    }
}

sakuya_b3_trait_remove_special_character_passionate_academic = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_passionate_academic
        }
    }
}

sakuya_b3_trait_add_special_character_agent_of_the_sovereign = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_agent_of_the_sovereign
        }
    }
}

sakuya_b3_trait_remove_special_character_agent_of_the_sovereign = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_agent_of_the_sovereign
        }
    }
}

sakuya_b3_trait_add_special_character_napoleon_of_the_americas = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_napoleon_of_the_americas
        }
    }
}

sakuya_b3_trait_remove_special_character_napoleon_of_the_americas = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_napoleon_of_the_americas
        }
    }
}

sakuya_b3_trait_add_special_character_el_excelentisimo = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_el_excelentisimo
        }
    }
}

sakuya_b3_trait_remove_special_character_el_excelentisimo = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_el_excelentisimo
        }
    }
}

sakuya_b3_trait_add_special_character_pedro_legitimacy = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_pedro_legitimacy
        }
    }
}

sakuya_b3_trait_remove_special_character_pedro_legitimacy = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_pedro_legitimacy
        }
    }
}

sakuya_b3_trait_add_special_character_lenin_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_lenin_popularity
        }
    }
}

sakuya_b3_trait_remove_special_character_lenin_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_lenin_popularity
        }
    }
}

sakuya_b3_trait_add_special_character_john_brown_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_john_brown_popularity
        }
    }
}

sakuya_b3_trait_remove_special_character_john_brown_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_john_brown_popularity
        }
    }
}

sakuya_b3_trait_add_special_character_maurras_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_maurras_popularity
        }
    }
}

sakuya_b3_trait_remove_special_character_maurras_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_maurras_popularity
        }
    }
}

sakuya_b3_trait_add_special_character_napoleonic_return = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_napoleonic_return
        }
    }
}

sakuya_b3_trait_remove_special_character_napoleonic_return = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_napoleonic_return
        }
    }
}

sakuya_b3_trait_add_special_character_mazzini_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_mazzini_popularity
        }
    }
}

sakuya_b3_trait_remove_special_character_mazzini_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_mazzini_popularity
        }
    }
}

sakuya_b3_trait_add_special_character_emperor_norton_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_emperor_norton_popularity
        }
    }
}

sakuya_b3_trait_remove_special_character_emperor_norton_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_emperor_norton_popularity
        }
    }
}

sakuya_b3_trait_add_special_character_nightingale_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_nightingale_popularity
        }
    }
}

sakuya_b3_trait_remove_special_character_nightingale_popularity = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_nightingale_popularity
        }
    }
}

sakuya_b3_trait_add_special_character_general_revanche = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_general_revanche
        }
    }
}

sakuya_b3_trait_remove_special_character_general_revanche = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_general_revanche
        }
    }
}

sakuya_b3_trait_add_special_character_curly_haired_orpheus = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_curly_haired_orpheus
        }
    }
}

sakuya_b3_trait_remove_special_character_curly_haired_orpheus = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_curly_haired_orpheus
        }
    }
}

sakuya_b3_trait_add_special_character_luxemburg_in_exile = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_luxemburg_in_exile
        }
    }
}

sakuya_b3_trait_remove_special_character_luxemburg_in_exile = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_luxemburg_in_exile
        }
    }
}

sakuya_b3_trait_add_special_character_colonial_plantation = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_colonial_plantation
        }
    }
}

sakuya_b3_trait_remove_special_character_colonial_plantation = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_colonial_plantation
        }
    }
}

sakuya_b3_trait_add_special_character_colonial_local = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_colonial_local
        }
    }
}

sakuya_b3_trait_remove_special_character_colonial_local = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_colonial_local
        }
    }
}

sakuya_b3_trait_add_special_character_colonial_extraction = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_colonial_extraction
        }
    }
}

sakuya_b3_trait_remove_special_character_colonial_extraction = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_colonial_extraction
        }
    }
}

sakuya_b3_trait_add_special_character_colonial_business = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_colonial_business
        }
    }
}

sakuya_b3_trait_remove_special_character_colonial_business = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_colonial_business
        }
    }
}

sakuya_b3_trait_add_special_character_colonial_military = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_colonial_military
        }
    }
}

sakuya_b3_trait_remove_special_character_colonial_military = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_colonial_military
        }
    }
}

sakuya_b3_trait_add_special_character_japanese_emperor = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = special_character_japanese_emperor
        }
    }
}

sakuya_b3_trait_remove_special_character_japanese_emperor = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = special_character_japanese_emperor
        }
    }
}

sakuya_b3_goods_obsession_add_selected_culture = {
    scope = country
    is_shown = { sakuya_b3_goods_marked_culture_ready = yes }
    is_valid = { sakuya_b3_goods_marked_culture_ready = yes }
    effect = { if = { limit = { sakuya_b3_goods_marked_culture_ready = yes } sakuya_b3_goods_selected_culture_add_obsession_effect = yes } }
}

sakuya_b3_goods_obsession_remove_selected_culture = {
    scope = country
    is_shown = { sakuya_b3_goods_marked_culture_ready = yes }
    is_valid = { sakuya_b3_goods_marked_culture_ready = yes }
    effect = { if = { limit = { sakuya_b3_goods_marked_culture_ready = yes } sakuya_b3_goods_selected_culture_remove_obsession_effect = yes } }
}

sakuya_b3_goods_taboo_add_selected_culture = {
    scope = country
    is_shown = { sakuya_b3_goods_marked_culture_ready = yes }
    is_valid = { sakuya_b3_goods_marked_culture_ready = yes }
    effect = { if = { limit = { sakuya_b3_goods_marked_culture_ready = yes } sakuya_b3_goods_selected_culture_add_taboo_effect = yes } }
}

sakuya_b3_goods_taboo_remove_selected_culture = {
    scope = country
    is_shown = { sakuya_b3_goods_marked_culture_ready = yes }
    is_valid = { sakuya_b3_goods_marked_culture_ready = yes }
    effect = { if = { limit = { sakuya_b3_goods_marked_culture_ready = yes } sakuya_b3_goods_selected_culture_remove_taboo_effect = yes } }
}

sakuya_b3_trait_group_add_general = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = direct }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = persistent }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = cautious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = reckless }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = tactful }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = charismatic }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = brave }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = pious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = imposing }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = scarred }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = resupply_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = pillager }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = surveyor }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = forest_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = plains_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = mountain_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_artillery_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_artillery_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_artillery_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = stalwart_defender }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = trench_rat }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = defense_in_depth_specialist }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_offensive_planner }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_offensive_planner }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_offensive_planner }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_defensive_strategist }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_defensive_strategist }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_defensive_strategist }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_naval_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_naval_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_naval_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = convoy_raider_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_convoy_raider }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_convoy_raider }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = traditionalist_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = popular_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = celebrity_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = dockyard_master }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = explorer }
    }
}

sakuya_b3_trait_group_remove_general = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = direct }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = persistent }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = cautious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = reckless }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = tactful }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = charismatic }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = brave }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = pious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = imposing }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = scarred }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = resupply_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = pillager }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = surveyor }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = forest_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = plains_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = mountain_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_artillery_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_artillery_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_artillery_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = stalwart_defender }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = trench_rat }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = defense_in_depth_specialist }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_offensive_planner }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_offensive_planner }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_offensive_planner }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_defensive_strategist }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_defensive_strategist }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_defensive_strategist }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_naval_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_naval_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_naval_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = convoy_raider_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_convoy_raider }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_convoy_raider }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = traditionalist_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = popular_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = celebrity_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = dockyard_master }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = explorer }
    }
}

sakuya_b3_trait_group_add_executive = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = cautious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = cruel }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = romantic }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = honorable }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = ruthless }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = aesthete }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = literary }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = engineer }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = master_bureaucrat }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_entrepreneur }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_entrepreneur }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_entrepreneur }
    }
}

sakuya_b3_trait_group_remove_executive = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = cautious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = cruel }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = romantic }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = honorable }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = ruthless }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = aesthete }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = literary }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = engineer }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = master_bureaucrat }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_entrepreneur }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_entrepreneur }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_entrepreneur }
    }
}

sakuya_b3_trait_group_add_bad_ruler = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = arrogant }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = imperious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = wrathful }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = cruel }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = reckless }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = bigoted }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = hedonist }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expensive_tastes }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = grifter }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = senile }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = alcoholic }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = opium_addiction }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = cocaine_addiction }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = psychological_affliction }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = war_criminal }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = inept }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = inexperienced }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = political_appointee }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = bandit }
    }
}

sakuya_b3_trait_group_remove_bad_ruler = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = arrogant }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = imperious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = wrathful }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = cruel }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = reckless }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = bigoted }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = hedonist }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expensive_tastes }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = grifter }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = senile }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = alcoholic }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = opium_addiction }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = cocaine_addiction }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = psychological_affliction }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = war_criminal }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = inept }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = inexperienced }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = political_appointee }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = bandit }
    }
}

sakuya_b3_trait_group_add_agitator = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = charismatic }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = direct }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = persistent }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = tactful }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = brave }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = imposing }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = honorable }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = popular_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = celebrity_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_political_operator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_political_operator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_political_operator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = inspirational_orator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = demagogue }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = firebrand }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = erudite }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = literary }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = social_bandit }
    }
}

sakuya_b3_trait_group_remove_agitator = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = charismatic }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = direct }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = persistent }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = tactful }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = brave }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = imposing }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = honorable }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = popular_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = celebrity_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_political_operator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_political_operator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_political_operator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = inspirational_orator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = demagogue }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = firebrand }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = erudite }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = literary }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = social_bandit }
    }
}

sakuya_b3_trait_group_add_ruler = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = direct }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = persistent }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = cautious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = tactful }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = charismatic }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = brave }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = pious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = imposing }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = honorable }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = ruthless }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = aesthete }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = popular_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = celebrity_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_diplomat }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_diplomat }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = masterful_diplomat }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_colonial_administrator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_colonial_administrator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_colonial_administrator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = basic_political_operator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_political_operator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_political_operator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = erudite }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = literary }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = engineer }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = master_bureaucrat }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = elder }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_entrepreneur }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_entrepreneur }
    }
}

sakuya_b3_trait_group_remove_ruler = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = direct }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = persistent }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = cautious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = tactful }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = charismatic }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = brave }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = pious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = imposing }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = honorable }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = ruthless }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = aesthete }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = popular_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = celebrity_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_diplomat }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_diplomat }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = masterful_diplomat }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_colonial_administrator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_colonial_administrator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_colonial_administrator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = basic_political_operator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_political_operator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_political_operator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = erudite }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = literary }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = engineer }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = master_bureaucrat }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = elder }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_entrepreneur }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_entrepreneur }
    }
}

sakuya_b3_trait_group_add_all_rounder = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = charismatic }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = brave }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = honorable }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = direct }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = tactful }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = persistent }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = imposing }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = erudite }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = literary }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = engineer }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = master_bureaucrat }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_entrepreneur }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = masterful_diplomat }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_political_operator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_colonial_administrator }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = popular_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = celebrity_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_offensive_planner }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_defensive_strategist }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_artillery_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_naval_commander }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = expert_convoy_raider }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = dockyard_master }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = experienced_entrepreneur }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = aesthete }
        sakuya_b3_add_marked_character_trait_effect = { TRAIT = pious }
    }
}

sakuya_b3_trait_group_remove_all_rounder = {
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = charismatic }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = brave }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = meticulous }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = innovative }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = honorable }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = direct }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = tactful }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = ambitious }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = persistent }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = imposing }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = erudite }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = literary }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = engineer }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = master_bureaucrat }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_entrepreneur }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = masterful_diplomat }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_political_operator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_colonial_administrator }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = popular_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = celebrity_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_offensive_planner }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_defensive_strategist }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_artillery_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_naval_commander }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = expert_convoy_raider }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = dockyard_master }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = experienced_entrepreneur }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = aesthete }
        sakuya_b3_remove_marked_character_trait_effect = { TRAIT = pious }
    }
}
# === B3 ROLE LIVE PATCH BEGIN ===
sakuya_b3r_has_marked_character_check = {
    scope = country
    is_shown = { is_player = yes has_variable = sakuya_b3_marked_character_cached }
}

sakuya_b3r_marked_character_commander_check = {
    scope = country
    is_shown = {
        is_player = yes
        OR = {
            any_country = {
                any_scope_character = {
                    has_variable = sakuya_mark_character_target
                    OR = {
                        has_role = character_role_general
                        has_role = character_role_admiral
                    }
                }
            }
            any_character_in_exile_pool = {
                has_variable = sakuya_mark_character_target
                OR = {
                    has_role = character_role_general
                    has_role = character_role_admiral
                }
            }
        }
    }
}

sakuya_b3r_marked_character_admiral_check = {
    scope = country
    is_shown = {
        is_player = yes
        OR = {
            any_country = {
                any_scope_character = {
                    has_variable = sakuya_mark_character_target
                    has_role = character_role_admiral
                }
            }
            any_character_in_exile_pool = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_admiral
            }
        }
    }
}

sakuya_b3r_marked_character_politician_check = {
    scope = country
    is_shown = {
        is_player = yes
        OR = {
            any_country = {
                any_scope_character = {
                    has_variable = sakuya_mark_character_target
                    has_role = character_role_politician
                }
            }
            any_character_in_exile_pool = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_politician
            }
        }
    }
}

sakuya_b3r_marked_character_agitator_check = {
    scope = country
    is_shown = {
        is_player = yes
        OR = {
            any_country = {
                any_scope_character = {
                    has_variable = sakuya_mark_character_target
                    has_role = character_role_agitator
                }
            }
            any_character_in_exile_pool = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_agitator
            }
        }
    }
}

sakuya_b3r_marked_character_general_check = {
    scope = country
    is_shown = {
        is_player = yes
        OR = {
            any_country = {
                any_scope_character = {
                    has_variable = sakuya_mark_character_target
                    has_role = character_role_general
                }
            }
            any_character_in_exile_pool = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_general
            }
        }
    }
}

sakuya_b3r_marked_character_admiral_role_check = {
    scope = country
    is_shown = {
        is_player = yes
        OR = {
            any_country = {
                any_scope_character = {
                    has_variable = sakuya_mark_character_target
                    has_role = character_role_admiral
                }
            }
            any_character_in_exile_pool = {
                has_variable = sakuya_mark_character_target
                has_role = character_role_admiral
            }
        }
    }
}

sakuya_b3r_can_set_heir_check = {
    scope = country
    is_shown = {
        is_player = yes
        has_variable = sakuya_b3_marked_character_cached
        OR = {
            AND = {
                exists = ruler
                OR = {
                    has_law = law_type:law_monarchy
                    has_law_or_variant = law_type:law_theocracy
                }
            }
            any_country = {
                has_variable = sakuya_mark_country_target
                exists = ruler
                OR = {
                    has_law = law_type:law_monarchy
                    has_law_or_variant = law_type:law_theocracy
                }
            }
            any_country = {
                exists = ruler
                OR = {
                    has_law = law_type:law_monarchy
                    has_law_or_variant = law_type:law_theocracy
                }
                any_scope_character = {
                    has_variable = sakuya_mark_character_target
                }
            }
        }
    }
}

sakuya_b3r_can_set_selected_ig_leader_check = {
    scope = country
    is_shown = {
        is_player = yes
        OR = {
            any_country = {
                any_scope_character = {
                    has_variable = sakuya_mark_character_target
                }
            }
            any_character_in_exile_pool = {
                has_variable = sakuya_mark_character_target
            }
        }
        calc_true_if = {
            amount = 1
            has_variable = sakuya_b5_sel_ig_armed_forces
            has_variable = sakuya_b5_sel_ig_devout
            has_variable = sakuya_b5_sel_ig_industrialists
            has_variable = sakuya_b5_sel_ig_intelligentsia
            has_variable = sakuya_b5_sel_ig_landowners
            has_variable = sakuya_b5_sel_ig_petty_bourgeoisie
            has_variable = sakuya_b5_sel_ig_rural_folk
            has_variable = sakuya_b5_sel_ig_trade_unions
        }
        OR = {
            AND = {
                has_variable = sakuya_b5_sel_ig_armed_forces
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = {
                            is_same_interest_group_type = ig:ig_armed_forces
                        }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_devout
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = {
                            is_same_interest_group_type = ig:ig_devout
                        }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_industrialists
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = {
                            is_same_interest_group_type = ig:ig_industrialists
                        }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_intelligentsia
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = {
                            is_same_interest_group_type = ig:ig_intelligentsia
                        }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_landowners
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = {
                            is_same_interest_group_type = ig:ig_landowners
                        }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_petty_bourgeoisie
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = {
                            is_same_interest_group_type = ig:ig_petty_bourgeoisie
                        }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_rural_folk
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = {
                            is_same_interest_group_type = ig:ig_rural_folk
                        }
                    }
                }
            }
            AND = {
                has_variable = sakuya_b5_sel_ig_trade_unions
                any_country = {
                    any_scope_character = {
                        has_variable = sakuya_mark_character_target
                        interest_group = {
                            is_same_interest_group_type = ig:ig_trade_unions
                        }
                    }
                }
            }
        }
    }
}

sakuya_b3r_can_change_interest_group_check = {
    scope = country
    is_shown = {
        is_player = yes
        has_variable = sakuya_b3_marked_character_cached
        calc_true_if = {
            amount = 1
            has_variable = sakuya_b5_sel_ig_armed_forces
            has_variable = sakuya_b5_sel_ig_devout
            has_variable = sakuya_b5_sel_ig_industrialists
            has_variable = sakuya_b5_sel_ig_intelligentsia
            has_variable = sakuya_b5_sel_ig_landowners
            has_variable = sakuya_b5_sel_ig_petty_bourgeoisie
            has_variable = sakuya_b5_sel_ig_rural_folk
            has_variable = sakuya_b5_sel_ig_trade_unions
        }
    }
}

sakuya_b3r_fx_change_marked_character_interest_group = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3r_change_marked_character_interest_group_effect = yes
    }
}

sakuya_b3r_fx_change_marked_character_interest_group_and_set_leader = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3r_change_marked_character_interest_group_effect = yes
        sakuya_b3r_set_marked_character_as_interest_group_leader_effect = yes
    }
}

sakuya_b3r_fx_transfer_player_agitator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3r_transfer_marked_character_to_player_effect = yes
        sakuya_b3_set_marked_character_role_effect = {
            ADD_ROLE = character_role_agitator
            REMOVE_ROLE = character_role_politician
        }
    }
}

sakuya_b3r_fx_transfer_marked_agitator = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = {
            limit = {
                any_country = {
                    has_variable = sakuya_mark_country_target
                }
            }
            sakuya_b3r_transfer_marked_character_to_marked_country_effect = yes
            sakuya_b3_set_marked_character_role_effect = {
                ADD_ROLE = character_role_agitator
                REMOVE_ROLE = character_role_politician
            }
        }
    }
}

sakuya_b3r_fx_transfer_player_politician = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_transfer_marked_character_to_player_as_politician_effect = yes }
}

sakuya_b3r_fx_transfer_marked_politician = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = {
            limit = {
                any_country = {
                    has_variable = sakuya_mark_country_target
                }
            }
            sakuya_b3r_transfer_marked_character_to_marked_country_as_politician_effect = yes
        }
    }
}

sakuya_b3r_fx_transfer_player_general = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_transfer_marked_character_to_player_as_general_effect = yes }
}

sakuya_b3r_fx_set_commander_rank_alt = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_commander_rank_effect = { RANK = 1 } }
}

sakuya_b3r_fx_set_commander_rank_add = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_commander_rank_effect = { RANK = 3 } }
}

sakuya_b3r_fx_set_commander_rank_ctrl = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_commander_rank_effect = { RANK = 4 } }
}

sakuya_b3r_fx_set_commander_rank_shift = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_commander_rank_effect = { RANK = 5 } }
}

sakuya_b3r_fx_set_ruler_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        if = {
            limit = {
                any_country = {
                    has_variable = sakuya_mark_country_target
                }
            }
            sakuya_b3r_transfer_marked_character_to_marked_country_effect = yes
            sakuya_b3r_set_marked_character_as_ruler_of_current_country_effect = yes
        }
    }
}

sakuya_b3r_fx_set_ruler_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3r_transfer_marked_character_to_player_effect = yes
        sakuya_b3r_set_marked_character_as_ruler_of_current_country_effect = yes
    }
}

sakuya_b3r_fx_set_ruler_own = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_as_ruler_of_current_country_effect = yes }
}

sakuya_b3r_fx_set_heir_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_as_heir_of_marked_country_effect = yes }
}

sakuya_b3r_fx_set_heir_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_as_heir_of_player_effect = yes }
}

sakuya_b3r_fx_set_heir_own = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_as_heir_of_own_country_effect = yes }
}

sakuya_b3r_fx_immortal_on = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_immortal_effect = { VALUE = yes } }
}

sakuya_b3r_fx_immortal_off = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_immortal_effect = { VALUE = no } }
}

sakuya_b3r_fx_change_culture_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_change_marked_character_culture_to_player_primary_effect = yes }
}

sakuya_b3r_fx_change_culture_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_change_marked_character_culture_to_marked_country_primary_effect = yes }
}

sakuya_b3r_fx_change_culture_home = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_change_marked_character_culture_to_home_country_primary_effect = yes }
}

sakuya_b3r_fx_change_religion_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_change_marked_character_religion_to_player_effect = yes }
}

sakuya_b3r_fx_change_religion_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_change_marked_character_religion_to_marked_country_effect = yes }
}

sakuya_b3r_fx_change_religion_home = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_change_marked_character_religion_to_home_country_effect = yes }
}

sakuya_b3r_fx_set_home_country_player = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_home_country_to_player_effect = yes }
}

sakuya_b3r_fx_set_home_country_marked = {
    scope = country
    is_shown = { is_player = yes }
    effect = { sakuya_b3r_set_marked_character_home_country_to_marked_country_effect = yes }
}
# === B3 ROLE LIVE PATCH CHECKS/EFFECTS END ===

sakuya_b3r_modifier_popularity_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_role_popularity_value } }
sakuya_b3r_mod_popularity_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_popularity_delta_effect = { DELTA = 5 } } }
sakuya_b3r_mod_popularity_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_popularity_delta_effect = { DELTA = 1000 } } }
sakuya_b3r_mod_popularity_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_popularity_delta_effect = { DELTA = 1 } } }
sakuya_b3r_mod_popularity_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_popularity_delta_effect = { DELTA = -5 } } }
sakuya_b3r_mod_popularity_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_popularity_clear_effect = yes } }

sakuya_b3r_modifier_prominence_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_role_prominence_value } }
sakuya_b3r_mod_prominence_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_prominence_delta_effect = { DELTA = 20 } } }
sakuya_b3r_mod_prominence_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_prominence_delta_effect = { DELTA = 1000 } } }
sakuya_b3r_mod_prominence_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_prominence_delta_effect = { DELTA = 5 } } }
sakuya_b3r_mod_prominence_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_prominence_delta_effect = { DELTA = -20 } } }
sakuya_b3r_mod_prominence_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_prominence_clear_effect = yes } }

sakuya_b3r_modifier_health_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_role_health_value } }
sakuya_b3r_mod_health_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_health_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_health_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_health_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_health_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_health_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_health_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_health_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_health_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_health_clear_effect = yes } }

sakuya_b3r_modifier_expedition_events_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_role_expedition_events_value } }
sakuya_b3r_mod_expedition_events_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_expedition_events_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_expedition_events_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_expedition_events_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_expedition_events_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_expedition_events_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_expedition_events_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_expedition_events_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_expedition_events_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_expedition_events_clear_effect = yes } }

sakuya_b3r_modifier_coup_strength_add_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_role_coup_strength_add_value } }
sakuya_b3r_mod_coup_strength_add_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_add_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_coup_strength_add_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_add_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_coup_strength_add_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_add_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_coup_strength_add_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_add_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_coup_strength_add_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_add_clear_effect = yes } }

sakuya_b3r_modifier_coup_strength_mult_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_role_coup_strength_mult_value } }
sakuya_b3r_mod_coup_strength_mult_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_mult_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_coup_strength_mult_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_mult_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_coup_strength_mult_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_mult_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_coup_strength_mult_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_mult_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_coup_strength_mult_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_coup_strength_mult_clear_effect = yes } }

sakuya_b3r_modifier_loyalty_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_role_loyalty_value } }
sakuya_b3r_mod_loyalty_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_loyalty_delta_effect = { DELTA = 20 } } }
sakuya_b3r_mod_loyalty_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_loyalty_delta_effect = { DELTA = 1000 } } }
sakuya_b3r_mod_loyalty_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_loyalty_delta_effect = { DELTA = 5 } } }
sakuya_b3r_mod_loyalty_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_loyalty_delta_effect = { DELTA = -20 } } }
sakuya_b3r_mod_loyalty_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_loyalty_clear_effect = yes } }

sakuya_b3r_modifier_command_limit_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_command_limit_value } }
sakuya_b3r_mod_command_limit_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_command_limit_delta_effect = { DELTA = 50 } } }
sakuya_b3r_mod_command_limit_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_command_limit_delta_effect = { DELTA = 9999 } } }
sakuya_b3r_mod_command_limit_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_command_limit_delta_effect = { DELTA = 5 } } }
sakuya_b3r_mod_command_limit_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_command_limit_delta_effect = { DELTA = -50 } } }
sakuya_b3r_mod_command_limit_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_command_limit_clear_effect = yes } }

sakuya_b3r_modifier_advancement_speed_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_advancement_speed_value } }
sakuya_b3r_mod_advancement_speed_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_advancement_speed_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_advancement_speed_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_advancement_speed_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_advancement_speed_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_advancement_speed_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_advancement_speed_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_advancement_speed_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_advancement_speed_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_advancement_speed_clear_effect = yes } }

sakuya_b3r_modifier_supply_route_cost_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_supply_route_cost_value } }
sakuya_b3r_mod_supply_route_cost_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_supply_route_cost_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_supply_route_cost_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_supply_route_cost_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_supply_route_cost_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_supply_route_cost_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_supply_route_cost_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_supply_route_cost_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_supply_route_cost_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_supply_route_cost_clear_effect = yes } }

sakuya_b3r_modifier_convoy_protection_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_convoy_protection_value } }
sakuya_b3r_mod_convoy_protection_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_protection_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_convoy_protection_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_protection_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_convoy_protection_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_protection_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_convoy_protection_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_protection_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_convoy_protection_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_protection_clear_effect = yes } }

sakuya_b3r_modifier_blockade_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_blockade_value } }
sakuya_b3r_mod_blockade_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blockade_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_blockade_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blockade_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_blockade_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blockade_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_blockade_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blockade_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_blockade_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blockade_clear_effect = yes } }

sakuya_b3r_modifier_interception_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_interception_value } }
sakuya_b3r_mod_interception_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_interception_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_interception_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_interception_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_interception_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_interception_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_interception_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_interception_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_interception_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_interception_clear_effect = yes } }

sakuya_b3r_modifier_convoy_raiding_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_convoy_raiding_value } }
sakuya_b3r_mod_convoy_raiding_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_raiding_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_convoy_raiding_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_raiding_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_convoy_raiding_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_raiding_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_convoy_raiding_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_raiding_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_convoy_raiding_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_convoy_raiding_clear_effect = yes } }

sakuya_b3r_modifier_death_from_below_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_death_from_below_value } }
sakuya_b3r_mod_death_from_below_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_death_from_below_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_death_from_below_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_death_from_below_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_death_from_below_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_death_from_below_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_death_from_below_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_death_from_below_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_death_from_below_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_death_from_below_clear_effect = yes } }

sakuya_b3r_modifier_ramming_maneuver_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_ramming_maneuver_value } }
sakuya_b3r_mod_ramming_maneuver_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_ramming_maneuver_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_ramming_maneuver_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_ramming_maneuver_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_ramming_maneuver_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_ramming_maneuver_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_ramming_maneuver_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_ramming_maneuver_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_ramming_maneuver_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_ramming_maneuver_clear_effect = yes } }

sakuya_b3r_modifier_rough_waters_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_rough_waters_value } }
sakuya_b3r_mod_rough_waters_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rough_waters_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_rough_waters_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rough_waters_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_rough_waters_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rough_waters_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_rough_waters_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rough_waters_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_rough_waters_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rough_waters_clear_effect = yes } }

sakuya_b3r_modifier_strong_winds_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_strong_winds_value } }
sakuya_b3r_mod_strong_winds_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_strong_winds_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_strong_winds_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_strong_winds_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_strong_winds_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_strong_winds_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_strong_winds_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_strong_winds_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_strong_winds_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_strong_winds_clear_effect = yes } }
sakuya_b3r_modifier_dug_in_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_dug_in_value } }
sakuya_b3r_mod_dug_in_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_dug_in_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_dug_in_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_dug_in_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_dug_in_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_dug_in_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_dug_in_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_dug_in_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_dug_in_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_dug_in_clear_effect = yes } }

sakuya_b3r_modifier_charted_terrain_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_charted_terrain_value } }
sakuya_b3r_mod_charted_terrain_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_charted_terrain_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_charted_terrain_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_charted_terrain_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_charted_terrain_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_charted_terrain_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_charted_terrain_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_charted_terrain_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_charted_terrain_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_charted_terrain_clear_effect = yes } }

sakuya_b3r_modifier_rapid_advance_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_rapid_advance_value } }
sakuya_b3r_mod_rapid_advance_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rapid_advance_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_rapid_advance_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rapid_advance_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_rapid_advance_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rapid_advance_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_rapid_advance_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rapid_advance_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_rapid_advance_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_rapid_advance_clear_effect = yes } }

sakuya_b3r_modifier_camouflaged_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_camouflaged_value } }
sakuya_b3r_mod_camouflaged_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_camouflaged_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_camouflaged_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_camouflaged_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_camouflaged_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_camouflaged_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_camouflaged_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_camouflaged_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_camouflaged_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_camouflaged_clear_effect = yes } }

sakuya_b3r_modifier_logistics_secured_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_logistics_secured_value } }
sakuya_b3r_mod_logistics_secured_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_logistics_secured_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_logistics_secured_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_logistics_secured_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_logistics_secured_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_logistics_secured_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_logistics_secured_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_logistics_secured_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_logistics_secured_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_logistics_secured_clear_effect = yes } }

sakuya_b3r_modifier_surprise_maneuver_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_surprise_maneuver_value } }
sakuya_b3r_mod_surprise_maneuver_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_surprise_maneuver_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_surprise_maneuver_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_surprise_maneuver_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_surprise_maneuver_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_surprise_maneuver_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_surprise_maneuver_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_surprise_maneuver_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_surprise_maneuver_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_surprise_maneuver_clear_effect = yes } }

sakuya_b3r_modifier_aggressive_maneuver_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_aggressive_maneuver_value } }
sakuya_b3r_mod_aggressive_maneuver_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_aggressive_maneuver_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_aggressive_maneuver_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_aggressive_maneuver_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_aggressive_maneuver_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_aggressive_maneuver_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_aggressive_maneuver_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_aggressive_maneuver_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_aggressive_maneuver_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_aggressive_maneuver_clear_effect = yes } }

sakuya_b3r_modifier_careful_maneuver_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_careful_maneuver_value } }
sakuya_b3r_mod_careful_maneuver_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_careful_maneuver_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_careful_maneuver_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_careful_maneuver_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_careful_maneuver_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_careful_maneuver_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_careful_maneuver_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_careful_maneuver_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_careful_maneuver_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_careful_maneuver_clear_effect = yes } }

sakuya_b3r_modifier_good_visibility_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_good_visibility_value } }
sakuya_b3r_mod_good_visibility_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_good_visibility_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_good_visibility_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_good_visibility_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_good_visibility_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_good_visibility_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_good_visibility_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_good_visibility_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_good_visibility_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_good_visibility_clear_effect = yes } }

sakuya_b3r_modifier_guerilla_ambush_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_guerilla_ambush_value } }
sakuya_b3r_mod_guerilla_ambush_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_guerilla_ambush_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_guerilla_ambush_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_guerilla_ambush_delta_effect = { DELTA = 999.9 } } }
sakuya_b3r_mod_guerilla_ambush_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_guerilla_ambush_delta_effect = { DELTA = 0.05 } } }
sakuya_b3r_mod_guerilla_ambush_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_guerilla_ambush_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_guerilla_ambush_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_guerilla_ambush_clear_effect = yes } }

sakuya_b3r_modifier_mud_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_mud_value } }
sakuya_b3r_mod_mud_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_mud_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_mud_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_mud_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_mud_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_mud_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_mud_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_mud_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_mud_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_mud_clear_effect = yes } }

sakuya_b3r_modifier_broken_supply_line_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_broken_supply_line_value } }
sakuya_b3r_mod_broken_supply_line_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_broken_supply_line_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_broken_supply_line_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_broken_supply_line_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_broken_supply_line_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_broken_supply_line_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_broken_supply_line_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_broken_supply_line_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_broken_supply_line_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_broken_supply_line_clear_effect = yes } }

sakuya_b3r_modifier_exhausted_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_exhausted_value } }
sakuya_b3r_mod_exhausted_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_exhausted_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_exhausted_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_exhausted_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_exhausted_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_exhausted_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_exhausted_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_exhausted_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_exhausted_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_exhausted_clear_effect = yes } }

sakuya_b3r_modifier_lost_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_lost_value } }
sakuya_b3r_mod_lost_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_lost_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_lost_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_lost_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_lost_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_lost_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_lost_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_lost_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_lost_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_lost_clear_effect = yes } }

sakuya_b3r_modifier_blunder_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_blunder_value } }
sakuya_b3r_mod_blunder_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blunder_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_blunder_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blunder_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_blunder_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blunder_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_blunder_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blunder_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_blunder_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_blunder_clear_effect = yes } }

sakuya_b3r_modifier_poor_visibility_check = { scope = country is_shown = { is_player = yes has_variable = sakuya_b3_commander_poor_visibility_value } }
sakuya_b3r_mod_poor_visibility_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_poor_visibility_delta_effect = { DELTA = -0.2 } } }
sakuya_b3r_mod_poor_visibility_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_poor_visibility_delta_effect = { DELTA = -999.9 } } }
sakuya_b3r_mod_poor_visibility_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_poor_visibility_delta_effect = { DELTA = -0.05 } } }
sakuya_b3r_mod_poor_visibility_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_poor_visibility_delta_effect = { DELTA = 0.2 } } }
sakuya_b3r_mod_poor_visibility_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3r_poor_visibility_clear_effect = yes } }

# === B3 CHARACTER GENERATED END ===

sakuya_b3_goods_build_section_visible_check = {
	scope = country
	is_shown = {
		any_scope_state = { has_decree = decree_sakuya_mark_state }
		calc_true_if = {
			amount = 1
			has_variable = sakuya_b3_sel_good_ammunition
			has_variable = sakuya_b3_sel_good_small_arms
			has_variable = sakuya_b3_sel_good_artillery
			has_variable = sakuya_b3_sel_good_tanks
			has_variable = sakuya_b3_sel_good_aeroplanes
			has_variable = sakuya_b3_sel_good_manowars
			has_variable = sakuya_b3_sel_good_ironclads
			has_variable = sakuya_b3_sel_good_grain
			has_variable = sakuya_b3_sel_good_fish
			has_variable = sakuya_b3_sel_good_fabric
			has_variable = sakuya_b3_sel_good_wood
			has_variable = sakuya_b3_sel_good_groceries
			has_variable = sakuya_b3_sel_good_clothes
			has_variable = sakuya_b3_sel_good_furniture
			has_variable = sakuya_b3_sel_good_paper
			has_variable = sakuya_b3_sel_good_merchant_marine
			has_variable = sakuya_b3_sel_good_clippers
			has_variable = sakuya_b3_sel_good_steamers
			has_variable = sakuya_b3_sel_good_silk
			has_variable = sakuya_b3_sel_good_dye
			has_variable = sakuya_b3_sel_good_sulfur
			has_variable = sakuya_b3_sel_good_coal
			has_variable = sakuya_b3_sel_good_iron
			has_variable = sakuya_b3_sel_good_lead
has_variable = sakuya_b3_sel_good_copper
			has_variable = sakuya_b3_sel_good_hardwood
			has_variable = sakuya_b3_sel_good_rubber
			has_variable = sakuya_b3_sel_good_oil
			has_variable = sakuya_b3_sel_good_engines
			has_variable = sakuya_b3_sel_good_steel
			has_variable = sakuya_b3_sel_good_glass
			has_variable = sakuya_b3_sel_good_fertilizer
			has_variable = sakuya_b3_sel_good_tools
			has_variable = sakuya_b3_sel_good_explosives
			has_variable = sakuya_b3_sel_good_porcelain
			has_variable = sakuya_b3_sel_good_meat
			has_variable = sakuya_b3_sel_good_fruit
			has_variable = sakuya_b3_sel_good_liquor
			has_variable = sakuya_b3_sel_good_wine
			has_variable = sakuya_b3_sel_good_tea
			has_variable = sakuya_b3_sel_good_coffee
			has_variable = sakuya_b3_sel_good_sugar
			has_variable = sakuya_b3_sel_good_tobacco
			has_variable = sakuya_b3_sel_good_opium
			has_variable = sakuya_b3_sel_good_automobiles
			has_variable = sakuya_b3_sel_good_telephones
			has_variable = sakuya_b3_sel_good_radios
			has_variable = sakuya_b3_sel_good_luxury_clothes
			has_variable = sakuya_b3_sel_good_luxury_furniture
			has_variable = sakuya_b3_sel_good_fine_art
			has_variable = sakuya_b3_sel_good_gold
			has_variable = sakuya_b3_sel_good_electricity
			has_variable = sakuya_b3_sel_good_transportation
			has_variable = sakuya_b3_sel_good_services
		}
	}
}

sakuya_b3_goods_build_supported_pair_check = {
	scope = country
	is_shown = {
		OR = {
			has_variable = sakuya_b6_build_sel_oil_rig
			has_variable = sakuya_b6_build_sel_coal_mine
			has_variable = sakuya_b6_build_sel_iron_mine
			has_variable = sakuya_b6_build_sel_lead_mine
			has_variable = sakuya_b6_build_sel_sulfur_mine
			has_variable = sakuya_b6_build_sel_gold_mine
			has_variable = sakuya_b6_build_sel_gold_field
			has_variable = sakuya_b6_build_sel_logging_camp
			has_variable = sakuya_b6_build_sel_fishing_wharf
			has_variable = sakuya_b6_build_sel_whaling_station
			has_variable = sakuya_b6_build_sel_rubber_plantation
			has_variable = sakuya_b6_build_sel_opium_plantation
			has_variable = sakuya_b6_build_sel_paper_mill
			has_variable = sakuya_b6_build_sel_glassworks
			has_variable = sakuya_b6_build_sel_tooling_workshop
			has_variable = sakuya_b6_build_sel_food_industry
			has_variable = sakuya_b6_build_sel_textile_mill
			has_variable = sakuya_b6_build_sel_furniture_manufactory
			has_variable = sakuya_b6_build_sel_chemical_plant
			has_variable = sakuya_b6_build_sel_steel_mill
			has_variable = sakuya_b6_build_sel_motor_industry
			has_variable = sakuya_b6_build_sel_power_plant
			has_variable = sakuya_b6_build_sel_electrics_industry
			has_variable = sakuya_b6_build_sel_explosives_factory
			has_variable = sakuya_b6_build_sel_arms_industry
			has_variable = sakuya_b6_build_sel_artillery_foundry
			has_variable = sakuya_b6_build_sel_munition_plant
			has_variable = sakuya_b6_build_sel_automotive_industry
			has_variable = sakuya_b6_build_sel_university
			has_variable = sakuya_b6_build_sel_art_academy
			has_variable = sakuya_b6_build_sel_railway
			has_variable = sakuya_b6_build_sel_construction_sector
			has_variable = sakuya_b6_build_sel_government_administration
			has_variable = sakuya_b6_build_sel_port
			has_variable = sakuya_b6_build_sel_shipyard
			has_variable = sakuya_b6_build_sel_urban_center
			has_variable = sakuya_b6_build_sel_trade_center
		}
	}
}

sakuya_b3_goods_build_test_oil_fixed_check = {
	scope = country
	is_shown = {
		OR = {
			AND = { has_variable = sakuya_b6_build_sel_oil_rig any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_oil_rig OR = { has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_default has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_shift has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_alt has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_coal_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_coal_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_default has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_shift has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_alt has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_iron_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_iron_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_default has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_shift has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_alt has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_lead_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_lead_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_default has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_shift has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_alt has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_sulfur_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_sulfur_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_default has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_shift has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_alt has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_gold_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_gold_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_default has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_shift has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_alt has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_rubber_plantation any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_rubber_plantation OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_default has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_shift has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_alt has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_paper_mill any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_paper_mill OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_default has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_shift has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_alt has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_glassworks any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_glassworks OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_default has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_shift has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_alt has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_tooling_workshop any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_tooling_workshop OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_default has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_shift has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_alt has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_steel_mill any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_steel_mill OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_default has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_shift has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_alt has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_motor_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_motor_industry OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_default has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_shift has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_alt has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_power_plant any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_power_plant OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_default has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_shift has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_alt has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_explosives_factory any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_explosives_factory OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_default has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_shift has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_alt has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_arms_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_arms_industry OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_default has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_shift has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_alt has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_artillery_foundry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_artillery_foundry OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_default has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_shift has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_alt has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_munition_plant any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_munition_plant OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_default has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_shift has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_alt has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_automotive_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_automotive_industry OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_default has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_shift has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_alt has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_ctrl } } } }
		}
	}
}
sakuya_b3_goods_build_test_oil_fixed_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_default_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_active } }
sakuya_b3_goods_build_test_oil_fixed_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_shift_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_active } }
sakuya_b3_goods_build_test_oil_fixed_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_alt_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_active } }
sakuya_b3_goods_build_test_oil_fixed_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_ctrl_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_active } }
sakuya_b3_goods_build_test_oil_fixed_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_clear_goods_build_specific_throughput_stack_effect = yes sakuya_b6_clear_goods_build_specific_throughput_plus_stack_effect = yes remove_variable = sakuya_b6_reserved_build_tp_specific_active remove_variable = sakuya_b6_reserved_build_tp_specific_plus_active } }

sakuya_b3_goods_build_test_oil_fixed_plus_check = {
	scope = country
	is_shown = {
		OR = {
			AND = { has_variable = sakuya_b6_build_sel_oil_rig any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_oil_rig OR = { has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_plus has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_plus_default has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_plus_shift has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_plus_alt has_modifier = sakuya_cheat_b3_goods_build_oil_rig_output_test_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_coal_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_coal_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_plus has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_coal_mine_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_iron_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_iron_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_plus has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_iron_mine_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_lead_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_lead_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_plus has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_lead_mine_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_sulfur_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_sulfur_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_plus has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_sulfur_mine_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_gold_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_gold_mine OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_plus has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_gold_mine_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_rubber_plantation any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_rubber_plantation OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_plus has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_rubber_plantation_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_paper_mill any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_paper_mill OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_plus has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_paper_mill_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_glassworks any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_glassworks OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_plus has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_glassworks_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_tooling_workshop any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_tooling_workshop OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_plus has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_tooling_workshop_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_steel_mill any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_steel_mill OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_plus has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_steel_mill_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_motor_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_motor_industry OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_plus has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_motor_industry_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_power_plant any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_power_plant OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_plus has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_power_plant_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_explosives_factory any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_explosives_factory OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_plus has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_explosives_factory_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_arms_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_arms_industry OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_plus has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_arms_industry_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_artillery_foundry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_artillery_foundry OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_plus has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_artillery_foundry_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_munition_plant any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_munition_plant OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_plus has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_munition_plant_plus_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_automotive_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_automotive_industry OR = { has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_plus has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_plus_default has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_plus_shift has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_plus_alt has_modifier = sakuya_cheat_b3_goods_build_tp_automotive_industry_plus_ctrl } } } }
		}
	}
}
sakuya_b3_goods_build_test_oil_fixed_plus_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_plus_default_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_plus_active } }
sakuya_b3_goods_build_test_oil_fixed_plus_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_plus_shift_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_plus_active } }
sakuya_b3_goods_build_test_oil_fixed_plus_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_plus_alt_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_plus_active } }
sakuya_b3_goods_build_test_oil_fixed_plus_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_plus_ctrl_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_plus_active } }
sakuya_b3_goods_build_test_oil_fixed_plus_right = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_specific_throughput_plus_right_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_specific_plus_active } }
sakuya_b3_goods_build_test_oil_fixed_plus_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_clear_goods_build_specific_throughput_plus_stack_effect = yes remove_variable = sakuya_b6_reserved_build_tp_specific_plus_active } }

sakuya_b6_reserved_build_cash_reserves_check = {
	scope = country
	is_shown = {
		OR = {
			AND = { has_variable = sakuya_b6_build_sel_oil_rig any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_oil_rig OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_coal_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_coal_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_iron_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_iron_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_lead_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_lead_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_sulfur_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_sulfur_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_gold_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_gold_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_rubber_plantation any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_rubber_plantation OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_paper_mill any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_paper_mill OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_glassworks any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_glassworks OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_tooling_workshop any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_tooling_workshop OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_steel_mill any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_steel_mill OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_motor_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_motor_industry OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_power_plant any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_power_plant OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_explosives_factory any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_explosives_factory OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_arms_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_arms_industry OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_artillery_foundry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_artillery_foundry OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_munition_plant any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_munition_plant OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_automotive_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_automotive_industry OR = { has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_default has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_shift has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_alt has_modifier = sakuya_cheat_b6_reserved_build_cash_reserves_ctrl } } } }
		}
	}
}
sakuya_b6_reserved_build_cash_reserves_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_default_stack_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_active } }
sakuya_b6_reserved_build_cash_reserves_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_shift_stack_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_active } }
sakuya_b6_reserved_build_cash_reserves_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_alt_stack_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_active } }
sakuya_b6_reserved_build_cash_reserves_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_ctrl_stack_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_active } }
sakuya_b6_reserved_build_cash_reserves_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_clear_cash_reserves_stack_from_player_marked_selected_buildings_effect = yes remove_variable = sakuya_b6_reserved_build_cash_reserves_active remove_variable = sakuya_b6_reserved_build_cash_reserves_plus_active } }
sakuya_b6_reserved_build_cash_reserves_plus_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_plus_default_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_plus_active } }
sakuya_b6_reserved_build_cash_reserves_plus_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_plus_shift_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_plus_active } }
sakuya_b6_reserved_build_cash_reserves_plus_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_plus_alt_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_plus_active } }
sakuya_b6_reserved_build_cash_reserves_plus_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_plus_ctrl_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_plus_active } }
sakuya_b6_reserved_build_cash_reserves_plus_right = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_cash_reserves_plus_right_effect = yes set_variable = sakuya_b6_reserved_build_cash_reserves_plus_active } }

sakuya_b6_reserved_build_minimum_wage_check = {
	scope = country
	is_shown = {
		OR = {
			AND = { has_variable = sakuya_b6_build_sel_oil_rig any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_oil_rig OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_coal_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_coal_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_iron_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_iron_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_lead_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_lead_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_sulfur_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_sulfur_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_gold_mine any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_gold_mine OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_rubber_plantation any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_rubber_plantation OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_paper_mill any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_paper_mill OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_glassworks any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_glassworks OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_tooling_workshop any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_tooling_workshop OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_steel_mill any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_steel_mill OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_motor_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_motor_industry OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_power_plant any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_power_plant OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_explosives_factory any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_explosives_factory OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_arms_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_arms_industry OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_artillery_foundry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_artillery_foundry OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_munition_plant any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_munition_plant OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_automotive_industry any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { is_building_type = building_automotive_industry OR = { has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_default has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_shift has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_alt has_modifier = sakuya_cheat_b6_reserved_build_minimum_wage_ctrl } } } }
		}
	}
}
sakuya_b6_reserved_build_minimum_wage_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_default_stack_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_active } }
sakuya_b6_reserved_build_minimum_wage_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_shift_stack_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_active } }
sakuya_b6_reserved_build_minimum_wage_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_alt_stack_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_active } }
sakuya_b6_reserved_build_minimum_wage_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_ctrl_stack_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_active } }
sakuya_b6_reserved_build_minimum_wage_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_clear_minimum_wage_stack_from_player_marked_selected_buildings_effect = yes remove_variable = sakuya_b6_reserved_build_minimum_wage_active remove_variable = sakuya_b6_reserved_build_minimum_wage_plus_active } }
sakuya_b6_reserved_build_minimum_wage_plus_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_plus_default_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_plus_active } }
sakuya_b6_reserved_build_minimum_wage_plus_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_plus_shift_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_plus_active } }
sakuya_b6_reserved_build_minimum_wage_plus_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_plus_alt_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_plus_active } }
sakuya_b6_reserved_build_minimum_wage_plus_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_plus_ctrl_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_plus_active } }
sakuya_b6_reserved_build_minimum_wage_plus_right = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_minimum_wage_plus_right_effect = yes set_variable = sakuya_b6_reserved_build_minimum_wage_plus_active } }

sakuya_b6_reserved_build_employee_check = {
	scope = country
	is_shown = {
		OR = {
			has_variable = sakuya_b6_reserved_build_employee_active
			AND = { has_variable = sakuya_b6_build_sel_oil_rig OR = { any_scope_state = { has_decree = decree_sakuya_mark_state OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction_ctrl } } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_oil_extraction_ctrl } } } }
			AND = { OR = { has_variable = sakuya_b6_build_sel_coal_mine has_variable = sakuya_b6_build_sel_iron_mine has_variable = sakuya_b6_build_sel_lead_mine has_variable = sakuya_b6_build_sel_sulfur_mine has_variable = sakuya_b6_build_sel_gold_mine } OR = { any_scope_state = { has_decree = decree_sakuya_mark_state OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining_ctrl } } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_mining_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_rubber_plantation OR = { any_scope_state = { has_decree = decree_sakuya_mark_state OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber_ctrl } } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_rubber_ctrl } } } }
			AND = { OR = { has_variable = sakuya_b6_build_sel_paper_mill has_variable = sakuya_b6_build_sel_glassworks has_variable = sakuya_b6_build_sel_tooling_workshop } OR = { any_scope_state = { has_decree = decree_sakuya_mark_state OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry_ctrl } } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_light_industry_ctrl } } } }
			AND = { OR = { has_variable = sakuya_b6_build_sel_steel_mill has_variable = sakuya_b6_build_sel_motor_industry has_variable = sakuya_b6_build_sel_explosives_factory has_variable = sakuya_b6_build_sel_automotive_industry } OR = { any_scope_state = { has_decree = decree_sakuya_mark_state OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry_ctrl } } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_heavy_industry_ctrl } } } }
			AND = { has_variable = sakuya_b6_build_sel_power_plant OR = { any_scope_state = { has_decree = decree_sakuya_mark_state OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power_ctrl } } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_power_ctrl } } } }
			AND = { OR = { has_variable = sakuya_b6_build_sel_arms_industry has_variable = sakuya_b6_build_sel_artillery_foundry has_variable = sakuya_b6_build_sel_munition_plant } OR = { any_scope_state = { has_decree = decree_sakuya_mark_state OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry_ctrl } } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } OR = { has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry_default has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry_shift has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry_alt has_modifier = sakuya_cheat_b6_reserved_build_employee_bg_military_industry_ctrl } } } }
		}
	}
}
sakuya_b6_reserved_build_employee_can_confirm_check = { scope = country is_shown = { OR = { has_variable = sakuya_b6_build_sel_oil_rig has_variable = sakuya_b6_build_sel_coal_mine has_variable = sakuya_b6_build_sel_iron_mine has_variable = sakuya_b6_build_sel_lead_mine has_variable = sakuya_b6_build_sel_sulfur_mine has_variable = sakuya_b6_build_sel_gold_mine has_variable = sakuya_b6_build_sel_rubber_plantation has_variable = sakuya_b6_build_sel_paper_mill has_variable = sakuya_b6_build_sel_glassworks has_variable = sakuya_b6_build_sel_tooling_workshop has_variable = sakuya_b6_build_sel_steel_mill has_variable = sakuya_b6_build_sel_motor_industry has_variable = sakuya_b6_build_sel_power_plant has_variable = sakuya_b6_build_sel_explosives_factory has_variable = sakuya_b6_build_sel_arms_industry has_variable = sakuya_b6_build_sel_artillery_foundry has_variable = sakuya_b6_build_sel_munition_plant has_variable = sakuya_b6_build_sel_automotive_industry } OR = { any_scope_state = { has_decree = decree_sakuya_mark_state } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } } } } }
sakuya_b6_reserved_build_employee_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_employee_default_stack_effect = yes set_variable = sakuya_b6_reserved_build_employee_active } }
sakuya_b6_reserved_build_employee_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_employee_shift_stack_effect = yes set_variable = sakuya_b6_reserved_build_employee_active } }
sakuya_b6_reserved_build_employee_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_employee_alt_stack_effect = yes set_variable = sakuya_b6_reserved_build_employee_active } }
sakuya_b6_reserved_build_employee_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_employee_ctrl_stack_effect = yes set_variable = sakuya_b6_reserved_build_employee_active } }
sakuya_b6_reserved_build_employee_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_clear_selected_building_group_employee_state_stack_effect = yes remove_variable = sakuya_b6_reserved_build_employee_active } }

sakuya_b6_reserved_build_infra_check = {
	scope = country
	is_shown = {
		OR = {
			has_variable = sakuya_b6_reserved_build_infra_active
			has_variable = sakuya_b6_build_sel_oil_rig
			has_variable = sakuya_b6_build_sel_coal_mine
			has_variable = sakuya_b6_build_sel_iron_mine
			has_variable = sakuya_b6_build_sel_lead_mine
			has_variable = sakuya_b6_build_sel_sulfur_mine
			has_variable = sakuya_b6_build_sel_gold_mine
			has_variable = sakuya_b6_build_sel_rubber_plantation
			has_variable = sakuya_b6_build_sel_paper_mill
			has_variable = sakuya_b6_build_sel_glassworks
			has_variable = sakuya_b6_build_sel_tooling_workshop
			has_variable = sakuya_b6_build_sel_steel_mill
			has_variable = sakuya_b6_build_sel_motor_industry
			has_variable = sakuya_b6_build_sel_power_plant
			has_variable = sakuya_b6_build_sel_explosives_factory
			has_variable = sakuya_b6_build_sel_arms_industry
			has_variable = sakuya_b6_build_sel_artillery_foundry
			has_variable = sakuya_b6_build_sel_munition_plant
			has_variable = sakuya_b6_build_sel_automotive_industry
		}
		OR = {
			any_scope_state = {
				has_decree = decree_sakuya_mark_state
				OR = {
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness_default
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness_shift
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness_alt
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness_ctrl
				}
			}
			any_state = {
				has_variable = sakuya_mark_foreign_state_target
				owner = { has_variable = sakuya_mark_country_target }
				OR = {
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness_default
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness_shift
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness_alt
					has_modifier = sakuya_cheat_b6_reserved_build_job_attractiveness_ctrl
				}
			}
		}
	}
}
sakuya_b6_reserved_build_infra_can_confirm_check = { scope = country is_shown = { OR = { has_variable = sakuya_b6_build_sel_oil_rig has_variable = sakuya_b6_build_sel_coal_mine has_variable = sakuya_b6_build_sel_iron_mine has_variable = sakuya_b6_build_sel_lead_mine has_variable = sakuya_b6_build_sel_sulfur_mine has_variable = sakuya_b6_build_sel_gold_mine has_variable = sakuya_b6_build_sel_rubber_plantation has_variable = sakuya_b6_build_sel_paper_mill has_variable = sakuya_b6_build_sel_glassworks has_variable = sakuya_b6_build_sel_tooling_workshop has_variable = sakuya_b6_build_sel_steel_mill has_variable = sakuya_b6_build_sel_motor_industry has_variable = sakuya_b6_build_sel_power_plant has_variable = sakuya_b6_build_sel_explosives_factory has_variable = sakuya_b6_build_sel_arms_industry has_variable = sakuya_b6_build_sel_artillery_foundry has_variable = sakuya_b6_build_sel_munition_plant has_variable = sakuya_b6_build_sel_automotive_industry } OR = { any_scope_state = { has_decree = decree_sakuya_mark_state } any_state = { has_variable = sakuya_mark_foreign_state_target owner = { has_variable = sakuya_mark_country_target } } } } }
sakuya_b6_reserved_build_infra_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_infra_default_stack_effect = yes set_variable = sakuya_b6_reserved_build_infra_active } }
sakuya_b6_reserved_build_infra_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_infra_shift_stack_effect = yes set_variable = sakuya_b6_reserved_build_infra_active } }
sakuya_b6_reserved_build_infra_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_infra_alt_stack_effect = yes set_variable = sakuya_b6_reserved_build_infra_active } }
sakuya_b6_reserved_build_infra_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_reserved_build_infra_ctrl_stack_effect = yes set_variable = sakuya_b6_reserved_build_infra_active } }
sakuya_b6_reserved_build_infra_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_clear_selected_building_working_conditions_state_stack_effect = yes remove_variable = sakuya_b6_reserved_build_infra_active } }

sakuya_b3_goods_build_test_laborers_check = { scope = country is_shown = { any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { OR = { has_modifier = sakuya_cheat_b3_goods_build_laborers_test has_modifier = sakuya_cheat_b3_goods_build_laborers_test_default has_modifier = sakuya_cheat_b3_goods_build_laborers_test_shift has_modifier = sakuya_cheat_b3_goods_build_laborers_test_alt has_modifier = sakuya_cheat_b3_goods_build_laborers_test_ctrl } } } } }
sakuya_b3_goods_build_test_laborers_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_apply_modifier_to_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_laborers_test MOD = sakuya_cheat_b3_goods_build_laborers_test_default MOD1 = sakuya_cheat_b3_goods_build_laborers_test_default MOD2 = sakuya_cheat_b3_goods_build_laborers_test_shift MOD3 = sakuya_cheat_b3_goods_build_laborers_test_alt MOD4 = sakuya_cheat_b3_goods_build_laborers_test_ctrl } } }
sakuya_b3_goods_build_test_laborers_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_apply_modifier_to_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_laborers_test MOD = sakuya_cheat_b3_goods_build_laborers_test_shift MOD1 = sakuya_cheat_b3_goods_build_laborers_test_default MOD2 = sakuya_cheat_b3_goods_build_laborers_test_shift MOD3 = sakuya_cheat_b3_goods_build_laborers_test_alt MOD4 = sakuya_cheat_b3_goods_build_laborers_test_ctrl } } }
sakuya_b3_goods_build_test_laborers_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_apply_modifier_to_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_laborers_test MOD = sakuya_cheat_b3_goods_build_laborers_test_alt MOD1 = sakuya_cheat_b3_goods_build_laborers_test_default MOD2 = sakuya_cheat_b3_goods_build_laborers_test_shift MOD3 = sakuya_cheat_b3_goods_build_laborers_test_alt MOD4 = sakuya_cheat_b3_goods_build_laborers_test_ctrl } } }
sakuya_b3_goods_build_test_laborers_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_apply_modifier_to_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_laborers_test MOD = sakuya_cheat_b3_goods_build_laborers_test_ctrl MOD1 = sakuya_cheat_b3_goods_build_laborers_test_default MOD2 = sakuya_cheat_b3_goods_build_laborers_test_shift MOD3 = sakuya_cheat_b3_goods_build_laborers_test_alt MOD4 = sakuya_cheat_b3_goods_build_laborers_test_ctrl } } }
sakuya_b3_goods_build_test_laborers_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_clear_modifier_from_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_laborers_test MOD1 = sakuya_cheat_b3_goods_build_laborers_test_default MOD2 = sakuya_cheat_b3_goods_build_laborers_test_shift MOD3 = sakuya_cheat_b3_goods_build_laborers_test_alt MOD4 = sakuya_cheat_b3_goods_build_laborers_test_ctrl } } }

sakuya_b3_goods_build_test_throughput_check = { scope = country is_shown = { any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { OR = { has_modifier = sakuya_cheat_b3_goods_build_throughput_test has_modifier = sakuya_cheat_b3_goods_build_throughput_test_default has_modifier = sakuya_cheat_b3_goods_build_throughput_test_shift has_modifier = sakuya_cheat_b3_goods_build_throughput_test_alt has_modifier = sakuya_cheat_b3_goods_build_throughput_test_ctrl has_modifier = sakuya_cheat_b3_goods_build_throughput_test_plus has_modifier = sakuya_cheat_b3_goods_build_throughput_test_plus_default has_modifier = sakuya_cheat_b3_goods_build_throughput_test_plus_shift has_modifier = sakuya_cheat_b3_goods_build_throughput_test_plus_alt has_modifier = sakuya_cheat_b3_goods_build_throughput_test_plus_ctrl } } } } }
sakuya_b3_goods_build_test_throughput_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_default_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_active } }
sakuya_b3_goods_build_test_throughput_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_shift_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_active } }
sakuya_b3_goods_build_test_throughput_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_alt_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_active } }
sakuya_b3_goods_build_test_throughput_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_ctrl_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_active } }
sakuya_b3_goods_build_test_throughput_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_clear_goods_build_throughput_stack_effect = yes sakuya_b6_clear_goods_build_throughput_plus_stack_effect = yes remove_variable = sakuya_b6_reserved_build_tp_general_active remove_variable = sakuya_b6_reserved_build_tp_general_plus_active } }
sakuya_b3_goods_build_test_throughput_plus_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_plus_default_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_plus_active } }
sakuya_b3_goods_build_test_throughput_plus_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_plus_shift_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_plus_active } }
sakuya_b3_goods_build_test_throughput_plus_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_plus_alt_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_plus_active } }
sakuya_b3_goods_build_test_throughput_plus_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_plus_ctrl_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_plus_active } }
sakuya_b3_goods_build_test_throughput_plus_right = { scope = country is_shown = { is_player = yes } effect = { sakuya_b6_goods_build_throughput_plus_right_stack_effect = yes set_variable = sakuya_b6_reserved_build_tp_general_plus_active } }

sakuya_b3_goods_build_test_machinists_check = { scope = country is_shown = { any_scope_state = { has_decree = decree_sakuya_mark_state any_scope_building = { OR = { has_modifier = sakuya_cheat_b3_goods_build_machinists_test has_modifier = sakuya_cheat_b3_goods_build_machinists_test_default has_modifier = sakuya_cheat_b3_goods_build_machinists_test_shift has_modifier = sakuya_cheat_b3_goods_build_machinists_test_alt has_modifier = sakuya_cheat_b3_goods_build_machinists_test_ctrl } } } } }
sakuya_b3_goods_build_test_machinists_add = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_apply_modifier_to_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_machinists_test MOD = sakuya_cheat_b3_goods_build_machinists_test_default MOD1 = sakuya_cheat_b3_goods_build_machinists_test_default MOD2 = sakuya_cheat_b3_goods_build_machinists_test_shift MOD3 = sakuya_cheat_b3_goods_build_machinists_test_alt MOD4 = sakuya_cheat_b3_goods_build_machinists_test_ctrl } } }
sakuya_b3_goods_build_test_machinists_shift = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_apply_modifier_to_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_machinists_test MOD = sakuya_cheat_b3_goods_build_machinists_test_shift MOD1 = sakuya_cheat_b3_goods_build_machinists_test_default MOD2 = sakuya_cheat_b3_goods_build_machinists_test_shift MOD3 = sakuya_cheat_b3_goods_build_machinists_test_alt MOD4 = sakuya_cheat_b3_goods_build_machinists_test_ctrl } } }
sakuya_b3_goods_build_test_machinists_alt = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_apply_modifier_to_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_machinists_test MOD = sakuya_cheat_b3_goods_build_machinists_test_alt MOD1 = sakuya_cheat_b3_goods_build_machinists_test_default MOD2 = sakuya_cheat_b3_goods_build_machinists_test_shift MOD3 = sakuya_cheat_b3_goods_build_machinists_test_alt MOD4 = sakuya_cheat_b3_goods_build_machinists_test_ctrl } } }
sakuya_b3_goods_build_test_machinists_ctrl = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_apply_modifier_to_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_machinists_test MOD = sakuya_cheat_b3_goods_build_machinists_test_ctrl MOD1 = sakuya_cheat_b3_goods_build_machinists_test_default MOD2 = sakuya_cheat_b3_goods_build_machinists_test_shift MOD3 = sakuya_cheat_b3_goods_build_machinists_test_alt MOD4 = sakuya_cheat_b3_goods_build_machinists_test_ctrl } } }
sakuya_b3_goods_build_test_machinists_clear = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_clear_modifier_from_player_marked_selected_buildings_effect = { OLD_MOD = sakuya_cheat_b3_goods_build_machinists_test MOD1 = sakuya_cheat_b3_goods_build_machinists_test_default MOD2 = sakuya_cheat_b3_goods_build_machinists_test_shift MOD3 = sakuya_cheat_b3_goods_build_machinists_test_alt MOD4 = sakuya_cheat_b3_goods_build_machinists_test_ctrl } } }


# === B3 COMPANY CHARTER EXPERIMENT SGUI BEGIN ===
sakuya_b3_company_selected_building_charter_enabled = {
    scope = country
    is_shown = {
        is_player = yes
        any_country = { any_company = { has_variable = sakuya_main_03_01_marked } }
        OR = {
            has_variable = sakuya_b6_build_sel_coal_mine has_variable = sakuya_b6_build_sel_iron_mine has_variable = sakuya_b6_build_sel_lead_mine has_variable = sakuya_b6_build_sel_sulfur_mine has_variable = sakuya_b6_build_sel_gold_mine has_variable = sakuya_b6_build_sel_gold_field has_variable = sakuya_b6_build_sel_logging_camp has_variable = sakuya_b6_build_sel_rubber_plantation has_variable = sakuya_b6_build_sel_fishing_wharf has_variable = sakuya_b6_build_sel_whaling_station has_variable = sakuya_b6_build_sel_oil_rig has_variable = sakuya_b6_build_sel_power_plant has_variable = sakuya_b6_build_sel_university has_variable = sakuya_b6_build_sel_railway has_variable = sakuya_b6_build_sel_construction_sector has_variable = sakuya_b6_build_sel_government_administration has_variable = sakuya_b6_build_sel_port has_variable = sakuya_b6_build_sel_barrack has_variable = sakuya_b6_build_sel_conscription_center has_variable = sakuya_b6_build_sel_naval_administration has_variable = sakuya_b6_build_sel_naval_fortification has_variable = sakuya_b6_build_sel_naval_logistics_center has_variable = sakuya_b6_build_sel_rye_farm has_variable = sakuya_b6_build_sel_wheat_farm has_variable = sakuya_b6_build_sel_rice_farm has_variable = sakuya_b6_build_sel_maize_farm has_variable = sakuya_b6_build_sel_millet_farm has_variable = sakuya_b6_build_sel_livestock_ranch has_variable = sakuya_b6_build_sel_vineyard has_variable = sakuya_b6_build_sel_coffee_plantation has_variable = sakuya_b6_build_sel_cotton_plantation has_variable = sakuya_b6_build_sel_dye_plantation has_variable = sakuya_b6_build_sel_opium_plantation has_variable = sakuya_b6_build_sel_tea_plantation has_variable = sakuya_b6_build_sel_tobacco_plantation has_variable = sakuya_b6_build_sel_sugar_plantation has_variable = sakuya_b6_build_sel_banana_plantation has_variable = sakuya_b6_build_sel_silk_plantation has_variable = sakuya_b6_build_sel_food_industry has_variable = sakuya_b6_build_sel_textile_mill has_variable = sakuya_b6_build_sel_furniture_manufactory has_variable = sakuya_b6_build_sel_glassworks has_variable = sakuya_b6_build_sel_tooling_workshop has_variable = sakuya_b6_build_sel_paper_mill has_variable = sakuya_b6_build_sel_chemical_plant has_variable = sakuya_b6_build_sel_explosives_factory has_variable = sakuya_b6_build_sel_synthetics_plant has_variable = sakuya_b6_build_sel_steel_mill has_variable = sakuya_b6_build_sel_motor_industry has_variable = sakuya_b6_build_sel_shipyard has_variable = sakuya_b6_build_sel_automotive_industry has_variable = sakuya_b6_build_sel_electrics_industry has_variable = sakuya_b6_build_sel_arms_industry has_variable = sakuya_b6_build_sel_artillery_foundry has_variable = sakuya_b6_build_sel_munition_plant has_variable = sakuya_b6_build_sel_art_academy has_variable = sakuya_b6_build_sel_urban_center has_variable = sakuya_b6_build_sel_trade_center has_variable = sakuya_b6_build_sel_manor_house has_variable = sakuya_b6_build_sel_financial_district has_variable = sakuya_b6_build_sel_company_headquarter has_variable = sakuya_b6_build_sel_company_regional_headquarter has_variable = sakuya_b6_build_sel_skyscraper has_variable = sakuya_b6_build_sel_suez_canal has_variable = sakuya_b6_build_sel_panama_canal has_variable = sakuya_b6_build_sel_eiffel_tower has_variable = sakuya_b6_build_sel_angkor_wat has_variable = sakuya_b6_build_sel_big_ben has_variable = sakuya_b6_build_sel_forbidden_city has_variable = sakuya_b6_build_sel_hagia_sophia has_variable = sakuya_b6_build_sel_mosque_of_djenne has_variable = sakuya_b6_build_sel_saint_basils_cathedral has_variable = sakuya_b6_build_sel_statue_of_liberty has_variable = sakuya_b6_build_sel_taj_mahal has_variable = sakuya_b6_build_sel_vatican_city has_variable = sakuya_b6_build_sel_white_house has_variable = sakuya_b6_build_sel_cristo_redentor has_variable = sakuya_b6_build_sel_power_bloc_statue has_variable = sakuya_b6_build_sel_victoria_terminus has_variable = sakuya_b6_build_sel_kaiserforum_1 has_variable = sakuya_b6_build_sel_kaiserforum_2 has_variable = sakuya_b6_build_sel_kaiserforum_3 has_variable = sakuya_b6_build_sel_kaiserforum_4 has_variable = sakuya_b6_build_sel_sagrada_familia_cathedral_1 has_variable = sakuya_b6_build_sel_sagrada_familia_cathedral_2 has_variable = sakuya_b6_build_sel_sagrada_familia_cathedral_3 has_variable = sakuya_b6_build_sel_pena_palace has_variable = sakuya_b6_build_sel_gran_teatro_de_la_habana has_variable = sakuya_b6_build_sel_estacion_de_madrid_atocha has_variable = sakuya_b6_build_sel_manila_cathedral_monument has_variable = sakuya_b6_build_sel_machu_picchu has_variable = sakuya_b6_build_sel_pena_convent has_variable = sakuya_b6_build_sel_manila_cathedral_original has_variable = sakuya_b6_build_sel_manila_cathedral_ruins
        }
    }
}

sakuya_b3_company_industry_charter_selected = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_company_industry_charter_selected_effect = yes } }
sakuya_b3_company_remove_industry_charter_selected = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_company_remove_industry_charter_selected_effect = yes } }
sakuya_b3_company_monopoly_selected = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_company_monopoly_selected_effect = yes } }
sakuya_b3_company_remove_monopoly_selected = { scope = country is_shown = { is_player = yes } effect = { sakuya_b3_company_remove_monopoly_selected_effect = yes } }
# === B3 COMPANY CHARTER EXPERIMENT SGUI END ===


sakuya_b3_trait_add_tolerant = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = tolerant
        }
    }
}

sakuya_b3_trait_remove_tolerant = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = tolerant
        }
    }
}

sakuya_b3_trait_add_scandalous = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = scandalous
        }
    }
}

sakuya_b3_trait_remove_scandalous = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = scandalous
        }
    }
}

sakuya_b3_trait_add_hemophilia = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = hemophilia
        }
    }
}

sakuya_b3_trait_remove_hemophilia = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = hemophilia
        }
    }
}

sakuya_b3_trait_add_basic_cavalry_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = basic_cavalry_commander
        }
    }
}

sakuya_b3_trait_remove_basic_cavalry_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = basic_cavalry_commander
        }
    }
}

sakuya_b3_trait_add_experienced_cavalry_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = experienced_cavalry_commander
        }
    }
}

sakuya_b3_trait_remove_experienced_cavalry_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = experienced_cavalry_commander
        }
    }
}

sakuya_b3_trait_add_expert_cavalry_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_add_marked_character_trait_effect = {
            TRAIT = expert_cavalry_commander
        }
    }
}

sakuya_b3_trait_remove_expert_cavalry_commander = {
    scope = country
    is_shown = { is_player = yes }
    effect = {
        sakuya_b3_remove_marked_character_trait_effect = {
            TRAIT = expert_cavalry_commander
        }
    }
}