Crusader Kings III

Crusader Kings III

Architect of Automation
依照大佬的代码,给共产主义宗教mod的建筑做了个适配
mod是https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2859721577
aba_building_upgrade_effect = { # 自动升级 建筑
aba_building_upgrade_effect_vanilla = yes # 原版
aba_building_upgrade_effect_uba = yes # 奇观建筑师
aba_building_upgrade_effect_mbrxxx = yes # More Building系列
aba_building_upgrade_effect_oe = yes # 东方王朝
aba_building_upgrade_effect_oeex = yes # 东方王朝文化兵种拓展(你为什么要写建筑?)
aba_building_upgrade_effect_agot = yes # A Game of Throne 冰与火之歌
aba_building_upgrade_effect_hm = yes # 幻萌 一年战争
special_buildings_upgrade_effect = yes #共产主义
}

aba_holding_upgrade_effect = { # 自动升级 地产
aba_holding_upgrade_effect_vanilla = yes # 原版
special_holding_upgrade_effect = yes # 集体农庄
}

special_holding_upgrade_effect = { # 集体农庄地产
if = {
limit = { has_building_or_higher = kolkhoz_01 }
kolkhoz_holding_upgrade_effect_single = { BUILDING = kolkhoz }
}
}

kolkhoz_holding_upgrade_effect_single = { # 集体农庄地产的单个升级效果
if = {
limit = {
prev = { gold > main_building_tier_2_cost }
has_building = $BUILDING$_01
}
add_building = $BUILDING$_02
prev = { remove_short_term_gold = main_building_tier_2_cost }
}
else_if = {
limit = {
prev = { gold > main_building_tier_3_cost }
has_building = $BUILDING$_02
}
add_building = $BUILDING$_03
prev = { remove_short_term_gold = main_building_tier_3_cost }
}
else_if = {
limit = {
prev = { gold > main_building_tier_4_cost }
has_building = $BUILDING$_03
}
add_building = $BUILDING$_04
prev = { remove_short_term_gold = main_building_tier_4_cost }
}
}

special_buildings_upgrade_effect = { # 特殊建筑升级效果
if = {
limit = { has_building_or_higher = intensive_farm_01 }
special_comr_building_upgrade_effect = { BUILDING = intensive_farm }
}
if = {
limit = { has_building_or_higher = guillotine_01 }
special_comr_building_upgrade_effect = { BUILDING = guillotine }
}
if = {
limit = { has_building_or_higher = armory_01 }
special_comr_building_upgrade_effect = { BUILDING = armory }
}
if = {
limit = { has_building_or_higher = tractor_01 }
special_comr_building_upgrade_effect = { BUILDING = tractor }
}
}

special_comr_building_upgrade_effect = {
if = {
limit = {
prev = { gold > abacommon_building_tier_2_cost }
has_building = $BUILDING$_01
building_requirement_kolkhoz = { LEVEL = 01 }
prev.culture = {
has_innovation = innovation_crop_rotation
}
}
add_building = $BUILDING$_02
aba_building_cost_effect = { LEVEL = 2 }
}
else_if = {
limit = {
prev = { gold > abacommon_building_tier_3_cost }
has_building = $BUILDING$_02
building_requirement_kolkhoz = { LEVEL = 02 }
prev.culture = {
has_innovation = innovation_manorialism
}
}
add_building = $BUILDING$_03
aba_building_cost_effect = { LEVEL = 3 }
}
else_if = {
limit = {
prev = { gold > abacommon_building_tier_4_cost }
has_building = $BUILDING$_03
building_requirement_kolkhoz = { LEVEL = 02 }
prev.culture = {
has_innovation = innovation_manorialism
}
}
add_building = $BUILDING$_04
aba_building_cost_effect = { LEVEL = 4 }
}
else_if = {
limit = {
prev = { gold > abacommon_building_tier_5_cost }
has_building = $BUILDING$_04
building_requirement_kolkhoz = { LEVEL = 03 }
prev.culture = {
has_innovation = innovation_windmills
}
}
add_building = $BUILDING$_05
aba_building_cost_effect = { LEVEL = 5 }
}
else_if = {
limit = {
prev = { gold > abacommon_building_tier_6_cost }
has_building = $BUILDING$_05
building_requirement_kolkhoz = { LEVEL = 03 }
prev.culture = {
has_innovation = innovation_windmills
}
}
add_building = $BUILDING$_06
aba_building_cost_effect = { LEVEL = 6 }
}
else_if = {
limit = {
prev = { gold > abacommon_building_tier_7_cost }
has_building = $BUILDING$_06
building_requirement_kolkhoz = { LEVEL = 04 }
prev.culture = {
has_innovation = innovation_cranes
}
}
add_building = $BUILDING$_07
aba_building_cost_effect = { LEVEL = 7 }
}
else_if = {
limit = {
prev = { gold > abacommon_building_tier_8_cost }
has_building = $BUILDING$_07
building_requirement_kolkhoz = { LEVEL = 04 }
prev.culture = {
has_innovation = innovation_cranes
}
}
add_building = $BUILDING$_08
aba_building_cost_effect = { LEVEL = 8 }
}
}
< >
Showing 1-1 of 1 comments
Citruslux  [developer] 11 Oct, 2024 @ 7:10am 
感谢你的贡献,经过修改的代码已经被加入到模组中。:lilimok:
< >
Showing 1-1 of 1 comments
Per page: 1530 50