Habilidad de unidad
Convertir galera en barco ligero
En tiempos de paz, la Galera se puede reconvertir en barco mercante para nuestro Estado.
Posibilidad de convertir galeras en barcos ligerosTipo de modificadorhidden2toggle = 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 Las galeras de la flota se convertirán en barcos ligeros por 5Gold I cada una
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
}
}
}