Compétence d'unité
Convertir un navire léger en galère
En temps de guerre, un Vaisseau léger peut être transformé en navire de guerre.
Peut Transformer une galère en navire légerType de modificateurhidden62toggle = no
63navy_only = yes
64map = yes
65confirm = yes
67hidden = {
68OR = {
72NOT = {
72any_sub_unit = {
72sub_unit_category = sub_unit_category:navy_light_ship
}
}
}
}
76allow = {
77in_combat = no
78is_moving = no
79is_exiled = no
80owner = {
81num_of_ports > 0
82can_build_units_of_category = sub_unit_category:navy_galley
83gold >= 5
}
85unit_location = {
86is_port = yes
87owner = root.owner
}
89any_sub_unit = {
89sub_unit_category = sub_unit_category:navy_light_ship
}
}
91start_effect = {
92custom_tooltip = convert_light_ship_to_galley_effect Les vaisseaux légers de la flotte seront convertis en galères pour 5 Gold I par navire.
93save_scope_as = ship_unit
94while = {
95limit = {
96owner = {
97gold >= 5
}
99any_sub_unit = {
100is_ship = yes
101sub_unit_category = sub_unit_category:navy_light_ship
}
}
104owner = {
104add_gold = -5
}
105random_sub_unit = {
106limit = {
107is_ship = yes
108sub_unit_category = sub_unit_category:navy_light_ship
}
110scope:ship_unit = {
111unit_location = {
112create_sub_unit_of_category = sub_unit_category:navy_galley
}
}
115destroy_subunit = yes
}
}
}