mirror of
https://github.com/veden/Rampant.git
synced 2025-01-26 03:20:07 +02:00
updated for 0.14
This commit is contained in:
parent
ab294727f6
commit
8cdab5ffc2
@ -29,7 +29,8 @@ Base Expansion
|
||||
|
||||
# Version History
|
||||
|
||||
0.0.6 - some speed improvements and MP is working
|
||||
0.0.6 - some speed improvements
|
||||
MP is working (https://github.com/veden/Rampant/issues/1)
|
||||
|
||||
0.0.5 - fix for nil chunk in ai attack (https://mods.factorio.com/mods/Veden/Rampant/discussion/2512)
|
||||
checks for main surface (https://forums.factorio.com/viewtopic.php?f=94&t=31445&p=198228#p198563)
|
||||
|
@ -1,10 +1,10 @@
|
||||
{
|
||||
"name" : "Rampant",
|
||||
"factorio_version" : "0.13",
|
||||
"version" : "0.0.6",
|
||||
"factorio_version" : "0.14",
|
||||
"version" : "0.0.7",
|
||||
"title" : "Rampant AI",
|
||||
"author" : "Veden",
|
||||
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",
|
||||
"description" : "Uses potential fields/pheromones to improve the enemy AI",
|
||||
"dependencies" : ["base >= 0.13", "? bobenemies", "? Natural_Evolution_Enemies"]
|
||||
"description" : "Improves the enemies tactics by using potential fields/pheromones allowing probing of defenses, retreats, and player hunting",
|
||||
"dependencies" : ["base >= 0.14", "? bobenemies", "? Natural_Evolution_Enemies"]
|
||||
}
|
23
setup.lua
Executable file
23
setup.lua
Executable file
@ -0,0 +1,23 @@
|
||||
local setup = {}
|
||||
|
||||
local constants = require("libs/Constants")
|
||||
|
||||
function setup.initializeTemps(temps)
|
||||
local attackAreaPosition = {x=0, y=0}
|
||||
temps[constants.ATTACK_AREA_POSITION] = attackAreaPosition
|
||||
temps[constants.ATTACK_AREA] = {
|
||||
type=defines.command.attack_area,
|
||||
destination=attackAreaPosition,
|
||||
radius=constants.HALF_CHUNK_SIZE,
|
||||
distraction=defines.distraction.by_anything
|
||||
}
|
||||
|
||||
temps[constants.ATTACK_PLAYER] = {
|
||||
type=defines.command.attack,
|
||||
target=1
|
||||
}
|
||||
|
||||
temps[constants.CARDINAL_WITH_DIRECTION] = {{d=1}, {d=2}, {d=3}, {d=4}}
|
||||
end
|
||||
|
||||
return setup
|
Loading…
x
Reference in New Issue
Block a user