1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-14 02:23:01 +02:00

removed necessary squad roll and bumped version

This commit is contained in:
Aaron Veden 2018-02-16 19:34:46 -08:00
parent 42f67c6044
commit 4d265abe5f
6 changed files with 10 additions and 9 deletions

View File

@ -197,10 +197,10 @@ function upgrade.attempt(natives)
game.surfaces[1].print("Rampant - Version 0.16.16")
global.version = constants.VERSION_51
end
if (global.version < constants.VERSION_55) then
if (global.version < constants.VERSION_56) then
game.surfaces[1].print("Rampant - Version 0.16.20")
global.version = constants.VERSION_55
game.surfaces[1].print("Rampant - Version 0.16.21")
global.version = constants.VERSION_56
end
return starting ~= global.version, natives

View File

@ -1,8 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.16.21
Date: 2. 12. 2018
Date: 2. 16. 2018
Improvements:
- All other robots now take damage from biter projectiles and explosions (https://mods.factorio.com/mod/Rampant/discussion/5a81bd380333a5000c939c7f)
- Removed necessary squad roll during map processing
Optimizations:
- Switched over to the nth tick functions for logic and processing

View File

@ -374,7 +374,7 @@ script.on_nth_tick(INTERVAL_SQUAD,
regroupSquads(natives, map)
squadsBeginAttack(natives, gameRef.players)
squadsDispatch(map, gameRef.surfaces[1], natives)
squadsAttack(map, gameRef.surfaces[1], natives)
end)

View File

@ -1,10 +1,10 @@
{
"name" : "Rampant",
"factorio_version" : "0.16",
"version" : "0.16.20",
"version" : "0.16.21",
"title" : "Rampant",
"author" : "Veden",
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",
"description" : "Improves the enemies tactics by using potential fields/pheromones allowing probing of defenses, retreats, reinforcements, counterattacking, breaching, raids, rallying death cry, and player hunting. Uses nonhoming blockable biter projectiles. Adds new Enemies (disabled by default). Difficulty setting in mod options menu.",
"dependencies" : ["base >= 0.16.17", "? bobenemies", "? Natural_Evolution_Enemies", "? Clockwork", "? Orbital Ion Cannon"]
"dependencies" : ["base >= 0.16.24", "? bobenemies", "? Natural_Evolution_Enemies", "? Clockwork", "? Orbital Ion Cannon"]
}

View File

@ -20,7 +20,7 @@ constants.VERSION_38 = 38
constants.VERSION_41 = 41
constants.VERSION_44 = 44
constants.VERSION_51 = 51
constants.VERSION_55 = 55
constants.VERSION_56 = 56
-- misc

View File

@ -118,7 +118,7 @@ function mapProcessor.processMap(map, surface, natives, tick, evolutionFactor)
local chunkRoll = mRandom()
if squads and (getNestCount(map, chunk) > 0) and (chunkRoll < 0.90) then
if squads and (getNestCount(map, chunk) > 0) then
squads = formSquads(map, surface, natives, chunk, AI_SQUAD_COST)
end