From 4f113ab67b3556a5ca2fc3c350e0ac01b4d83690 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Sat, 15 Jul 2017 12:48:11 -0700 Subject: [PATCH] fix upgrade latch --- Upgrade.lua | 6 ++++++ libs/Constants.lua | 1 + 2 files changed, 7 insertions(+) diff --git a/Upgrade.lua b/Upgrade.lua index ed5c4b7..5d744ba 100644 --- a/Upgrade.lua +++ b/Upgrade.lua @@ -155,6 +155,12 @@ function upgrade.attempt(natives) end game.surfaces[1].print("Rampant - Version 0.15.17") + global.version = constants.VERSION_27 + end + if (global.version < constants.VERSION_28) then + + game.surfaces[1].print("Rampant - Version 0.15.18") + global.version = constants.VERSION_28 end return starting ~= global.version end diff --git a/libs/Constants.lua b/libs/Constants.lua index cfc4558..719e90b 100644 --- a/libs/Constants.lua +++ b/libs/Constants.lua @@ -14,6 +14,7 @@ constants.VERSION_23 = 23 constants.VERSION_25 = 25 constants.VERSION_26 = 26 constants.VERSION_27 = 27 +constants.VERSION_28 = 28 -- misc