maritime_republic_mechanic = {
	available = {
		always = yes
	}

	powers = {
		maritime_republic = {
			gui = maritime_republic_mechanic_power
			min = 0
			max = 100
			default = 0
			scaled_modifier = {
				modifier = {
					center_of_trade_upgrade_cost = -0.35
					mercantilism_cost = -0.25
					global_own_trade_power = 0.15
					global_ship_trade_power = 0.25
				}
			}
			on_max_reached = {
				if = {
					limit = {
						NOT = { has_country_flag = max_maritime_republic_reached }
					}
					add_mercantilism_or_monarch_power = { amount = 10 }
				}
				set_country_flag = max_maritime_republic_reached
			}
		}
	}
}
