Skip to content

Commit

Permalink
working adjustments and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
veden committed Nov 21, 2017
1 parent f6d9c5d commit 4f49459
Show file tree
Hide file tree
Showing 44 changed files with 966 additions and 1,829 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ Configure Options not in game menu:
- Pathfinding - Unit groups will use potential fields to perform only single step pathfinding allowing for efficient and dynamic pathing
- Peace mode - If something sets peace mode, Rampant will respect it
- Ion Cannon Reaction - Firing the Ion Cannon will cause nests around the blast site to form into an attack wave and agitate all biters
- Item Collector + Technology to unlock it - An entity that collects the items on the ground around itself

# Planned Features

Expand All @@ -61,6 +60,14 @@ Configure Options not in game menu:

# Version History

0.15.23 -
- Fixed: Retreat radius being centered on chunk corner instead of on the unit dying
- Fixed: Spitter flamethrower sound fx
- Moved: Item Collector into separate mod
- Balance: Adjusted spitter and worms damages, ranges, and cooldowns to be more inline with vanilla
- Optimization: Reduced memory footprint for faster saving and loading
- Framework: Reorganization of files

0.15.22 -
- Contribution - Martok88, Improvement: Added optional attack wave message per player

Expand Down
24 changes: 6 additions & 18 deletions Upgrade.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ local mathUtils = require("libs/MathUtils")
-- constants

local INTERVAL_LOGIC = constants.INTERVAL_LOGIC
local INTERVAL_PROCESS = constants.INTERVAL_PROCESS

-- imported functions

local roundToNearest = mathUtils.roundToNearest

-- module code

function upgrade.attempt(natives, world)
function upgrade.attempt(natives)
local starting = global.version
if (global.version == nil) then
natives.squads = {}
Expand Down Expand Up @@ -157,25 +156,14 @@ function upgrade.attempt(natives, world)
game.surfaces[1].print("Rampant - Version 0.15.17")
global.version = constants.VERSION_27
end
if (global.version < constants.VERSION_28) then
if (global.version < constants.VERSION_33) then

if (world == nil) then
global.world = {}
world = global.world
end

world.itemCollectorLookup = {}
world.itemCollectorEvents = {}
global.world = nil

game.surfaces[1].print("Rampant - Version 0.15.18")
global.version = constants.VERSION_28
end
if (global.version < constants.VERSION_32) then

game.surfaces[1].print("Rampant - Version 0.15.22")
global.version = constants.VERSION_32
game.surfaces[1].print("Rampant - Version 0.15.23")
global.version = constants.VERSION_33
end
return starting ~= global.version, natives, world
return starting ~= global.version, natives
end

function upgrade.compareTable(entities, option, new)
Expand Down
Loading

0 comments on commit 4f49459

Please sign in to comment.