#######################################################
###############                   ##############
############### Chinese_Buildings ##############
###############      彨     ##############
###############                   ##############
#######################################################
castle = {
  anxiduhufu = {
    potential = {
      FROM = {
        OR = {
          FROMFROM={ title=e_china_west_governor }
          has_landed_title=e_china_west_governor
        }
      }
    }
	trigger = { location = { is_capital = yes } }
#   prerequisites = { ca_wall_1 }
    build_cost = 10000
    build_time = 10000
    fort_level = 10
    tax_income = 10
	local_tax_modifier=0.1
    garrison_size = 0.1
    land_morale = 0.1
	retinuesize = 10000
    ai_creation_factor = 100
    start = {
      OR = {
        AND = {
          FROMFROM={ title=e_china_west_governor }
          has_landed_title=e_china_west_governor
          year = 769
        }
      }
    }
  }
  Han_zhuanyuang_camp_1 = {
    potential = {
      FROM = {
        OR = {
          culture = han
        }
      }
    }
    ai_creation_factor = 150
    build_cost = 200
    build_time = 200
    fort_level = 0.5
    tax_income = 2
#	garrison_size = 0.05
#	retinuesize_perc = 0.05
	retinuesize = 50
    start = {
      OR = {
        AND = {
          culture = han
          year = 769
        }
      }
    }
  }
  Han_zhuanyuang_camp_2 = {
    potential = {
      FROM = {
        OR = {
          culture = han
        }
      }
    }
    ai_creation_factor = 130
    upgrades_from = Han_zhuanyuang_camp_1
    trigger = { TECH_CASTLE_CONSTRUCTION = 1 }
    build_cost = 400
    build_time = 400
    fort_level = 1
    tax_income = 4
#	garrison_size = 0.1
#	retinuesize_perc = 0.1
	retinuesize = 100
    start = {
      OR = {
        AND = {
          culture = han
          year = 769
        }
      }
    }
  }
  Han_zhuanyuang_camp_3 = {
    potential = {
      FROM = {
        OR = {
          culture = han
        }
      }
    }
    ai_creation_factor = 120
    upgrades_from = Han_zhuanyuang_camp_2
    trigger = { TECH_CASTLE_CONSTRUCTION = 2 }
    build_cost = 600
    build_time = 600
    fort_level = 1.5
    tax_income = 6
#	garrison_size = 0.15
#	retinuesize_perc = 0.15
	retinuesize = 150
    start = {
      OR = {
        AND = {
          culture = han
          year = 769
        }
      }
    }
  }
  Han_zhuanyuang_camp_4 = {
    potential = {
      FROM = {
        OR = {
          culture = han
        }
      }
    }
    ai_creation_factor = 100
    upgrades_from = Han_zhuanyuang_camp_3
    trigger = { TECH_CASTLE_CONSTRUCTION = 3 }
    build_cost = 800
    build_time = 800
    fort_level = 2
    tax_income = 8
#	garrison_size = 0.2
#	retinuesize_perc = 0.2
	retinuesize = 200
    start = {
      OR = {
        AND = {
          culture = han
          year = 769
        }
      }
    }
  }
  Han_zhuanyuang_camp_5 = {
    potential = {
      FROM = {
        OR = {
          culture = han
        }
      }
    }
    ai_creation_factor = 100
    upgrades_from = Han_zhuanyuang_camp_4
    trigger = { TECH_CASTLE_CONSTRUCTION = 4 }
    build_cost = 1000
    build_time = 1000
    fort_level = 5
    tax_income = 10
#	garrison_size = 0.5
#	retinuesize_perc = 0.5
	retinuesize = 500
    start = {
      OR = {
        AND = {
          culture = han
          year = 769
        }
      }
    }
  }
}
### Chinese Temple Buildings  
temple = {
  # 
  The_pulpit_of_Han_1 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 150
    prerequisites = { tp_wall_1 }
    build_cost = 200
    build_time = 200
    fort_level = 0.2
    tax_income = 1
	liege_piety = 0.05
    garrison_size = 0.1
    archers = 5
    archers_defensive = 0.05
    archers_offensive = 0.05
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  The_pulpit_of_Han_2 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 130
    upgrades_from = The_pulpit_of_Han_1
    trigger = { TECH_TEMPLE_CONSTRUCTION = 1 }
    build_cost = 400
    build_time = 400
    fort_level = 0.4
    tax_income = 2
	liege_piety = 0.10
    garrison_size = 0.2
    archers = 10
    archers_defensive = 0.1
    archers_offensive = 0.1
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  The_pulpit_of_Han_3 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 120
    upgrades_from = The_pulpit_of_Han_2
    trigger = { TECH_TEMPLE_CONSTRUCTION = 2 }
    build_cost = 600
    build_time = 600
    fort_level = 0.6
    tax_income = 3
	liege_piety = 0.15
    garrison_size = 0.3
    archers = 15
    archers_defensive = 0.15
    archers_offensive = 0.15
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  The_pulpit_of_Han_4 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 100
    upgrades_from = The_pulpit_of_Han_3
    trigger = { TECH_TEMPLE_CONSTRUCTION = 3 }
    build_cost = 800
    build_time = 800
    fort_level = 0.8
    tax_income = 4
	liege_piety = 0.2
    garrison_size = 0.4
    archers = 20
    archers_defensive = 0.2
    archers_offensive = 0.2
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  The_pulpit_of_Han_5 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 100
    upgrades_from = The_pulpit_of_Han_4
    trigger = { TECH_TEMPLE_CONSTRUCTION = 4 }
    build_cost = 1000
    build_time = 1000
    fort_level = 1.0
    tax_income = 5
	liege_piety = 0.5
    garrison_size = 0.5
    archers = 50
    archers_defensive = 0.5
    archers_offensive = 0.5
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  # Ժ
  Han_scientific_research_institution_1 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 150
    prerequisites = { tp_wall_1 }
    build_cost = 200
    build_time = 200
    tax_income = 1
    tech_growth_modifier = 0.05
    tech_growth_modifier_military = 0.05
    tech_growth_modifier_economy = 0.05
    tech_growth_modifier_culture = 0.05
	culture_techpoints=0.05
	military_techpoints=0.05
    economy_techpoints=0.05
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  Han_scientific_research_institution_2 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 130
    upgrades_from = Han_scientific_research_institution_1
    trigger = { TECH_TEMPLE_CONSTRUCTION = 1 }
    build_cost = 400
    build_time = 400
    tax_income = 2
    tech_growth_modifier = 0.15
    tech_growth_modifier_military = 0.15
    tech_growth_modifier_economy = 0.15
    tech_growth_modifier_culture = 0.15
	culture_techpoints=0.15
	military_techpoints=0.15
    economy_techpoints=0.15
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  Han_scientific_research_institution_3 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 120
    upgrades_from = Han_scientific_research_institution_2
    trigger = { TECH_TEMPLE_CONSTRUCTION = 2 }
    build_cost = 600
    build_time = 600
    tax_income = 3
    tech_growth_modifier = 0.3
    tech_growth_modifier_military = 0.3
    tech_growth_modifier_economy = 0.3
    tech_growth_modifier_culture = 0.3
	culture_techpoints=0.3
	military_techpoints=0.3
    economy_techpoints=0.3
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  Han_scientific_research_institution_4 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 100
    upgrades_from = Han_scientific_research_institution_3
    trigger = { TECH_TEMPLE_CONSTRUCTION = 3 }
    build_cost = 800
    build_time = 800
    tax_income = 4
    tech_growth_modifier = 0.5
    tech_growth_modifier_military = 0.5
    tech_growth_modifier_economy = 0.5
    tech_growth_modifier_culture = 0.5
	culture_techpoints=0.5
	military_techpoints=0.5
    economy_techpoints=0.5
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  Han_scientific_research_institution_5 = {
    potential = {
      FROM = {
		  religion = confucianism
      }
    }
    ai_creation_factor = 100
    upgrades_from = Han_scientific_research_institution_4
    trigger = { TECH_TEMPLE_CONSTRUCTION = 4 }
    build_cost = 1000
    build_time = 1000
    tax_income = 5
    tech_growth_modifier = 1
    tech_growth_modifier_military = 1
    tech_growth_modifier_economy = 1
    tech_growth_modifier_culture = 1
	culture_techpoints=1
	military_techpoints=1
    economy_techpoints=1
    start = {
      OR = {
        AND = {
          religion = confucianism
          year = 769
        }
      }
    }
  }
  # 
  daomiao1 = {
    potential = {
          religion = taoist
    }
	desc="daomiao1"
    ai_creation_factor = 150
#    prerequisites = { tp_wall_1 }
    build_cost = 100
    build_time = 100
    tax_income = 10
	liege_piety = 0.1
	culture_techpoints=0.1
    start = {
      OR = {
        AND = {
          religion = taoist
          year = 769
        }
      }
    }
  }
  daomiao2 = {
    potential = {
          religion = taoist
    }
	desc="daomiao2"
    ai_creation_factor = 150
#    prerequisites = { tp_wall_1 }
    build_cost = 100
    build_time = 100
    tax_income = 10
	liege_piety = 0.1
	military_techpoints=0.1
    start = {
      OR = {
        AND = {
          religion = taoist
          year = 769
        }
      }
    }
  }
  daomiao3 = {
    potential = {
          religion = taoist
		  port = no
    }
	desc="daomiao3"
    ai_creation_factor = 150
#    prerequisites = { tp_wall_1 }
    build_cost = 100
    build_time = 100
    tax_income = 10
	liege_piety = 0.1
    economy_techpoints=0.1
    start = {
      OR = {
        AND = {
          religion = taoist
          year = 769
        }
      }
    }
  }
  daomiao4 = {
    potential = {
          religion = taoist
		  port = yes
    }
	desc="daomiao4"
    ai_creation_factor = 150
#    prerequisites = { tp_wall_1 }
    build_cost = 100
    build_time = 100
    tax_income = 10
	liege_piety = 0.1
    economy_techpoints=0.1
    start = {
      OR = {
        AND = {
          religion = taoist
          year = 769
        }
      }
    }
  }
}



