1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-26 03:20:07 +02:00

fixed world processor

This commit is contained in:
Aaron Veden 2017-08-11 00:49:10 -07:00
parent cca711c01b
commit 0271a370df
5 changed files with 11 additions and 2 deletions

View File

@ -58,6 +58,9 @@ Configure Options not in game menu:
# Version History
0.15.19 -
- Fixed: Error when processing item collectors
0.15.18 -
- Feature: Adds an item collector for things like alien artifacts
- Improvement: Added checks for how many squads have been created to enfore global limit over all squad creation methods

View File

@ -170,6 +170,11 @@ function upgrade.attempt(natives, world)
game.surfaces[1].print("Rampant - Version 0.15.18")
global.version = constants.VERSION_28
end
if (global.version < constants.VERSION_29) then
game.surfaces[1].print("Rampant - Version 0.15.19")
global.version = constants.VERSION_29
end
return starting ~= global.version, natives, world
end

View File

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

View File

@ -15,6 +15,7 @@ constants.VERSION_25 = 25
constants.VERSION_26 = 26
constants.VERSION_27 = 27
constants.VERSION_28 = 28
constants.VERSION_29 = 29
-- misc

View File

@ -54,7 +54,7 @@ function worldProcessor.processWorld(surface, world, tick)
if not counts[itemName] then
counts[itemName] = {item}
else
counts[#counts[itemName]+1] = item
counts[itemName][#counts[itemName]+1] = item
end
end
for k,a in pairs(counts) do