Scripted Effect
chinese_treasure_sail_to
Definitionin_game/common/scripted_effects/country_effects.txt:1768
1770$to$ = {
1770save_scope_as = next_tile
}
1771set_local_variable = {
1772name = time_to_travel
1773value = {
1774if = {
1775limit = {
1776exists = scope:expedition_initiator
1780exists = scope:next_tile
}
1782value = "scope:next_tile.distance_to(scope:expedition_initiator.var:chinese_treasure_fleet_location)"
1783divide = 5
1784if = {
1785limit = {
1785exists = scope:target_character
}
1786multiply = {
1787value = 1
1788subtract = {
1789value = scope:target_character.mil
1790divide = 100
1791multiply = 0.5
}
}
}
1795min = 1
}
1797else = {
1798value = 1
}
}
}