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

removed dead or commented code

This commit is contained in:
Aaron Veden 2021-11-26 12:55:50 -08:00
parent 7efa7d3abf
commit 77f5fd641b
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
6 changed files with 0 additions and 110 deletions

View File

@ -14,7 +14,6 @@ local squadDefense = require("libs/SquadDefense")
local squadAttack = require("libs/SquadAttack")
local aiAttackWave = require("libs/AIAttackWave")
local aiPlanning = require("libs/AIPlanning")
-- local interop = require("libs/Interop")
local tests = require("tests")
local chunkUtils = require("libs/ChunkUtils")
local upgrade = require("Upgrade")
@ -169,8 +168,6 @@ local function onModSettingsChange(event)
return
end
--game.print("onModSettingsChange() processing for Rampant")
upgrade.compareTable(universe,
"safeBuildings",
settings.global["rampant--safeBuildings"].value)
@ -1019,9 +1016,7 @@ local function onBuilderArrived(event)
targetPosition.x = builder.position.x
targetPosition.y = builder.position.y
--local map = universe.maps[event.surface.index] -- crashes
if universe.aiPointsPrintSpendingToChat then
--game.print(map.surface.name .. ": Settled: [gps=" .. targetPosition.x .. "," .. targetPosition.y .."]") -- crashes
game.print("Settled: [gps=" .. targetPosition.x .. "," .. targetPosition.y .."]")
end
builder.surface.create_entity(universe.createBuildCloudQuery)

View File

@ -7,7 +7,6 @@ local aiPlanning = {}
local constants = require("Constants")
local mathUtils = require("MathUtils")
-- local aiPredicates = require("AIPredicates")
-- constants

View File

@ -154,7 +154,6 @@ function chunkProcessor.processScanChunks(map)
for ri=chunkCount,1,-1 do
if (removals[ri] == processQueue[i]) then
tRemove(processQueue, i)
-- tRemove(removals, ri)
break
end
end

View File

@ -1,99 +0,0 @@
if interopG then
return interopG
end
local interop = {}
-- function interop.addAIPoints(value)
-- global.natives.points = global.natives.points + value
-- end
-- function interop.getAIPoints()
-- return global.natives.points
-- end
-- function interop.setNocturnalMode(flag)
-- global.natives.aiNocturnalMode = flag
-- end
-- function interop.getNocturnalMode()
-- return global.natives.aiNocturnalMode
-- end
-- function interop.setPointsPerCycleScaling(scale)
-- global.natives.aiPointsScaler = scale
-- end
-- function interop.getPointsPerCycleScaling()
-- return global.natives.aiPointsScaler
-- end
-- function interop.changeState(aiState)
-- global.natives.state = aiState
-- end
-- function interop.getState()
-- return global.natives.state
-- end
-- function interop.getNextStateTick()
-- return global.natives.stateTick
-- end
-- function interop.getMaxWaveSize()
-- return global.natives.attackWaveMaxSize
-- end
-- function interop.getThresholds()
-- return global.natives.attackThresholdMin, global.natives.attackThresholdMax
-- end
-- function interop.changeMaxWaveSize(waveSize)
-- global.natives.attackWaveMaxSize = waveSize
-- end
-- function interop.getSettlerCooldown()
-- return global.natives.settlerCooldown
-- end
-- function interop.getSettlerWaveSize()
-- return global.natives.settlerWaveSize
-- end
-- function interop.changeThreshold(min, max)
-- global.natives.attackThresholdMin = min
-- global.natives.attackThresholdMax = max
-- global.natives.attackThresholdRange = max - min
-- end
-- function interop.changePlayerThreshold(value)
-- global.natives.attackPlayerThreshold = value
-- end
-- function interop.getPlayerThreshold()
-- return global.natives.attackPlayerThreshold
-- end
-- function interop.changeAttackUsePollution(bool)
-- global.natives.attackUsePollution = bool
-- end
-- function interop.changeAttackUsePlayer(bool)
-- global.natives.attackUsePlayer = bool
-- end
-- function interop.getAttackUsePollution()
-- return global.natives.attackUsePollution
-- end
-- function interop.getAttackUsePlayer()
-- return global.natives.attackUsePlayer
-- end
-- function interop.registerUnitGroup(unitGroup, isSettler)
-- local squad = unitGroupUtils.createSquad(unitGroup.position, unitGroup.surface, unitGroup, isSettler)
-- global.natives.pendingAttack.len = global.natives.pendingAttack.len + 1
-- global.natives.pendingAttack[global.natives.pendingAttack.len] = squad
-- end
interopG = interop
return interop

View File

@ -15,8 +15,6 @@ local CHUNK_EAST_WEST = constants.CHUNK_EAST_WEST
local CHUNK_IMPASSABLE = constants.CHUNK_IMPASSABLE
local CHUNK_ALL_DIRECTIONS = constants.CHUNK_ALL_DIRECTIONS
-- local PASSABLE = constants.PASSABLE
local CHUNK_SIZE = constants.CHUNK_SIZE
local CHUNK_SIZE_DIVIDER = constants.CHUNK_SIZE_DIVIDER
@ -112,7 +110,6 @@ function mapUtils.canMoveChunkDirection(map, direction, startChunk, endChunk)
local canMove = false
local startPassable = getPassable(map, startChunk)
local endPassable = getPassable(map, endChunk)
-- print(direction, startPassable, endPassable)
if (startPassable == CHUNK_ALL_DIRECTIONS) then
if ((direction == 1) or (direction == 3) or (direction == 6) or (direction == 8)) then
canMove = (endPassable == CHUNK_ALL_DIRECTIONS)

View File

@ -17,7 +17,6 @@ local PLAYER_PHEROMONE = constants.PLAYER_PHEROMONE
local BASE_PHEROMONE = constants.BASE_PHEROMONE
local RESOURCE_PHEROMONE = constants.RESOURCE_PHEROMONE
local TEN_DEATH_PHEROMONE_GENERATOR_AMOUNT = constants.TEN_DEATH_PHEROMONE_GENERATOR_AMOUNT
local FIVE_DEATH_PHEROMONE_GENERATOR_AMOUNT = constants.FIVE_DEATH_PHEROMONE_GENERATOR_AMOUNT
local SQUAD_BUILDING = constants.SQUAD_BUILDING