# Generic Focus Tree Rework (Updated & Rebalanced)
#
# RCP_remove_balance_of_power deactivates any active Balance of Power when a
# nation switches to the generic tree (the mechanic belongs to country-specific
# trees: Finland, Denmark, Ethiopia, Italy, Sweden, Switzerland, Czechoslovakia,
# Brazil, PRC + Road to 56's Germany, Austria, China, Poland and others).
# Every removal is guarded with has_power_balance, mirroring how the base game
# does it (see CZE_scripted_effects.txt). Ids covering both vanilla and R56;
# checks on ids that do not exist in the current game set just log to error.log.

RCP_remove_balance_of_power = {
	# Vanilla
	if = { limit = { has_power_balance = { id = BRA_political_military_balance } } remove_power_balance = { id = BRA_political_military_balance } }
	if = { limit = { has_power_balance = { id = CZE_bop_army_readiness } } remove_power_balance = { id = CZE_bop_army_readiness } }
	if = { limit = { has_power_balance = { id = DEN_balance_of_power } } remove_power_balance = { id = DEN_balance_of_power } }
	if = { limit = { has_power_balance = { id = DEN_occupation_balance } } remove_power_balance = { id = DEN_occupation_balance } }
	if = { limit = { has_power_balance = { id = ETH_centralization_balance } } remove_power_balance = { id = ETH_centralization_balance } }
	if = { limit = { has_power_balance = { id = FIN_power_balance } } remove_power_balance = { id = FIN_power_balance } }
	if = { limit = { has_power_balance = { id = ITA_power_balance } } remove_power_balance = { id = ITA_power_balance } }
	if = { limit = { has_power_balance = { id = PRC_communist_power_struggle } } remove_power_balance = { id = PRC_communist_power_struggle } }
	if = { limit = { has_power_balance = { id = SWE_riksdag_political_balance } } remove_power_balance = { id = SWE_riksdag_political_balance } }
	if = { limit = { has_power_balance = { id = SWI_centralization_bop } } remove_power_balance = { id = SWI_centralization_bop } }
	# Road to 56
	if = { limit = { has_power_balance = { id = AFG_power_balance } } remove_power_balance = { id = AFG_power_balance } }
	if = { limit = { has_power_balance = { id = AFG_communist_power_balance } } remove_power_balance = { id = AFG_communist_power_balance } }
	if = { limit = { has_power_balance = { id = AUS_heimwehr_power_balance } } remove_power_balance = { id = AUS_heimwehr_power_balance } }
	if = { limit = { has_power_balance = { id = AUS_reform_power_balance } } remove_power_balance = { id = AUS_reform_power_balance } }
	if = { limit = { has_power_balance = { id = AUS_monarchist_power_balance } } remove_power_balance = { id = AUS_monarchist_power_balance } }
	if = { limit = { has_power_balance = { id = KMT_main_bop } } remove_power_balance = { id = KMT_main_bop } }
	if = { limit = { has_power_balance = { id = KMT_ycp_bop } } remove_power_balance = { id = KMT_ycp_bop } }
	if = { limit = { has_power_balance = { id = GER_monarchist_power_balance } } remove_power_balance = { id = GER_monarchist_power_balance } }
	if = { limit = { has_power_balance = { id = GER_thalmanns_cult_of_personality_bop } } remove_power_balance = { id = GER_thalmanns_cult_of_personality_bop } }
	if = { limit = { has_power_balance = { id = GER_beck_canaris_struggle } } remove_power_balance = { id = GER_beck_canaris_struggle } }
	if = { limit = { has_power_balance = { id = GER_wilhelm_ii_bop } } remove_power_balance = { id = GER_wilhelm_ii_bop } }
	if = { limit = { has_power_balance = { id = LIE_landtag_balance_of_power } } remove_power_balance = { id = LIE_landtag_balance_of_power } }
	if = { limit = { has_power_balance = { id = LUX_neutrality_balance } } remove_power_balance = { id = LUX_neutrality_balance } }
	if = { limit = { has_power_balance = { id = LUX_fascist_balance } } remove_power_balance = { id = LUX_fascist_balance } }
	if = { limit = { has_power_balance = { id = MAN_kwantung_bop } } remove_power_balance = { id = MAN_kwantung_bop } }
	if = { limit = { has_power_balance = { id = MPL_power_balance } } remove_power_balance = { id = MPL_power_balance } }
	if = { limit = { has_power_balance = { id = POL_power_balance } } remove_power_balance = { id = POL_power_balance } }
	if = { limit = { has_power_balance = { id = PRU_army_navy_bop } } remove_power_balance = { id = PRU_army_navy_bop } }
	if = { limit = { has_power_balance = { id = r56_south_asia_religious_bop } } remove_power_balance = { id = r56_south_asia_religious_bop } }
	if = { limit = { has_power_balance = { id = ROM_percentage_power_balance } } remove_power_balance = { id = ROM_percentage_power_balance } }
}
