Files
az-vnr-patch/src/common/decisions/keyan_decisions.txt
2024-06-26 23:43:07 +08:00

846 lines
18 KiB
Plaintext
Executable File

keyan_category = {
yanfa_zhuli_xp = {
icon = hude
available = {
custom_trigger_tooltip = {
tooltip = ""
AND = {
has_army_experience > 150
has_navy_experience > 250
}
}
}
custom_cost_trigger = {
AND = {
has_army_experience > 150
has_navy_experience > 250
}
}
custom_cost_text = keyanxp_zhuli
visible = {
shijianniangguojia_trigger = yes
}
fire_only_once = yes
ai_will_do = {
factor = 0
}
complete_effect = {
hidden_effect = {
army_experience = -150
navy_experience = -250
}
}
remove_effect = {
hidden_effect = { scoped_sound_effect = AZ_wancheng_sound }
set_country_flag = yanfa_zhuli_xp_get
custom_effect_tooltip = yanfa_xp_effect_tooltip
}
}
yanfa_zhuli_wz = {
icon = hude
available = {
custom_trigger_tooltip = {
tooltip = ""
check_variable = {
var = wz_sl
value = 20000
compare = greater_than_or_equals
}
}
}
custom_cost_text = wz_shuliang_20000
custom_cost_trigger = {
check_variable = {
var = wz_sl
value = 20000
compare = greater_than_or_equals
}
}
fire_only_once = yes
visible = {
has_country_flag = yanfa_zhuli_xp_get
}
days_remove = 90
modifier = {
political_power_cost = 1
}
ai_will_do = {
factor = 5
}
complete_effect = {
add_to_variable = {
var = wz_sl
value = -20000
}
}
remove_effect = {
hidden_effect = { scoped_sound_effect = AZ_wancheng_sound }
set_country_flag = yanfa_zhuli_wz_get
custom_effect_tooltip = yanfa_wz_effect_tooltip
}
}
yanfa_xzmf = {
icon = xzmf
available = {
custom_trigger_tooltip = {
tooltip = ""
check_variable = {
var = xzmf_sl
value = 5
compare = greater_than_or_equals
}
}
}
custom_cost_text = mf_shuliang_5
custom_cost_trigger = {
check_variable = {
var = xzmf_sl
value = 5
compare = greater_than_or_equals
}
}
visible = {
has_country_flag = yanfa_zhuli_wz_get
}
days_remove = 10
fire_only_once = yes
ai_will_do = {
factor = 5
}
complete_effect = {
add_to_variable = {
var = xzmf_sl
value = -5
}
}
remove_effect = {
hidden_effect = { scoped_sound_effect = AZ_wancheng_sound }
set_country_flag = yanfa_xzmf_get
custom_effect_tooltip = yanfa_xzmf_effect_tooltip
}
}
zhuli_yanfa_completed = {
icon = hude
visible = {
OR = {
has_country_flag = yanfa_xzmf_get
is_debug = yes
}
}
days_remove = 30
cost = 200
fire_only_once = yes
ai_will_do = {
factor = 10
}
remove_effect = {
set_technology = {
keyantech_daxingyinqing = 1
keyantech_sunguan = 1
keyantech_huokong = 1
early_ship_hull_heavy = 1
basic_ship_hull_heavy = 1
interwar_ship_hull_heavy = 1
improved_ship_hull_heavy = 1
ship_hull_super_heavy = 1
advanced_ship_hull_heavy = 1
improved_heavy_armor_scheme = 1
advanced_heavy_battery = 1
advanced_torpedo_defense = 1
advanced_heavy_armor = 1
all_or_nothing_armor_box_armor_scheme = 1
}
}
}
xianfeng_yanfa_completed = {
icon = chaijun
visible = {
OR = {
has_country_flag = yanfa_xzmf_get
is_debug = yes
}
}
days_remove = 30
cost = 200
fire_only_once = yes
ai_will_do = {
factor = 10
}
remove_effect = {
set_technology = {
keyantech_zhongxingyinqing = 1
keyantech_huokong = 1
advanced_ship_hull_cruiser = 1
modern_sonar = 1
basic_dp_medium_battery = 1
advanced_medium_battery = 1
early_ship_hull_cruiser = 1
improved_ship_hull_cruiser = 1
basic_ship_hull_cruiser = 1
interwar_ship_hull_cruiser = 1
advanced_cruiser_armor = 1
modern_ship_hull_cruiser = 1
helipad = 1
}
}
}
chihou_yanfa_completed = {
icon = chaijun
visible = {
OR = {
has_country_flag = yanfa_xzmf_get
is_debug = yes
}
}
days_remove = 30
cost = 200
fire_only_once = yes
ai_will_do = {
factor = 10
}
remove_effect = {
set_technology = {
keyantech_xiaoxingyinqing = 1
keyantech_jianyongyulei = 1
advanced_light_battery = 1
advanced_dp_light_battery = 1
early_ship_hull_light = 1
basic_ship_hull_light = 1
interwar_ship_hull_light = 1
improved_ship_hull_light = 1
advanced_ship_hull_light = 1
modern_ship_hull_light = 1
rocket_depth_charges = 1
improved_sonar = 1
}
}
}
cike_yanfa_completed = {
icon = chaijun
visible = {
OR = {
has_country_flag = yanfa_xzmf_get
is_debug = yes
}
}
days_remove = 30
cost = 200
fire_only_once = yes
ai_will_do = {
factor = 10
}
remove_effect = {
set_technology = {
early_ship_hull_submarine = 1
basic_ship_hull_submarine = 1
improved_ship_hull_submarine = 1
keyantech_qiantingyinqing = 1
keyantech_qiantingyulei = 1
advanced_ship_hull_submarine = 1
improved_submarine_snorkel = 1
modern_ship_torpedo_launcher = 1
modern_ship_hull_submarine = 1
anechoic_tile = 1
advanced_periscope = 1
}
}
}
hangmu_yanfa_completed = {
icon = chaijun
visible = {
OR = {
has_country_flag = yanfa_xzmf_get
is_debug = yes
}
}
days_remove = 30
cost = 200
fire_only_once = yes
ai_will_do = {
factor = 10
}
remove_effect = {
set_technology = {
prototype_airplane_launcher = 1
early_ship_hull_carrier = 1
basic_ship_hull_carrier = 1
improved_ship_hull_carrier = 1
advanced_ship_hull_carrier = 1
keyantech_hangmuyinqing = 1
keyantech_jiku = 1
advanced_ship_hull_carrier = 1
super_carriers = 1
carrier_angled_deck = 1
full_armored_carrier = 1
carrier_steam_catapult = 1
}
}
}
##############################################################################################################################
DOH_daodantech = {
icon = jian
visible = { tag = DOH }
available = {
if = {
limit = { is_ai = no }
OR = {
custom_trigger_tooltip = {
tooltip = DOH_daodantech_trigger_tt
has_country_flag = shikongchuansuo_get
}
has_tech = advanced_rocket_engines
}
}
}
fire_only_once = yes
days_remove = 30
cost = 150
remove_effect = {
set_technology = { keyantech_daodan = 1 }
set_global_flag = DOH_faxiandaodan_get
set_technology = {
ship_to_ship_missile = 1
destroyer_missile_upgrade = 1
cruiser_missile_upgrade = 1
destroyer_guided_missile_upgrade = 1
}
}
ai_will_do = {
base = 0
modifier = {
date > 1937.6.1
add = 500
}
}
}
buy_daodantech = {
icon = jian
visible = {
NOT = { tag = DOH }
is_ai = no
NOT = { has_tech = keyantech_daodan }
has_global_flag = DOH_faxiandaodan_get
}
available = {
NOT = { has_tech = keyantech_daodan }
custom_trigger_tooltip = {
tooltip = ""
check_variable = {
var = wz_sl
value = 25000
compare = greater_than_or_equals
}
}
}
custom_cost_text = wz_shuliang_25000
custom_cost_trigger = {
check_variable = {
var = wz_sl
value = 25000
compare = greater_than_or_equals
}
}
days_remove = 2
cost = 300
complete_effect = {
add_to_variable = { wz_sl = -25000 }
}
remove_effect = {
set_technology = { keyantech_daodan = 1 }
if = { limit = { country_exists = DOH }
DOH = { country_event = junhuo.19 }
}
}
}
steal_daodantech = {
icon = jian
visible = {
NOT = { tag = DOH }
is_ai = no
NOT = { has_tech = keyantech_daodan }
has_global_flag = DOH_faxiandaodan_get
}
available = {
NOT = { has_tech = keyantech_daodan }
}
days_remove = 7
cost = 300
remove_effect = {
random_list = {
1 = {
set_technology = { keyantech_daodan = 1 }
navy_experience = 10
hidden_effect = { scoped_sound_effect = AZ_wancheng_sound }
}
9 = {
navy_experience = 1
hidden_effect = { scoped_sound_effect = AZ_shibai_sound }
}
}
}
}
BYG_donglizhuangjiatech = {
icon = jian
visible = { tag = BYG }
available = {
if = {
limit = { is_ai = no }
OR = {
AND = {
has_tech = armor_tech_3
has_tech = nuclear_reactor
}
custom_trigger_tooltip = {
tooltip = DOH_daodantech_trigger_tt
has_country_flag = shikongchuansuo_get
}
}
}
}
fire_only_once = yes
days_remove = 30
cost = 300
remove_effect = {
set_technology = { keyantech_donglizhuangjia = 1 }
set_global_flag = BYG_donglizhuangjiatech_get
}
ai_will_do = {
base = 0
modifier = {
date > 1937.6.1
add = 500
}
}
}
buy_donglizhuangjiatech = {
icon = jian
visible = {
NOT = { tag = BYG }
is_ai = no
NOT = { has_tech = keyantech_donglizhuangjia }
has_global_flag = BYG_donglizhuangjiatech_get
}
available = {
NOT = { has_tech = keyantech_donglizhuangjia }
custom_trigger_tooltip = {
tooltip = ""
check_variable = {
var = wz_sl
value = 25000
compare = greater_than_or_equals
}
}
}
custom_cost_text = wz_shuliang_25000
custom_cost_trigger = {
check_variable = {
var = wz_sl
value = 25000
compare = greater_than_or_equals
}
}
days_remove = 2
cost = 300
complete_effect = {
add_to_variable = { wz_sl = -25000 }
}
remove_effect = {
set_technology = { keyantech_donglizhuangjia = 1 }
}
}
steal_donglizhuangjiatech = {
icon = jian
visible = {
NOT = { tag = BYG }
is_ai = no
NOT = { has_tech = keyantech_donglizhuangjia }
has_global_flag = BYG_donglizhuangjiatech_get
}
available = {
NOT = { has_tech = keyantech_donglizhuangjia }
}
days_remove = 7
cost = 300
remove_effect = {
random_list = {
1 = {
set_technology = { keyantech_donglizhuangjia = 1 }
army_experience = 10
hidden_effect = { scoped_sound_effect = AZ_wancheng_sound }
}
9 = {
army_experience = 1
hidden_effect = { scoped_sound_effect = AZ_shibai_sound }
}
}
}
}
YUW_jupaotech = {
icon = jian
visible = { tag = YUW }
available = {
if = {
limit = { is_ai = no }
OR = {
AND = {
has_tech = artillery3
has_tech = antitank2
}
custom_trigger_tooltip = {
tooltip = DOH_daodantech_trigger_tt
has_country_flag = shikongchuansuo_get
}
}
}
}
fire_only_once = yes
days_remove = 30
cost = 200
remove_effect = {
set_technology = { keyantech_jupao = 1 }
set_global_flag = YUW_jupaotech_get
}
ai_will_do = {
base = 0
modifier = {
date > 1937.6.1
add = 500
}
}
}
buy_jupaotech = {
icon = jian
visible = {
NOT = { tag = YUW }
is_ai = no
NOT = { has_tech = keyantech_jupao }
has_global_flag = YUW_jupaotech_get
}
available = {
NOT = { has_tech = keyantech_jupao }
custom_trigger_tooltip = {
tooltip = ""
check_variable = {
var = wz_sl
value = 25000
compare = greater_than_or_equals
}
}
}
custom_cost_text = wz_shuliang_25000
custom_cost_trigger = {
check_variable = {
var = wz_sl
value = 25000
compare = greater_than_or_equals
}
}
days_remove = 2
cost = 300
complete_effect = {
add_to_variable = { wz_sl = -25000 }
}
remove_effect = {
set_technology = { keyantech_jupao = 1 }
}
}
steal_jupaotech = {
icon = jian
visible = {
NOT = { tag = BYG }
is_ai = no
NOT = { has_tech = keyantech_jupao }
has_global_flag = YUW_jupaotech_get
}
available = {
NOT = { has_tech = keyantech_jupao }
}
days_remove = 7
cost = 300
remove_effect = {
random_list = {
1 = {
set_technology = { keyantech_jupao = 1 }
army_experience = 10
hidden_effect = { scoped_sound_effect = AZ_wancheng_sound }
}
9 = {
army_experience = 1
hidden_effect = { scoped_sound_effect = AZ_shibai_sound }
}
}
}
}
keyanxiezhu_quzhu_1 = {
icon = chaijun
available = {
NOT = { has_tech = shipgirltech_quzhupao_1 }
custom_trigger_tooltip = {
tooltip = keyanxiezhu_quzhu_1_cost_trigger_tt
check_variable = {
wz_sl > 9999
}
}
if = {
limit = { has_government = communism }
has_idea = BFL_zuozhanshiyanshi
}
if = {
limit = { has_government = democratic }
has_idea = BYG_zuozhanshiyanshi
}
if = {
limit = { has_government = neutrality }
has_idea = DOH_zuozhanshiyanshi
}
if = {
limit = { has_government = fascism }
has_idea = TIX_zuozhanshiyanshi
}
if = {
limit = { has_government = siren }
has_idea = SIR_zuozhanshiyanshi
}
}
fire_only_once = yes
days_remove = 30
cost = 80
complete_effect = {
add_to_variable = { wz_sl = -10000 }
}
remove_effect = {
set_technology = { shipgirltech_quzhupao_1 = 1 }
}
ai_will_do = {
base = 0
modifier = {
date > 1937.6.1
add = 500
}
}
}
keyanxiezhu_xunyang_1 = {
icon = chaijun
available = {
NOT = { has_tech = shipgirltech_xunyangpao_1 }
custom_trigger_tooltip = {
tooltip = keyanxiezhu_quzhu_1_cost_trigger_tt
check_variable = {
wz_sl > 9999
}
}
if = {
limit = { has_government = communism }
has_idea = BFL_zuozhanshiyanshi
}
if = {
limit = { has_government = democratic }
has_idea = BYG_zuozhanshiyanshi
}
if = {
limit = { has_government = neutrality }
has_idea = DOH_zuozhanshiyanshi
}
if = {
limit = { has_government = fascism }
has_idea = TIX_zuozhanshiyanshi
}
if = {
limit = { has_government = siren }
has_idea = SIR_zuozhanshiyanshi
}
}
fire_only_once = yes
days_remove = 30
cost = 100
complete_effect = {
add_to_variable = { wz_sl = -10000 }
}
remove_effect = {
set_technology = { shipgirltech_xunyangpao_1 = 1 }
}
ai_will_do = {
base = 0
modifier = {
date > 1937.6.1
add = 500
}
}
}
keyanxiezhu_zhanlie_1 = {
icon = chaijun
available = {
NOT = { has_tech = shipgirltech_zhanliepao_1 }
custom_trigger_tooltip = {
tooltip = keyanxiezhu_quzhu_1_cost_trigger_tt
check_variable = {
wz_sl > 9999
}
}
if = {
limit = { has_government = communism }
has_idea = BFL_zuozhanshiyanshi
}
if = {
limit = { has_government = democratic }
has_idea = BYG_zuozhanshiyanshi
}
if = {
limit = { has_government = neutrality }
has_idea = DOH_zuozhanshiyanshi
}
if = {
limit = { has_government = fascism }
has_idea = TIX_zuozhanshiyanshi
}
if = {
limit = { has_government = siren }
has_idea = SIR_zuozhanshiyanshi
}
}
fire_only_once = yes
days_remove = 30
cost = 150
complete_effect = {
add_to_variable = { wz_sl = -10000 }
}
remove_effect = {
set_technology = { shipgirltech_zhanliepao_1 = 1 }
}
ai_will_do = {
base = 0
modifier = {
date > 1937.6.1
add = 500
}
}
}
keyanxiezhu_zujiekeyanxiaozu_1 = {
icon = manjiu
available = {
NOT = { has_country_flag = keyanxiezhu_zujiekeyanxiaozu_2_get }
custom_trigger_tooltip = {
tooltip = keyanxiezhu_zujiekeyanxiaozu_1_cost_trigger_tt
check_variable = {
wz_sl > 11999
}
}
if = {
limit = { has_government = communism }
has_idea = BFL_zuozhanshiyanshi
}
if = {
limit = { has_government = democratic }
has_idea = BYG_zuozhanshiyanshi
}
if = {
limit = { has_government = neutrality }
has_idea = DOH_zuozhanshiyanshi
}
if = {
limit = { has_government = fascism }
has_idea = TIX_zuozhanshiyanshi
}
if = {
limit = { has_government = siren }
has_idea = SIR_zuozhanshiyanshi
}
}
days_remove = 180
complete_effect = {
add_to_variable = { wz_sl = -12000 }
add_research_slot = 1
set_country_flag = keyanxiezhu_zujiekeyanxiaozu_1_doing
}
remove_effect = {
add_research_slot = -1
clr_country_flag = keyanxiezhu_zujiekeyanxiaozu_1_doing
}
ai_will_do = {
base = 0
}
}
keyanxiezhu_zujiekeyanxiaozu_2 = {
icon = manjiu
visible = {
has_country_flag = keyanxiezhu_zujiekeyanxiaozu_1_doing
}
available = {
custom_trigger_tooltip = {
tooltip = keyanxiezhu_maishenqi_cost_trigger_tt
check_variable = {
zs_sl > 887
}
}
if = {
limit = { has_government = communism }
has_idea = BFL_zuozhanshiyanshi
}
if = {
limit = { has_government = democratic }
has_idea = BYG_zuozhanshiyanshi
}
if = {
limit = { has_government = neutrality }
has_idea = DOH_zuozhanshiyanshi
}
if = {
limit = { has_government = fascism }
has_idea = TIX_zuozhanshiyanshi
}
if = {
limit = { has_government = siren }
has_idea = SIR_zuozhanshiyanshi
}
}
fire_only_once = yes
complete_effect = {
add_research_slot = 1
custom_effect_tooltip = keyanxiezhu_zujiekeyanxiaozu_2_tt
hidden_effect = {
add_to_variable = { zs_sl = -888 }
set_country_flag = keyanxiezhu_zujiekeyanxiaozu_2_get
}
}
ai_will_do = {
base = 0
}
}
}