mirror of
https://github.com/veden/Rampant.git
synced 2025-01-14 02:23:01 +02:00
FACTO-293: Decreased chance of settler squads on movement violations
This commit is contained in:
parent
ee2c1bbadc
commit
0528078621
@ -10,6 +10,7 @@ Version: 3.3.0
|
|||||||
- Halved movement penalty violations before building, kamikaze, or dispanding unit groups
|
- Halved movement penalty violations before building, kamikaze, or dispanding unit groups
|
||||||
- Squads can retreat 3 times before switching to kamikaze
|
- Squads can retreat 3 times before switching to kamikaze
|
||||||
- Kamikaze squads will not retreat
|
- Kamikaze squads will not retreat
|
||||||
|
- Reduced chance of squad becoming settler at 5% when hitting movement penalty violations
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
- Fixed occasionally compression number wouldn't appear on unit group
|
- Fixed occasionally compression number wouldn't appear on unit group
|
||||||
- Fixed squad compression could take place when attacking
|
- Fixed squad compression could take place when attacking
|
||||||
|
@ -268,8 +268,10 @@ local function addMovementPenalty(squad, chunk)
|
|||||||
if (penalty.c.id == chunk.id) then
|
if (penalty.c.id == chunk.id) then
|
||||||
penalty.v = penalty.v + 1
|
penalty.v = penalty.v + 1
|
||||||
if penalty.v >= 7 then
|
if penalty.v >= 7 then
|
||||||
if Universe.enabledMigration and
|
if Universe.enabledMigration
|
||||||
(Universe.builderCount < Universe.AI_MAX_BUILDER_COUNT) then
|
and (Universe.random() < 0.05)
|
||||||
|
and (Universe.builderCount < Universe.AI_MAX_BUILDER_COUNT)
|
||||||
|
then
|
||||||
squad.settler = true
|
squad.settler = true
|
||||||
squad.originPosition.x = squad.group.position.x
|
squad.originPosition.x = squad.group.position.x
|
||||||
squad.originPosition.y = squad.group.position.y
|
squad.originPosition.y = squad.group.position.y
|
||||||
|
Loading…
Reference in New Issue
Block a user