fix kamikaze and deadzones

This commit is contained in:
Aaron Veden
2018-01-27 12:57:50 -08:00
parent cc2b0db52b
commit df811b2ced
7 changed files with 22 additions and 8 deletions
+5 -3
View File
@@ -184,10 +184,12 @@ function upgrade.attempt(natives)
game.surfaces[1].print("Rampant - Version 0.16.6")
global.version = constants.VERSION_41
end
if (global.version < constants.VERSION_43) then
if (global.version < constants.VERSION_44) then
natives.kamikazeThreshold = 0
game.surfaces[1].print("Rampant - Version 0.16.8")
global.version = constants.VERSION_43
game.surfaces[1].print("Rampant - Version 0.16.9")
global.version = constants.VERSION_44
end
return starting ~= global.version, natives
+7
View File
@@ -1,3 +1,10 @@
---------------------------------------------------------------------------------------------------
Version: 0.16.9
Date: 1. 27. 2018
Bugfixes:
- Fixed uninitialized kamikazeThreshold
- Fixed that deadzones wouldn't expire allowing for resettling
---------------------------------------------------------------------------------------------------
Version: 0.16.8
Date: 1. 26. 2018
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name" : "Rampant",
"factorio_version" : "0.16",
"version" : "0.16.8",
"version" : "0.16.9",
"title" : "Rampant",
"author" : "Veden",
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",
+3 -1
View File
@@ -315,7 +315,9 @@ function baseUtils.createBase(map, natives, evolutionFactor, chunk, surface, tic
points = 0
}
setChunkBase(map, chunk, base)
if (alignment ~= BASE_ALIGNMENT_DEADZONE) then
setChunkBase(map, chunk, base)
end
-- if not buildHive(map, base, surface) then
-- return nil
+4 -1
View File
@@ -33,6 +33,7 @@ local CHUNK_IMPASSABLE = constants.CHUNK_IMPASSABLE
local CHUNK_TICK = constants.CHUNK_TICK
local BASE_SEARCH_RADIUS = constants.BASE_SEARCH_RADIUS
local BASE_ALIGNMENT_DEADZONE = constants.BASE_ALIGNMENT_DEADZONE
local PATH_RATING = constants.PATH_RATING
@@ -282,7 +283,9 @@ function chunkUtils.initialScan(chunk, natives, surface, map, tick, evolutionFac
if natives.newEnemies and ((#nests > 0) or (#worms > 0)) then
local base = findNearbyBase(map, chunk, natives)
if base then
setChunkBase(map, chunk, base)
if (base.alignment ~= BASE_ALIGNMENT_DEADZONE) then
setChunkBase(map, chunk, base)
end
else
base = createBase(map, natives, evolutionFactor, chunk, surface, tick)
end
+1 -1
View File
@@ -18,7 +18,7 @@ constants.VERSION_28 = 28
constants.VERSION_33 = 33
constants.VERSION_38 = 38
constants.VERSION_41 = 41
constants.VERSION_43 = 43
constants.VERSION_44 = 44
-- misc
+1 -1
View File
@@ -9060,4 +9060,4 @@ rampant-attack-warning=Shows a message warning players that an attack wave is in
rampant-newEnemies=Adds news enemies that will be dispersed over the world. This increases the RAM requirements minimum 2GB to 8GB.
rampant-enemySeed=The seed that powers all of the unit generation, so change this if you want the enemy stats to change
rampant-deadZoneFrequency=The percentage of zones that start out with worms or nests
rampant-newEnemyVariations=This number corresponds to the number of variations per tier of of each unit, unit spawner, and worm types. This increases the RAM requirements minimum 2GB to 8GB.
rampant-newEnemyVariations=This number corresponds to the number of variations per tier of of each unit, unit spawner, and worm types. This increases the RAM requirements minimum 2GB to 8GB. Min 1, Max 20