1
0
mirror of https://github.com/veden/Rampant.git synced 2025-02-03 13:11:54 +02:00

updated to 0.15

This commit is contained in:
Aaron Veden 2017-04-24 21:08:41 -07:00
parent 52d967b091
commit e46b402b31
7 changed files with 27 additions and 13 deletions

View File

@ -25,7 +25,7 @@ Configure Options:
# Features
- Recycling Biters - When large groups of biters form on the game map and aren't assigned to a unit group or near a base will be periodically removed and refunded to the ai causes attack waves proportional to the number of units removed.
- Recycling Biters - When large groups of biters form on the game map and aren't assigned to a unit group or near a base will be periodically removed and refunded to the ai causing attack waves proportional to the number of units removed.
- Breaching - When biters are destroying structures nearby unit groups will come to join them
- Frenzy squads - When a unit group gets close to a player or start combat they switch to attacking everything in there path for a set radius or until there is nothing left
- Rabid squads - Is in a permanent frenzied state as soon as the group is formed
@ -52,6 +52,13 @@ Configure Options:
# Version History
0.15.1 -
- Tweak: Increased small spitter damage from 7 to 15
- Tweak: Increased medium spitter damage from 15 to 22
- Improvement: Replaced game.evolution with game.forces.enemy.evolution
- Improvement: Fixed flame-thrower to flamethrower
- Improvement: Changed tunnel to have non-zero hp
0.14.13 -
- Reverted: Pheromone generation tweaks from 0.14.11
- Feature: Recycling large biter swarms that are stuck (causes a big attack wave, and pops up a message)

View File

@ -166,6 +166,11 @@ local function onConfigChanged()
game.map_settings.unit_group.max_group_radius = 20
game.surfaces[1].print("Rampant - Version 0.14.13")
global.version = constants.VERSION_16
end
if (global.version < constants.VERSION_17) then
-- clear old regionMap processing Queue
-- prevents queue adding duplicate chunks
-- chunks are by key, so should overwrite old
@ -184,8 +189,8 @@ local function onConfigChanged()
y = chunk.y * 32 }}})
end
game.surfaces[1].print("Rampant - Version 0.14.13")
global.version = constants.VERSION_16
game.surfaces[1].print("Rampant - Version 0.15.1")
global.version = constants.VERSION_17
end
end
@ -194,7 +199,7 @@ local function onTick(event)
if (tick == regionMap.processTick) then
regionMap.processTick = regionMap.processTick + INTERVAL_PROCESS
local surface = game.surfaces[1]
local evolutionFactor = game.evolution_factor
local evolutionFactor = game.forces.enemy.evolution_factor
local players = game.players
processPendingChunks(regionMap, surface, pendingChunks)
@ -245,7 +250,7 @@ local function onDeath(event)
deathScent(deathChunk)
if ((event.force ~= nil) and (event.force.name == "player")) then
local evolutionFactor = game.evolution_factor
local evolutionFactor = game.forces.enemy.evolution_factor
if (deathChunk[MOVEMENT_PHEROMONE] < -(evolutionFactor * RETREAT_MOVEMENT_PHEROMONE_LEVEL)) then
retreatUnits(deathChunk,

View File

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

View File

@ -11,6 +11,7 @@ constants.VERSION_13 = 13
constants.VERSION_14 = 14
constants.VERSION_15 = 15
constants.VERSION_16 = 16
constants.VERSION_17 = 17
-- misc

View File

@ -9,7 +9,8 @@ data:extend({
collision_box = {{-1.3, -1.3}, {1.3, 1.3}},
selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
render_layer = "remnants",
max_health = 0,
destructible = "false",
max_health = 1,
pictures =
{
{
@ -20,4 +21,4 @@ data:extend({
}
}
}
})
})

View File

@ -23,7 +23,7 @@ biterStreamUtils.createBiterStreamAttack(
{
{
type = "damage",
damage = { amount = 7, type = "acid" }
damage = { amount = 15, type = "acid" }
}
}
}
@ -80,7 +80,7 @@ biterStreamUtils.createBiterStreamAttack(
{
{
type = "damage",
damage = { amount = 15, type = "acid" }
damage = { amount = 22, type = "acid" }
},
{
type= "create-entity",

View File

@ -179,7 +179,7 @@ end
function biterFunctions.createFireAttack(attributes, fireAttack)
local attack = {
type = "stream",
ammo_category = "flame-thrower",
ammo_category = "flamethrower",
cooldown = attributes.cooldown,
range = attributes.range,
min_range = attributes.minRange,
@ -200,7 +200,7 @@ function biterFunctions.createFireAttack(attributes, fireAttack)
},
ammo_type =
{
category = "flame-thrower",
category = "flamethrower",
action =
{
type = "direct",