eoanb_influence_calc = {
	every_country = {
	    clear_variable = pp_scaling_influence
	    if = {
	        limit = { check_variable = { overall_score > 0 } }
		    set_variable = { pp_scaling_influence = overall_score }
	    }
        else = {
		    set_variable = { pp_scaling_influence = 1 }
		}		
	}
} 

eoanb_war_goals_calc = {
    clear_variable = This.wargoal_take_state
	clear_array = This.wargoals_array
	# if = {
	    # limit = {
		    # THIS = { is_neighbor_of = ROOT }
		# }
		set_variable = { wargoal_take_state = 1 }
		add_to_array = { wargoals_array = wargoal_take_state }
	# }
}