1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

getting ready for next version

This commit is contained in:
Aaron Veden 2017-05-14 18:50:56 -07:00
parent b0771de631
commit b6a381cadb
5 changed files with 15 additions and 7 deletions

View File

@ -119,6 +119,11 @@ function upgrade.attempt(natives, regionMap)
game.surfaces[1].print("Rampant - Version 0.15.8")
global.version = constants.VERSION_20
end
if (global.version < constants.VERSION_21) then
game.surfaces[1].print("Rampant - Version 0.15.9")
global.version = constants.VERSION_21
end
return starting ~= global.version
end

View File

@ -1,7 +1,7 @@
{
"name" : "Rampant",
"factorio_version" : "0.15",
"version" : "0.15.8",
"version" : "0.15.9",
"title" : "Rampant AI",
"author" : "Veden",
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",

View File

@ -38,10 +38,12 @@ function aiPlanning.planning(natives, evolution_factor, tick, surface)
maxPoints = maxPoints * 0.85
end
if (natives.points < maxPoints) then
-- check for ai points scaler being nil
if not natives.aiPointsScaler then
natives.aiPointsScaler = settings.global["rampant-aiPointsScaler"].value
end
--[[ check for ai points scaler being nil, potential race condition with mod config being run
discovered 0.15.8
--]]
-- if not natives.aiPointsScaler then
-- natives.aiPointsScaler = settings.global["rampant-aiPointsScaler"].value
-- end
natives.points = natives.points + math.floor((AI_POINT_GENERATOR_AMOUNT * math.random()) + ((AI_POINT_GENERATOR_AMOUNT * 0.7) * (evolution_factor ^ 2.5)) * natives.aiPointsScaler)
end

View File

@ -15,6 +15,7 @@ constants.VERSION_17 = 17
constants.VERSION_18 = 18
constants.VERSION_19 = 19
constants.VERSION_20 = 20
constants.VERSION_21 = 21
-- misc

View File

@ -75,7 +75,7 @@
(copyDirectory "prototypes" modFolder)))
(define (run)
;;(copyFiles modFolder)
(makeZip modFolder)
(copyFiles modFolder)
;;(makeZip modFolder)
)
)