From ddb6c470c19602f53bfeb48a0b48abb45974823c Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Sat, 23 Apr 2022 14:57:26 -0700 Subject: [PATCH] FACTO-113: Fixed entitySkipCountLookup being nil when new enemies are disabled --- Upgrade.lua | 8 ++++++-- changelog.txt | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Upgrade.lua b/Upgrade.lua index 506addf3..91000f85 100644 --- a/Upgrade.lua +++ b/Upgrade.lua @@ -21,7 +21,6 @@ local upgrade = {} local constants = require("libs/Constants") local chunkProcessor = require("libs/ChunkProcessor") local mapUtils = require("libs/MapUtils") -local chunkUtils = require("libs/ChunkUtils") -- constants @@ -607,8 +606,13 @@ function upgrade.attempt(universe) end universe.processBaseAIIterator = nil + end + if global.version < 303 then + global.version = 303 + + universe.entitySkipCountLookup = {} - game.print("Rampant - Version 3.0.0") + game.print("Rampant - Version 3.0.1") end return (starting ~= global.version) and global.version diff --git a/changelog.txt b/changelog.txt index 338042ec..fa3b9f4b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Version: 3.0.1 Bugfixes: - Removed console print statement when recycling bases + - Fixed entitySkipCountLookup being nil when new enemies are disabled --------------------------------------------------------------------------------------------------- Version: 3.0.0