﻿province_cultural_unity = {
  value = integrated_pops
  divide = total_population
  multiply = 100
}

integrated_pops = {
  if = {
    limit = {
      has_owner = yes
    }
    every_pops_in_province = {
      limit = {
        country_culture = {
          is_integrated = yes
        }
      }
      add = 1
    }
  }
}

province_religious_unity = {
  value = total_population
  subtract = num_other_religion
  divide = total_population
  multiply = 100
}
