diff --git a/changelog.txt b/changelog.txt index 4ae30c7..68cff1d 100755 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +--------------------------------------------------------------------------------------------------- +Version: 1.0.4 +Date: 28. 02. 2021 + Bugfixes: + - Fixed multipler not being defined above 0.9 evolution + - Fixed nil indexing on unit group creation + --------------------------------------------------------------------------------------------------- Version: 1.0.3 Date: 06. 02. 2021 diff --git a/control.lua b/control.lua index 9e45e25..86b5273 100755 --- a/control.lua +++ b/control.lua @@ -824,7 +824,7 @@ local function onUnitGroupCreated(event) end squad = createSquad(nil, nil, group, settler) - universe.groupNumberToSquad[group.group_number] = squad + map.groupNumberToSquad[group.group_number] = squad if settler then universe.builderCount = universe.builderCount + 1 else diff --git a/info.json b/info.json index 889bb41..6e5b7dc 100755 --- a/info.json +++ b/info.json @@ -1,7 +1,7 @@ { "name" : "Rampant", "factorio_version" : "1.1", - "version" : "1.0.3", + "version" : "1.0.4", "title" : "Rampant", "author" : "Veden", "homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445", diff --git a/libs/AIPlanning.lua b/libs/AIPlanning.lua index 7dfcdcc..9f9b045 100755 --- a/libs/AIPlanning.lua +++ b/libs/AIPlanning.lua @@ -280,6 +280,8 @@ function aiPlanning.temperamentPlanner(map) multipler = 0.000054 elseif map.evolutionLevel < 0.9 then multipler = 0.000027 + else + multipler = 0.0000135 end local val = (multipler * lostEnemyUnits) if (currentTemperament > 0) then