Code:
;============================================================================================================================== Kernave;---- Kernave - Vilnius Castle ---------------------------------------------------------------------------------------------
;==============================================================================================================================
; this building is copied from Narikala, thus similar to the Rock of Edinburg (but differs in parts of the code)
; the recruitment is just copied from Landowners2, no increase yet
; lvl2 (tower) is in game at the beginning.
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
building wonder_kernave_vilnius
{
levels wonder_kernave_vilnius1_hill wonder_kernave_vilnius2_lizdeika wonder_kernave_vilnius3_tower wonder_kernave_vilnius4_castle
{
wonder_kernave_vilnius1_hill requires factions { northern_european, eastern_european, southern_european, greek, middle_eastern, } and hidden_resource lithuania and hidden_resource capital or event_counter dummy 1
{
capability
{
trade_base_income_bonus bonus 1 requires factions { all, } and not event_counter FL_policy_merchant_skills 1
trade_base_income_bonus bonus 2 requires factions { all, } and event_counter FL_policy_merchant_skills 1
; own recruitment: makes up for castle barracks
recruit_pool "Ducal Axe" 1 0.07 2 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Lithuanian Noble Sons" 1 0.07 2 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1 and not event_counter FULL_PLATE_ARMOR 1
recruit_pool "L Regular Infantry" 1 0.07 2 0 requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
; own recruitment: makes up for stables
recruit_pool "L Cavalry Militia" 1 0.07 2 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Noble Sons Cavalry" 1 0.07 2 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1 and not event_counter LITHUANIA5_LITHUANIAN_EMPIRE 1
recruit_pool "L Regular Cavalry" 1 0.07 2 0 requires factions { lithuania, } and event_counter LITHUANIA5_LITHUANIAN_EMPIRE 1
; adds to city barracks
recruit_pool "Baltic Spearmen" 0 0.05 0 0 requires factions { lithuania, } and not event_counter HALF_PLATE_ARMOR 1
recruit_pool "Late Lithuanian Spearman" 0 0.05 0 0 requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1
recruit_pool "Halberd Militia" 0 0.05 0 0 requires factions { lithuania, } and event_counter MATCHLOCK 1
recruit_pool "Lithuanian Axemen" 0 0.05 0 0 requires factions { lithuania, } and not event_counter MATCHLOCK 1
recruit_pool "Lithuanian Arquebusiers" 0 0.05 0 0 requires factions { lithuania, } and event_counter MATCHLOCK 1
; adds to Landowners building
recruit_pool "Ducal Cavalry" 0 0.05 0 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Noble Cavalry" 0 0.05 0 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Ducal Spearmen" 0 0.05 0 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Lithuanian Noble Infantry" 0 0.05 0 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1
;---------------------------------------------------------------------------------------------------------------------------------
; UPKEEP/INCOME 0
}
material wooden
construction 1
cost 1
settlement_min village
upgrades
{
wonder_kernave_vilnius2_lizdeika
}
}
wonder_kernave_vilnius2_lizdeika requires factions { northern_european, eastern_european, southern_european, greek, middle_eastern, } and hidden_resource lithuania and hidden_resource capital or event_counter dummy 1
{
capability
{
law_bonus bonus 1 requires factions { all, } and not event_counter FL_is_crowned_ruler 1
law_bonus bonus 2 requires factions { all, } and event_counter FL_is_crowned_ruler 1
population_growth_bonus bonus 1 requires factions { all, } and not event_counter FL_is_crowned_ruler 1
population_growth_bonus bonus 2 requires factions { all, } and event_counter FL_is_crowned_ruler 1
trade_base_income_bonus bonus 1 requires factions { all, } and not event_counter FL_policy_merchant_skills 1
trade_base_income_bonus bonus 2 requires factions { all, } and event_counter FL_policy_merchant_skills 1
agent diplomat 0
agent_limit diplomat 1
agent merchant 0
agent_limit merchant 1
; own recruitment: makes up for castle barracks
recruit_pool "Ducal Axe" 1 0.10 2 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Lithuanian Noble Sons" 1 0.10 2 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1 and not event_counter FULL_PLATE_ARMOR 1
recruit_pool "L Regular Infantry" 1 0.10 2 0 requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
; own recruitment: makes up for stables
recruit_pool "L Cavalry Militia" 1 0.10 2 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Noble Sons Cavalry" 1 0.10 2 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1 and not event_counter LITHUANIA5_LITHUANIAN_EMPIRE 1
recruit_pool "L Regular Cavalry" 1 0.10 2 0 requires factions { lithuania, } and event_counter LITHUANIA5_LITHUANIAN_EMPIRE 1
; adds to city barracks
recruit_pool "Baltic Spearmen" 0 0.07 0 0 requires factions { lithuania, } and not event_counter HALF_PLATE_ARMOR 1
recruit_pool "Late Lithuanian Spearman" 0 0.07 0 0 requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1
recruit_pool "Halberd Militia" 0 0.07 0 0 requires factions { lithuania, } and event_counter MATCHLOCK 1
recruit_pool "Lithuanian Axemen" 0 0.07 0 0 requires factions { lithuania, } and not event_counter MATCHLOCK 1
recruit_pool "Lithuanian Arquebusiers" 0 0.07 0 0 requires factions { lithuania, } and event_counter MATCHLOCK 1
; adds to Landowners building
recruit_pool "Ducal Cavalry" 0 0.07 0 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Noble Cavalry" 0 0.07 0 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Ducal Spearmen" 0 0.07 0 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Lithuanian Noble Infantry" 0 0.07 0 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1
;---------------------------------------------------------------------------------------------------------------------------------
; UPKEEP/INCOME
income_bonus bonus -50
}
material wooden
construction 3
cost 3000
settlement_min large_town
upgrades
{
wonder_kernave_vilnius3_tower
}
}
wonder_kernave_vilnius3_tower requires factions { northern_european, eastern_european, southern_european, greek, middle_eastern, } and hidden_resource lithuania and hidden_resource capital and event_counter OSTSIEDLUNG 1 or event_counter dummy 1
{
capability
{
law_bonus bonus 2 requires factions { all, } and not event_counter FL_is_crowned_ruler 1
law_bonus bonus 3 requires factions { all, } and event_counter FL_is_crowned_ruler 1
population_growth_bonus bonus 2 requires factions { all, } and not event_counter FL_is_crowned_ruler 1
population_growth_bonus bonus 3 requires factions { all, } and event_counter FL_is_crowned_ruler 1
trade_base_income_bonus bonus 2 requires factions { all, } and not event_counter FL_policy_merchant_skills 1
trade_base_income_bonus bonus 3 requires factions { all, } and event_counter FL_policy_merchant_skills 1
agent diplomat 0
agent_limit diplomat 1
agent merchant 0
agent_limit merchant 1
; own recruitment: makes up for castle barracks
recruit_pool "Ducal Axe" 1 0.13 2 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Lithuanian Noble Sons" 1 0.13 2 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1 and not event_counter FULL_PLATE_ARMOR 1
recruit_pool "L Regular Infantry" 1 0.13 2 0 requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
; own recruitment: makes up for stables
recruit_pool "L Cavalry Militia" 1 0.13 2 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Noble Sons Cavalry" 1 0.13 2 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1 and not event_counter LITHUANIA5_LITHUANIAN_EMPIRE 1
recruit_pool "L Regular Cavalry" 1 0.13 2 0 requires factions { lithuania, } and event_counter LITHUANIA5_LITHUANIAN_EMPIRE 1
; add to city barracks
recruit_pool "Baltic Spearmen" 0 0.09 0 0 requires factions { lithuania, } and not event_counter HALF_PLATE_ARMOR 1
recruit_pool "Late Lithuanian Spearman" 0 0.09 0 0 requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1
recruit_pool "Halberd Militia" 0 0.09 0 0 requires factions { lithuania, } and event_counter MATCHLOCK 1
recruit_pool "Lithuanian Axemen" 0 0.09 0 0 requires factions { lithuania, } and not event_counter MATCHLOCK 1
recruit_pool "Lithuanian Arquebusiers" 0 0.09 0 0 requires factions { lithuania, } and event_counter MATCHLOCK 1
; adds to Landowners building
recruit_pool "Ducal Cavalry" 0 0.09 0 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Noble Cavalry" 0 0.09 0 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Ducal Spearmen" 0 0.09 0 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Lithuanian Noble Infantry" 0 0.09 0 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1
;---------------------------------------------------------------------------------------------------------------------------------
; UPKEEP/INCOME
income_bonus bonus -100
}
material stone
construction 6
cost 6000
settlement_min city
upgrades
{
wonder_kernave_vilnius4_castle
}
}
wonder_kernave_vilnius4_castle requires factions { northern_european, eastern_european, southern_european, greek, middle_eastern, } and hidden_resource lithuania and hidden_resource capital and event_counter new_era_begins 1 or event_counter dummy 1
{
capability
{
law_bonus bonus 4 requires factions { all, } and not event_counter FL_is_crowned_ruler 1
law_bonus bonus 5 requires factions { all, } and event_counter FL_is_crowned_ruler 1
population_growth_bonus bonus 4 requires factions { all, } and not event_counter FL_is_crowned_ruler 1
population_growth_bonus bonus 5 requires factions { all, } and event_counter FL_is_crowned_ruler 1
trade_base_income_bonus bonus 4 requires factions { all, } and not event_counter FL_policy_merchant_skills 1
trade_base_income_bonus bonus 5 requires factions { all, } and event_counter FL_policy_merchant_skills 1
agent diplomat 0
agent_limit diplomat 1
agent merchant 0
agent_limit merchant 1
; own recruitment: makes up for castle barracks
recruit_pool "Ducal Axe" 1 0.17 2 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Lithuanian Noble Sons" 1 0.17 2 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1 and not event_counter FULL_PLATE_ARMOR 1
recruit_pool "L Regular Infantry" 1 0.17 2 0 requires factions { lithuania, } and event_counter FULL_PLATE_ARMOR 1
; own recruitment: makes up for stables
recruit_pool "L Cavalry Militia" 1 0.17 2 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Noble Sons Cavalry" 1 0.17 2 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1 and not event_counter LITHUANIA5_LITHUANIAN_EMPIRE 1
recruit_pool "L Regular Cavalry" 1 0.17 2 0 requires factions { lithuania, } and event_counter LITHUANIA5_LITHUANIAN_EMPIRE 1
; adds to city barracks
recruit_pool "Baltic Spearmen" 0 0.11 0 0 requires factions { lithuania, } and not event_counter HALF_PLATE_ARMOR 1
recruit_pool "Late Lithuanian Spearman" 0 0.11 0 0 requires factions { lithuania, } and event_counter HALF_PLATE_ARMOR 1
recruit_pool "Halberd Militia" 0 0.11 0 0 requires factions { lithuania, } and event_counter MATCHLOCK 1
recruit_pool "Lithuanian Axemen" 0 0.11 0 0 requires factions { lithuania, } and not event_counter MATCHLOCK 1
recruit_pool "Lithuanian Arquebusiers" 0 0.11 0 0 requires factions { lithuania, } and event_counter MATCHLOCK 1
; adds to Landowners building
recruit_pool "Ducal Cavalry" 0 0.11 0 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Noble Cavalry" 0 0.11 0 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Ducal Spearmen" 0 0.11 0 0 requires factions { lithuania, } and not event_counter LITHUANIA3_MINDAUGAS 1
recruit_pool "Lithuanian Noble Infantry" 0 0.11 0 0 requires factions { lithuania, } and event_counter LITHUANIA3_MINDAUGAS 1
;---------------------------------------------------------------------------------------------------------------------------------
; UPKEEP/INCOME
income_bonus bonus -400
}
material stone
construction 12
cost 12000
settlement_min large_city
upgrades
{
}
}
}
plugins
{
}
}