From 3dd3dc71ab04642b9bd74037c3cc15493d2e6ef0 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Thu, 6 Apr 2023 19:50:59 -0700 Subject: [PATCH] FACTO-293: Halved movement penalty allowance --- changelog.txt | 1 + libs/Squad.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 7aa490c..a863492 100644 --- a/changelog.txt +++ b/changelog.txt @@ -7,6 +7,7 @@ Version: 3.3.0 - On group destruction all members are destroyed to prevent orphaned biters - Increased radius of what pathing requires to complete a move path request - Switched use_group_distraction to true on forming group + - Halved movement penalty violations before building, kamikaze, or dispanding unit groups Bugfixes: - Fixed occasionally compression number wouldn't appear on unit group - Fixed squad compression could take place when attacking diff --git a/libs/Squad.lua b/libs/Squad.lua index 39c33cd..8ea6f79 100644 --- a/libs/Squad.lua +++ b/libs/Squad.lua @@ -268,7 +268,7 @@ local function addMovementPenalty(squad, chunk) local penalty = penalties[i] if (penalty.c.id == chunk.id) then penalty.v = penalty.v + 1 - if penalty.v >= 15 then + if penalty.v >= 7 then if Universe.enabledMigration and (Universe.builderCount < Universe.AI_MAX_BUILDER_COUNT) then squad.settler = true