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:
parent
42f67c6044
commit
4d265abe5f
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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"]
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user