diff --git a/info.json b/info.json index 23fe65d..022aa59 100755 --- a/info.json +++ b/info.json @@ -1,7 +1,7 @@ { "name" : "Rampant", "factorio_version" : "0.16", - "version" : "0.16.35", + "version" : "0.16.36", "title" : "Rampant", "author" : "Veden", "homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445", diff --git a/libs/AIPredicates.lua b/libs/AIPredicates.lua index 6ef2953..d8e107d 100755 --- a/libs/AIPredicates.lua +++ b/libs/AIPredicates.lua @@ -27,7 +27,7 @@ end function aiPredicates.canMigrate(natives, surface) return ((natives.state == AI_STATE_MIGRATING) or (natives.state == AI_STATE_SIEGE)) - -- and natives.expansion + and natives.expansion and ((not natives.aiNocturnalMode) or (natives.aiNocturnalMode and surface.darkness > 0.65)) end