We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82e8ea9 commit 3ec0d7dCopy full SHA for 3ec0d7d
1 file changed
gamedata/scripts/sim_faction.script
@@ -544,7 +544,7 @@ function se_sim_faction:calculate_squad_tasks()
544
end
545
else
546
if squad_data.dest_smart.id == target_smart_id then
547
- gr_dist = squad_data.graph_point:distance_to(target_smart_gpoint) * 0.001
+ gr_dist = squad_data.graph_point:distance_to(target_smart_gpoint) * 0.001 + 0.1 -- increment ensures 0-dist stayer always preferred to 0-dist mover
548
549
gr_dist = squad_data.graph_point_dest:distance_to(target_smart_gpoint) + 1
550
0 commit comments