单位能力

将桨帆战舰改造为轻型战舰

convert_galley_to_light_shipin_game/common/unit_abilities/convert_galley.txt:1

在和平时期,桨帆战舰可以被重新调整为商船以服务我们的国家。

需要可以将桨帆战舰改造为轻型战舰修正类型hidden

2toggle = no
3navy_only = yes
4map = yes
5confirm = yes
7hidden = {
8OR = {
12NOT = {
12any_sub_unit = {
12sub_unit_category = sub_unit_category:navy_galley
}
}
}
}
16allow = {
17in_combat = no
18is_moving = no
19is_exiled = no
20owner = {
21num_of_ports > 0
22can_build_units_of_category = sub_unit_category:navy_light_ship
23gold >= 5
}
25unit_location = {
26is_port = yes
27owner = root.owner
}
29any_sub_unit = {
29sub_unit_category = sub_unit_category:navy_galley
}
}
31start_effect = {
32custom_tooltip = convert_galley_to_light_ship_effect 舰队中的桨帆战舰将以每艘5Gold I的价格转化为轻型战舰
33save_scope_as = ship_unit
34while = {
35limit = {
36owner = {
37gold >= 5
}
39any_sub_unit = {
40is_ship = yes
41sub_unit_category = sub_unit_category:navy_galley
}
}
44owner = {
44add_gold = -5
}
45random_sub_unit = {
46limit = {
47is_ship = yes
48sub_unit_category = sub_unit_category:navy_galley
}
50scope:ship_unit = {
51unit_location = {
52create_sub_unit_of_category = sub_unit_category:navy_light_ship
}
}
55destroy_subunit = yes
}
}
}
© 2026 Soft Santa Cruz, S.L.U.。保留所有权利。非官方粉丝项目,与Paradox Interactive无关。游戏内容 © Paradox Interactive。 关于 · 隐私 · 法律声明