mirror of
https://github.com/veden/Rampant.git
synced 2025-02-13 13:48:36 +02:00
Merge branch 'refactoredEnemies'
This commit is contained in:
commit
5e0b1f5c72
@ -217,12 +217,11 @@ function upgrade.attempt(natives)
|
||||
game.surfaces[natives.activeSurface].print("Rampant - Version 0.16.22")
|
||||
global.version = constants.VERSION_57
|
||||
end
|
||||
if (global.version < constants.VERSION_64) then
|
||||
if (global.version < constants.VERSION_65) then
|
||||
|
||||
game.surfaces[natives.activeSurface].print("Rampant - Version 0.16.29")
|
||||
global.version = constants.VERSION_64
|
||||
game.surfaces[natives.activeSurface].print("Rampant - Version 0.16.30")
|
||||
global.version = constants.VERSION_65
|
||||
end
|
||||
|
||||
|
||||
return starting ~= global.version, natives
|
||||
end
|
||||
|
@ -1,3 +1,24 @@
|
||||
Version: 0.16.30
|
||||
Date: 6. 7. 2018
|
||||
Improvements:
|
||||
- Raiding AI state nows requires an evolution of 0.04 before it can trigger
|
||||
Bugfixes:
|
||||
- Fixed fire biter nest size
|
||||
- Fixed Acid spitter resistances to be more inline with vanilla resistances
|
||||
- Fixed laser faction not having in-place evolution path from electric biters
|
||||
- Fixed range of unit levels being off by one, limiting the max units to level 9 only instead of 10
|
||||
- Fixed missing wasp worm drone locale entry
|
||||
Tweaks:
|
||||
- Increased troll units scale +0.2
|
||||
- Increased troll health regeneration for units by ~3x, spawners and worms by ~7x
|
||||
- Increased the lower attribute bound from 0.7 to 0.85
|
||||
- Increased the base distance to evolution index ratio from (1 / 5480) to (1 / 7200)
|
||||
- Increased the chance that initial base alignment picks a lower tier alignment by 0.15
|
||||
- Normalized all enemy faction attributes through the defaults, should be minor unit corrections
|
||||
Framework:
|
||||
- Refactored new enemy modules
|
||||
- Created default attributes for all unit, unit spawner, worms
|
||||
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.16.29
|
||||
Date: 6. 3. 2018
|
||||
|
@ -104,6 +104,7 @@ local setChunkSpawnerEggTick = chunkPropertyUtils.setChunkSpawnerEggTick
|
||||
local upgradeEntity = baseUtils.upgradeEntity
|
||||
local rebuildNativeTables = baseUtils.rebuildNativeTables
|
||||
|
||||
local sSub = string.sub
|
||||
local mRandom = math.random
|
||||
|
||||
-- local references to global
|
||||
@ -658,7 +659,8 @@ remote.add_interface("rampantTests",
|
||||
entityStats = tests.entityStats,
|
||||
stepAdvanceTendrils = tests.stepAdvanceTendrils,
|
||||
unitGroupBuild = tests.unitGroupBuild,
|
||||
exportAiState = tests.exportAiState(nil)
|
||||
exportAiState = tests.exportAiState(nil),
|
||||
createEnergyTest = tests.createEnergyTest
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -16,6 +16,7 @@ local troll = require("prototypes/Troll")
|
||||
local spawner = require("prototypes/Spawner")
|
||||
local wasp = require("prototypes/Wasp")
|
||||
local laser = require("prototypes/Laser")
|
||||
-- local energyThief = require("prototypes/EnergyThief")
|
||||
|
||||
if settings.startup["rampant-newEnemies"].value then
|
||||
|
||||
@ -35,6 +36,7 @@ if settings.startup["rampant-newEnemies"].value then
|
||||
spawner.addFaction()
|
||||
wasp.addFaction()
|
||||
laser.addFaction()
|
||||
-- energyThief.addFaction()
|
||||
|
||||
for _, unitSpawner in pairs(data.raw["unit-spawner"]) do
|
||||
if (unitSpawner.name ~= "biter-spawner") then
|
||||
|
87
data.lua
87
data.lua
@ -26,3 +26,90 @@ end
|
||||
|
||||
require("prototypes/buildings/ChunkScanner")
|
||||
|
||||
|
||||
-- data:extend({
|
||||
-- {
|
||||
-- type = "item",
|
||||
-- name = "accumulator2",
|
||||
-- icon = "__base__/graphics/icons/accumulator.png",
|
||||
-- icon_size = 32,
|
||||
-- flags = {"goes-to-quickbar"},
|
||||
-- subgroup = "energy",
|
||||
-- order = "e[accumulator]-a[accumulator]",
|
||||
-- place_result = "electric-energy-interface2",
|
||||
-- stack_size = 50
|
||||
-- },
|
||||
|
||||
-- {
|
||||
-- type = "radar",
|
||||
-- name = "electric-energy-interface2",
|
||||
-- icon = "__base__/graphics/icons/radar.png",
|
||||
-- icon_size = 32,
|
||||
-- flags = {"placeable-enemy"},
|
||||
-- minable = {hardness = 0.2, mining_time = 0.5, result = "radar"},
|
||||
-- max_health = 500,
|
||||
-- corpse = "small-remnants",
|
||||
-- collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
|
||||
-- selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
|
||||
-- energy_per_sector = "10MJ",
|
||||
-- has_backer_name = false,
|
||||
-- max_distance_of_sector_revealed = 0,
|
||||
-- max_distance_of_nearby_sector_revealed = 0,
|
||||
-- energy_per_nearby_scan = "250kJ",
|
||||
-- energy_source =
|
||||
-- {
|
||||
-- type = "electric",
|
||||
-- usage_priority = "primary-input"
|
||||
-- },
|
||||
-- energy_usage = "500kW",
|
||||
-- pictures =
|
||||
-- {
|
||||
-- filename = "__Rampant__/graphics/entities/thief/crystal.png",
|
||||
-- priority = "low",
|
||||
-- width = 128,
|
||||
-- height = 128,
|
||||
-- apply_projection = false,
|
||||
-- direction_count = 32,
|
||||
-- animation_speed = 0.5,
|
||||
-- line_length = 8
|
||||
-- },
|
||||
-- integration_patch =
|
||||
-- {
|
||||
-- filename = "__base__/graphics/entity/radar/radar-integration.png",
|
||||
-- priority = "low",
|
||||
-- width = 119,
|
||||
-- height = 108,
|
||||
-- apply_projection = false,
|
||||
-- direction_count = 1,
|
||||
-- repeat_count = 64,
|
||||
-- line_length = 1,
|
||||
-- shift = util.by_pixel(1.5, 4),
|
||||
-- hr_version =
|
||||
-- {
|
||||
-- filename = "__base__/graphics/entity/radar/hr-radar-integration.png",
|
||||
-- priority = "low",
|
||||
-- width = 238,
|
||||
-- height = 216,
|
||||
-- apply_projection = false,
|
||||
-- direction_count = 1,
|
||||
-- repeat_count = 64,
|
||||
-- line_length = 1,
|
||||
-- shift = util.by_pixel(1.5, 4),
|
||||
-- scale = 0.5
|
||||
-- }
|
||||
-- },
|
||||
|
||||
-- vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
|
||||
-- working_sound =
|
||||
-- {
|
||||
-- sound = {
|
||||
-- {
|
||||
-- filename = "__base__/sound/radar.ogg"
|
||||
-- }
|
||||
-- },
|
||||
-- apparent_volume = 2,
|
||||
-- },
|
||||
-- radius_minimap_visualisation_color = { r = 0.059, g = 0.092, b = 0.8, a = 0.275 },
|
||||
-- }
|
||||
|
||||
-- })
|
||||
|
Binary file not shown.
Before ![]() (image error) Size: 18 KiB |
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name" : "Rampant",
|
||||
"factorio_version" : "0.16",
|
||||
"version" : "0.16.29",
|
||||
"version" : "0.16.30",
|
||||
"title" : "Rampant",
|
||||
"author" : "Veden",
|
||||
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",
|
||||
|
@ -53,8 +53,6 @@ local mFloor = math.floor
|
||||
|
||||
local mRandom = math.random
|
||||
|
||||
local linearInterpolation = mathUtils.linearInterpolation
|
||||
|
||||
local mMax = math.max
|
||||
|
||||
-- module code
|
||||
@ -117,13 +115,15 @@ function aiPlanning.planning(natives, evolution_factor, tick, surface, connected
|
||||
natives.state = AI_STATE_MIGRATING
|
||||
elseif (roll < 0.80) then
|
||||
natives.state = AI_STATE_SIEGE
|
||||
else
|
||||
elseif (evolution_factor >= 0.04) then
|
||||
natives.state = AI_STATE_RAIDING
|
||||
|
||||
natives.points = natives.points + 1000
|
||||
if (natives.points > AI_MAX_OVERFLOW_POINTS) then
|
||||
natives.points = AI_MAX_OVERFLOW_POINTS
|
||||
end
|
||||
else
|
||||
natives.state = AI_STATE_AGGRESSIVE
|
||||
end
|
||||
end
|
||||
natives.stateTick = randomTickEvent(tick, AI_MIN_STATE_DURATION, AI_MAX_STATE_DURATION)
|
||||
|
@ -185,7 +185,7 @@ local function findEntityUpgrade(baseAlignment, evoIndex, natives, evolutionTabl
|
||||
local entitySet = alignments[roundToFloor(evo, EVOLUTION_INCREMENTS)]
|
||||
if entitySet and (#entitySet > 0) then
|
||||
entity = entitySet[mRandom(#entitySet)]
|
||||
if (mRandom() > 0.5) then
|
||||
if (mRandom() > 0.65) then
|
||||
break
|
||||
end
|
||||
end
|
||||
@ -203,7 +203,7 @@ local function findBaseInitialAlignment(evoIndex, natives, evolutionTable)
|
||||
local entitySet = evolutionTable[roundToFloor(evo, EVOLUTION_INCREMENTS)]
|
||||
if entitySet and (#entitySet > 0) then
|
||||
alignment = entitySet[mRandom(#entitySet)]
|
||||
if (mRandom() > 0.5) then
|
||||
if (mRandom() > 0.65) then
|
||||
break
|
||||
end
|
||||
end
|
||||
|
@ -21,7 +21,7 @@ constants.VERSION_41 = 41
|
||||
constants.VERSION_44 = 44
|
||||
constants.VERSION_51 = 51
|
||||
constants.VERSION_57 = 57
|
||||
constants.VERSION_64 = 64
|
||||
constants.VERSION_65 = 65
|
||||
|
||||
-- misc
|
||||
|
||||
@ -116,7 +116,7 @@ constants.BASE_DEADZONE_TTL = constants.TICKS_A_MINUTE * 20
|
||||
|
||||
constants.BASE_COLLECTION_THRESHOLD = constants.TICKS_A_MINUTE * 2
|
||||
|
||||
constants.BASE_DISTANCE_TO_EVO_INDEX = 1 / 5480
|
||||
constants.BASE_DISTANCE_TO_EVO_INDEX = 1 / 7200
|
||||
|
||||
constants.BASE_SPAWNER_UPGRADE = 300
|
||||
constants.BASE_WORM_UPGRADE = 250
|
||||
@ -163,9 +163,10 @@ constants.BASE_PROCESS_INTERVAL = constants.TICKS_A_SECOND * 2
|
||||
-- local decayingPath = {}
|
||||
-- decayingPath[constants.BASE_ALIGNMENT_UNDYING] = true
|
||||
|
||||
-- local electricPath = {}
|
||||
-- electricPath[constants.BASE_ALIGNMENT_ENERGY_THIEF] = true
|
||||
-- electricPath[constants.BASE_ALIGNMENT_LASER] = true
|
||||
local electricPath = {
|
||||
-- constants.BASE_ALIGNMENT_ENERGY_THIEF,
|
||||
constants.BASE_ALIGNMENT_LASER
|
||||
}
|
||||
|
||||
constants.BASE_ALIGNMENT_PATHS = {}
|
||||
constants.BASE_ALIGNMENT_PATHS[constants.BASE_ALIGNMENT_NEUTRAL] = {
|
||||
@ -183,7 +184,7 @@ constants.BASE_ALIGNMENT_PATHS[constants.BASE_ALIGNMENT_SUICIDE] = { constants.B
|
||||
constants.BASE_ALIGNMENT_PATHS[constants.BASE_ALIGNMENT_WASP] = { constants.BASE_ALIGNMENT_SPAWNER }
|
||||
-- constants.BASE_ALIGNMENT_PATHS[constants.BASE_ALIGNMENT_ACID] = acidPath
|
||||
-- constants.BASE_ALIGNMENT_PATHS[constants.BASE_ALIGNMENT_DECAYING] = decayingPath
|
||||
-- constants.BASE_ALIGNMENT_PATHS[constants.BASE_ALIGNMENT_ELECTRIC] = electricPath
|
||||
constants.BASE_ALIGNMENT_PATHS[constants.BASE_ALIGNMENT_ELECTRIC] = electricPath
|
||||
|
||||
constants.BASE_ALIGNMENT_EVOLUTION_BASELINE = {
|
||||
[constants.BASE_ALIGNMENT_NEUTRAL] = 0,
|
||||
@ -350,14 +351,15 @@ local tiers5 = {}
|
||||
local tierStart = settings.startup["rampant-tierStart"].value
|
||||
local tierEnd = settings.startup["rampant-tierEnd"].value
|
||||
|
||||
local step5 = (tierEnd - tierStart) / 5
|
||||
|
||||
local step5 = (tierEnd - tierStart) / 4
|
||||
for i=tierStart,tierEnd,step5 do
|
||||
tiers5[#tiers5+1] = roundToNearest(i, 1)
|
||||
end
|
||||
|
||||
local tiers10 = {}
|
||||
|
||||
local step10 = (tierEnd - tierStart) / 10
|
||||
local step10 = (tierEnd - tierStart) / 9
|
||||
for i=tierStart,tierEnd,step10 do
|
||||
tiers10[#tiers10+1] = roundToNearest(i, 1)
|
||||
end
|
||||
@ -469,6 +471,14 @@ constants.ELECTRIC_WORM_VARIATIONS = wormVariations
|
||||
constants.ELECTRIC_UNIT_TIERS = unitTiers
|
||||
constants.ELECTRIC_UNIT_VARIATIONS = unitVariations
|
||||
|
||||
constants.ENERGY_THIEF_NEST_TIERS = nestTiers
|
||||
constants.ENERGY_THIEF_NEST_VARIATIONS = nestVariations
|
||||
constants.ENERGY_THIEF_WORM_TIERS = wormTiers
|
||||
constants.ENERGY_THIEF_WORM_VARIATIONS = wormVariations
|
||||
constants.ENERGY_THIEF_UNIT_TIERS = unitTiers
|
||||
constants.ENERGY_THIEF_UNIT_VARIATIONS = unitVariations
|
||||
|
||||
|
||||
constants.LASER_NEST_TIERS = nestTiers
|
||||
constants.LASER_NEST_VARIATIONS = nestVariations
|
||||
constants.LASER_WORM_TIERS = wormTiers
|
||||
|
@ -9,6 +9,7 @@ local playerUtils = require("PlayerUtils")
|
||||
local movementUtils = require("MovementUtils")
|
||||
local mathUtils = require("MathUtils")
|
||||
local chunkPropertyUtils = require("ChunkPropertyUtils")
|
||||
local chunkUtils = require("ChunkUtils")
|
||||
|
||||
--local chunkUtils = require("ChunkUtils")
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
1193
prototypes/Acid.lua
1193
prototypes/Acid.lua
File diff suppressed because it is too large
Load Diff
@ -65,18 +65,6 @@ function electric.addFaction()
|
||||
resistances = {},
|
||||
|
||||
type = "biter",
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
attackName = "biter-electric",
|
||||
tint1 = {r=0, g=0.25, b=0.83, a=0.65},
|
||||
tint2 = {r=0, g=0.25, b=0.63, a=0.65}
|
||||
@ -88,18 +76,6 @@ function electric.addFaction()
|
||||
loot = spawnerLoot,
|
||||
attributes = {},
|
||||
resistances = {},
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1.0,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
tint = {r=0, g=0.25, b=0.83, a=0.65}
|
||||
}
|
||||
},
|
||||
@ -121,21 +97,6 @@ function electric.addFaction()
|
||||
[10] = 7000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 35,
|
||||
[2] = 35,
|
||||
[3] = 35,
|
||||
[4] = 35,
|
||||
[5] = 35,
|
||||
[6] = 35,
|
||||
[7] = 50,
|
||||
[8] = 50,
|
||||
[9] = 55,
|
||||
[10] = 57
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "width",
|
||||
@ -181,154 +142,6 @@ function electric.addFaction()
|
||||
[10] = 24
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawningTimeModifer",
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 1,
|
||||
[4] = 2,
|
||||
[5] = 3,
|
||||
[6] = 7,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "pollutionToAttack",
|
||||
[1] = 200,
|
||||
[2] = 750,
|
||||
[3] = 1750,
|
||||
[4] = 3500,
|
||||
[5] = 5000,
|
||||
[6] = 10000,
|
||||
[7] = 20000,
|
||||
[8] = 25000,
|
||||
[9] = 30000,
|
||||
[10] = 40000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 7,
|
||||
[2] = 15,
|
||||
[3] = 22.5,
|
||||
[4] = 35,
|
||||
[5] = 45,
|
||||
[6] = 60,
|
||||
[7] = 75,
|
||||
[8] = 90,
|
||||
[9] = 150,
|
||||
[10] = 200
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "movement",
|
||||
[1] = 0.2,
|
||||
[2] = 0.19,
|
||||
[3] = 0.185,
|
||||
[4] = 0.18,
|
||||
[5] = 0.175,
|
||||
[6] = 0.17,
|
||||
[7] = 0.17,
|
||||
[8] = 0.17,
|
||||
[9] = 0.17,
|
||||
[10] = 0.17
|
||||
},
|
||||
{
|
||||
type = "attribute",
|
||||
name = "distancePerFrame",
|
||||
[1] = 0.1,
|
||||
[2] = 0.125,
|
||||
[3] = 0.15,
|
||||
[4] = 0.19,
|
||||
[5] = 0.195,
|
||||
[6] = 0.2,
|
||||
[7] = 0.2,
|
||||
[8] = 0.2,
|
||||
[9] = 0.2,
|
||||
[10] = 0.2
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 4,
|
||||
[4] = 5,
|
||||
[5] = 6,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 14,
|
||||
[10] = 15
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 0,
|
||||
[4] = 10,
|
||||
[5] = 12,
|
||||
[6] = 12,
|
||||
[7] = 13,
|
||||
[8] = 13,
|
||||
[9] = 14,
|
||||
[10] = 15
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 0,
|
||||
[4] = 0,
|
||||
[5] = 0,
|
||||
[6] = 0,
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 14,
|
||||
[10] = 15
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 0,
|
||||
[4] = 10,
|
||||
[5] = 12,
|
||||
[6] = 12,
|
||||
[7] = 13,
|
||||
[8] = 13,
|
||||
[9] = 14,
|
||||
[10] = 15
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "electric",
|
||||
@ -376,198 +189,6 @@ function electric.addFaction()
|
||||
|
||||
unitSpawner = {
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 350,
|
||||
[2] = 500,
|
||||
[3] = 750,
|
||||
[4] = 1500,
|
||||
[5] = 2500,
|
||||
[6] = 3500,
|
||||
[7] = 5000,
|
||||
[8] = 7000,
|
||||
[9] = 10000,
|
||||
[10] = 15000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.02,
|
||||
[2] = 0.02,
|
||||
[3] = 0.022,
|
||||
[4] = 0.024,
|
||||
[5] = 0.026,
|
||||
[6] = 0.028,
|
||||
[7] = 0.03,
|
||||
[8] = 0.032,
|
||||
[9] = 0.034,
|
||||
[10] = 0.036
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownStart",
|
||||
[1] = 360,
|
||||
[2] = 360,
|
||||
[3] = 355,
|
||||
[4] = 355,
|
||||
[5] = 350,
|
||||
[6] = 350,
|
||||
[7] = 345,
|
||||
[8] = 345,
|
||||
[9] = 340,
|
||||
[10] = 340
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownEnd",
|
||||
[1] = 150,
|
||||
[2] = 150,
|
||||
[3] = 145,
|
||||
[4] = 145,
|
||||
[5] = 140,
|
||||
[6] = 140,
|
||||
[7] = 135,
|
||||
[8] = 135,
|
||||
[9] = 130,
|
||||
[10] = 130
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0,
|
||||
[2] = 0.1,
|
||||
[3] = 0.2,
|
||||
[4] = 0.3,
|
||||
[5] = 0.4,
|
||||
[6] = 0.5,
|
||||
[7] = 0.6,
|
||||
[8] = 0.7,
|
||||
[9] = 0.8,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "unitsOwned",
|
||||
[1] = 7,
|
||||
[2] = 7,
|
||||
[3] = 8,
|
||||
[4] = 8,
|
||||
[5] = 9,
|
||||
[6] = 9,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 11,
|
||||
[10] = 11
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "unitsToSpawn",
|
||||
[1] = 5,
|
||||
[2] = 5,
|
||||
[3] = 6,
|
||||
[4] = 6,
|
||||
[5] = 7,
|
||||
[6] = 7,
|
||||
[7] = 8,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 2,
|
||||
[2] = 2,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 12,
|
||||
[10] = 14
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 5,
|
||||
[2] = 5,
|
||||
[3] = 6,
|
||||
[4] = 6,
|
||||
[5] = 7,
|
||||
[6] = 7,
|
||||
[7] = 8,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "fire",
|
||||
decrease = {
|
||||
[1] = 3,
|
||||
[2] = 3,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 6,
|
||||
[8] = 6,
|
||||
[9] = 7,
|
||||
[10] = 7
|
||||
},
|
||||
percent = {
|
||||
[1] = 60,
|
||||
[2] = 60,
|
||||
[3] = 62,
|
||||
[4] = 62,
|
||||
[5] = 63,
|
||||
[6] = 63,
|
||||
[7] = 64,
|
||||
[8] = 64,
|
||||
[9] = 65,
|
||||
[10] = 65
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "electric",
|
||||
@ -596,19 +217,6 @@ function electric.addFaction()
|
||||
[10] = 90
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
probabilityTable = {
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 1,
|
||||
[5] = 1,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
[8] = 1,
|
||||
[9] = 1,
|
||||
[10] = 1,
|
||||
}
|
||||
},
|
||||
|
||||
@ -669,18 +277,6 @@ function electric.addFaction()
|
||||
},
|
||||
resistances = {},
|
||||
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
attackName = "worm-electric",
|
||||
tint = {r=0, g=0.25, b=0.83, a=0.65},
|
||||
pTint = {r=0, g=0.1, b=1, a=1},
|
||||
@ -733,173 +329,7 @@ function electric.addFaction()
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 200,
|
||||
[2] = 350,
|
||||
[3] = 500,
|
||||
[4] = 750,
|
||||
[5] = 900,
|
||||
[6] = 1000,
|
||||
[7] = 1500,
|
||||
[8] = 3000,
|
||||
[9] = 5000,
|
||||
[10] = 9000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 50,
|
||||
[2] = 50,
|
||||
[3] = 45,
|
||||
[4] = 45,
|
||||
[5] = 40,
|
||||
[6] = 40,
|
||||
[7] = 35,
|
||||
[8] = 35,
|
||||
[9] = 30,
|
||||
[10] = 30
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0,
|
||||
[2] = 0.1,
|
||||
[3] = 0.2,
|
||||
[4] = 0.3,
|
||||
[5] = 0.4,
|
||||
[6] = 0.5,
|
||||
[7] = 0.6,
|
||||
[8] = 0.7,
|
||||
[9] = 0.8,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 12,
|
||||
[2] = 20,
|
||||
[3] = 25,
|
||||
[4] = 30,
|
||||
[5] = 35,
|
||||
[6] = 40,
|
||||
[7] = 50,
|
||||
[8] = 60,
|
||||
[9] = 70,
|
||||
[10] = 80
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "prepareRange",
|
||||
[1] = 30,
|
||||
[2] = 30,
|
||||
[3] = 31,
|
||||
[4] = 31,
|
||||
[5] = 32,
|
||||
[6] = 32,
|
||||
[7] = 33,
|
||||
[8] = 33,
|
||||
[9] = 34,
|
||||
[10] = 34
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "foldingSpeed",
|
||||
[1] = 0.15,
|
||||
[2] = 0.15,
|
||||
[3] = 0.16,
|
||||
[4] = 0.16,
|
||||
[5] = 0.16,
|
||||
[6] = 0.17,
|
||||
[7] = 0.17,
|
||||
[8] = 0.18,
|
||||
[9] = 0.18,
|
||||
[10] = 0.19
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "preparingSpeed",
|
||||
[1] = 0.025,
|
||||
[2] = 0.025,
|
||||
[3] = 0.026,
|
||||
[4] = 0.026,
|
||||
[5] = 0.027,
|
||||
[6] = 0.027,
|
||||
[7] = 0.028,
|
||||
[8] = 0.028,
|
||||
[9] = 0.029,
|
||||
[10] = 0.029
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 10,
|
||||
[4] = 10,
|
||||
[5] = 20,
|
||||
[6] = 20,
|
||||
[7] = 30,
|
||||
[8] = 30,
|
||||
[9] = 40,
|
||||
[10] = 40
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
@ -928,112 +358,7 @@ function electric.addFaction()
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "fire",
|
||||
decrease = {
|
||||
[1] = 3,
|
||||
[2] = 3,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 6,
|
||||
[8] = 6,
|
||||
[9] = 7,
|
||||
[10] = 7
|
||||
},
|
||||
percent = {
|
||||
[1] = 70,
|
||||
[2] = 70,
|
||||
[3] = 72,
|
||||
[4] = 72,
|
||||
[5] = 73,
|
||||
[6] = 73,
|
||||
[7] = 74,
|
||||
[8] = 74,
|
||||
[9] = 75,
|
||||
[10] = 75
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 21,
|
||||
[2] = 22,
|
||||
[3] = 23,
|
||||
[4] = 23,
|
||||
[5] = 24,
|
||||
[6] = 26,
|
||||
[7] = 26,
|
||||
[8] = 28,
|
||||
[9] = 30,
|
||||
[10] = 32
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 1.5,
|
||||
[2] = 1.6,
|
||||
[3] = 1.7,
|
||||
[4] = 1.8,
|
||||
[5] = 1.9,
|
||||
[6] = 2.0,
|
||||
[7] = 2.2,
|
||||
[8] = 2.3,
|
||||
[9] = 2.5,
|
||||
[10] = 3.0
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
function (attributes)
|
||||
|
1015
prototypes/Fast.lua
1015
prototypes/Fast.lua
File diff suppressed because it is too large
Load Diff
1231
prototypes/Fire.lua
1231
prototypes/Fire.lua
File diff suppressed because it is too large
Load Diff
@ -80,18 +80,6 @@ function inferno.addFaction()
|
||||
resistances = {},
|
||||
|
||||
type = "spitter",
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
attackName = "spitter-inferno",
|
||||
tint = {r=0.65, g=0, b=0, a=1},
|
||||
pTint = {r=1, g=1, b=1, a=0.5},
|
||||
@ -105,39 +93,13 @@ function inferno.addFaction()
|
||||
attributes = {},
|
||||
resistances = {},
|
||||
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1.0,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
tint = {r=0.99, g=0.09, b=0.09, a=1}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
unit = {
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 10,
|
||||
[2] = 50,
|
||||
[3] = 200,
|
||||
[4] = 350,
|
||||
[5] = 750,
|
||||
[6] = 1000,
|
||||
[7] = 1500,
|
||||
[8] = 2500,
|
||||
[9] = 4500,
|
||||
[10] = 7000
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "stickerDamagePerTick",
|
||||
@ -242,51 +204,6 @@ function inferno.addFaction()
|
||||
[9] = 2200,
|
||||
[10] = 2200
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 100,
|
||||
[2] = 100,
|
||||
[3] = 97,
|
||||
[4] = 97,
|
||||
[5] = 95,
|
||||
[6] = 95,
|
||||
[7] = 93,
|
||||
[8] = 93,
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawningTimeModifer",
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 1,
|
||||
[4] = 2,
|
||||
[5] = 3,
|
||||
[6] = 7,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "pollutionToAttack",
|
||||
[1] = 200,
|
||||
[2] = 750,
|
||||
[3] = 1200,
|
||||
[4] = 1750,
|
||||
[5] = 2500,
|
||||
[6] = 5000,
|
||||
[7] = 10000,
|
||||
[8] = 12500,
|
||||
[9] = 15000,
|
||||
[10] = 20000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
@ -302,69 +219,36 @@ function inferno.addFaction()
|
||||
[9] = 6,
|
||||
[10] = 7
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "acid",
|
||||
decrease = {
|
||||
[1] = 7,
|
||||
[2] = 7,
|
||||
[3] = 10,
|
||||
[4] = 10,
|
||||
[5] = 13,
|
||||
[6] = 13,
|
||||
[7] = 16,
|
||||
[8] = 16,
|
||||
[9] = 19,
|
||||
[10] = 23
|
||||
},
|
||||
percent = {
|
||||
[1] = 65,
|
||||
[2] = 65,
|
||||
[3] = 70,
|
||||
[4] = 75,
|
||||
[5] = 75,
|
||||
[6] = 80,
|
||||
[7] = 85,
|
||||
[8] = 85,
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "movement",
|
||||
[1] = 0.185,
|
||||
[2] = 0.18,
|
||||
[3] = 0.18,
|
||||
[4] = 0.17,
|
||||
[5] = 0.17,
|
||||
[6] = 0.16,
|
||||
[7] = 0.16,
|
||||
[8] = 0.15,
|
||||
[9] = 0.15,
|
||||
[10] = 0.14
|
||||
},
|
||||
{
|
||||
type = "attribute",
|
||||
name = "distancePerFrame",
|
||||
[1] = 0.04,
|
||||
[2] = 0.045,
|
||||
[3] = 0.050,
|
||||
[4] = 0.055,
|
||||
[5] = 0.060,
|
||||
[6] = 0.065,
|
||||
[7] = 0.070,
|
||||
[8] = 0.075,
|
||||
[9] = 0.08,
|
||||
[10] = 0.084
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 10,
|
||||
[4] = 10,
|
||||
[5] = 20,
|
||||
[6] = 20,
|
||||
[7] = 30,
|
||||
[8] = 30,
|
||||
[9] = 40,
|
||||
[10] = 40
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "fire",
|
||||
@ -392,247 +276,39 @@ function inferno.addFaction()
|
||||
[9] = 95,
|
||||
[10] = 97
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 13,
|
||||
[2] = 13,
|
||||
[3] = 14,
|
||||
[4] = 14,
|
||||
[5] = 15,
|
||||
[6] = 15,
|
||||
[7] = 16,
|
||||
[8] = 16,
|
||||
[9] = 17,
|
||||
[10] = 17
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 1.2,
|
||||
[2] = 1.3,
|
||||
[3] = 1.4,
|
||||
[4] = 1.5,
|
||||
[5] = 1.6,
|
||||
[6] = 1.7,
|
||||
[7] = 1.8,
|
||||
[8] = 1.9,
|
||||
[9] = 2.0,
|
||||
[10] = 2.5
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
unitSpawner = {
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 350,
|
||||
[2] = 500,
|
||||
[3] = 750,
|
||||
[4] = 1500,
|
||||
[5] = 2500,
|
||||
[6] = 3500,
|
||||
[7] = 5000,
|
||||
[8] = 7000,
|
||||
[9] = 10000,
|
||||
[10] = 15000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.02,
|
||||
[2] = 0.02,
|
||||
[3] = 0.022,
|
||||
[4] = 0.024,
|
||||
[5] = 0.026,
|
||||
[6] = 0.028,
|
||||
[7] = 0.03,
|
||||
[8] = 0.032,
|
||||
[9] = 0.034,
|
||||
[10] = 0.036
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownStart",
|
||||
[1] = 360,
|
||||
[2] = 360,
|
||||
[3] = 355,
|
||||
[4] = 355,
|
||||
[5] = 350,
|
||||
[6] = 350,
|
||||
[7] = 345,
|
||||
[8] = 345,
|
||||
[9] = 340,
|
||||
[10] = 340
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownEnd",
|
||||
[1] = 150,
|
||||
[2] = 150,
|
||||
[3] = 145,
|
||||
[4] = 145,
|
||||
[5] = 140,
|
||||
[6] = 140,
|
||||
[7] = 135,
|
||||
[8] = 135,
|
||||
[9] = 130,
|
||||
[10] = 130
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0.08,
|
||||
[2] = 0.16,
|
||||
[3] = 0.24,
|
||||
[4] = 0.35,
|
||||
[5] = 0.40,
|
||||
[6] = 0.45,
|
||||
[7] = 0.55,
|
||||
[8] = 0.65,
|
||||
[9] = 0.75,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "unitsOwned",
|
||||
{
|
||||
type = "resistance",
|
||||
name = "acid",
|
||||
decrease = {
|
||||
[1] = 7,
|
||||
[2] = 7,
|
||||
[3] = 8,
|
||||
[4] = 8,
|
||||
[5] = 9,
|
||||
[6] = 9,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 11,
|
||||
[10] = 11
|
||||
},
|
||||
{
|
||||
type = "attribute",
|
||||
name = "unitsToSpawn",
|
||||
[1] = 5,
|
||||
[2] = 5,
|
||||
[3] = 6,
|
||||
[4] = 6,
|
||||
[5] = 7,
|
||||
[6] = 7,
|
||||
[7] = 8,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 2,
|
||||
[2] = 2,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 12,
|
||||
[10] = 14
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 5,
|
||||
[2] = 5,
|
||||
[3] = 6,
|
||||
[4] = 6,
|
||||
[5] = 7,
|
||||
[6] = 7,
|
||||
[7] = 8,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
[3] = 10,
|
||||
[4] = 10,
|
||||
[5] = 13,
|
||||
[6] = 13,
|
||||
[7] = 16,
|
||||
[8] = 16,
|
||||
[9] = 19,
|
||||
[10] = 23
|
||||
},
|
||||
percent = {
|
||||
[1] = 65,
|
||||
[2] = 65,
|
||||
[3] = 70,
|
||||
[4] = 75,
|
||||
[5] = 75,
|
||||
[6] = 80,
|
||||
[7] = 85,
|
||||
[8] = 85,
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
@ -662,19 +338,6 @@ function inferno.addFaction()
|
||||
[10] = 97
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
probabilityTable = {
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 1,
|
||||
[5] = 1,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
[8] = 1,
|
||||
[9] = 1,
|
||||
[10] = 1,
|
||||
}
|
||||
},
|
||||
|
||||
@ -729,39 +392,13 @@ function inferno.addFaction()
|
||||
},
|
||||
resistances = {},
|
||||
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
attackName = "worm-inferno",
|
||||
tint = {r=0.65, g=0, b=0, a=0.65},
|
||||
pTint = {r=1, g=1, b=1, a=0.5},
|
||||
sTint = {r=1, g=1, b=1, a=0.5}
|
||||
},
|
||||
|
||||
{
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 200,
|
||||
[2] = 350,
|
||||
[3] = 500,
|
||||
[4] = 750,
|
||||
[5] = 900,
|
||||
[6] = 1000,
|
||||
[7] = 1500,
|
||||
[8] = 3000,
|
||||
[9] = 5000,
|
||||
[10] = 9000
|
||||
},
|
||||
{
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
@ -868,36 +505,6 @@ function inferno.addFaction()
|
||||
[10] = 2200
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 50,
|
||||
[2] = 50,
|
||||
[3] = 45,
|
||||
[4] = 45,
|
||||
[5] = 40,
|
||||
[6] = 40,
|
||||
[7] = 35,
|
||||
[8] = 35,
|
||||
[9] = 30,
|
||||
[10] = 30
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0,
|
||||
[2] = 0.1,
|
||||
[3] = 0.2,
|
||||
[4] = 0.3,
|
||||
[5] = 0.4,
|
||||
[6] = 0.5,
|
||||
[7] = 0.6,
|
||||
[8] = 0.7,
|
||||
[9] = 0.8,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
@ -912,113 +519,36 @@ function inferno.addFaction()
|
||||
[9] = 6,
|
||||
[10] = 7
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "prepareRange",
|
||||
[1] = 30,
|
||||
[2] = 30,
|
||||
[3] = 31,
|
||||
[4] = 31,
|
||||
[5] = 32,
|
||||
[6] = 32,
|
||||
[7] = 33,
|
||||
[8] = 33,
|
||||
[9] = 34,
|
||||
[10] = 34
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "foldingSpeed",
|
||||
[1] = 0.15,
|
||||
[2] = 0.15,
|
||||
[3] = 0.16,
|
||||
[4] = 0.16,
|
||||
[5] = 0.16,
|
||||
[6] = 0.17,
|
||||
[7] = 0.17,
|
||||
[8] = 0.18,
|
||||
[9] = 0.18,
|
||||
[10] = 0.19
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "preparingSpeed",
|
||||
[1] = 0.025,
|
||||
[2] = 0.025,
|
||||
[3] = 0.026,
|
||||
[4] = 0.026,
|
||||
[5] = 0.027,
|
||||
[6] = 0.027,
|
||||
[7] = 0.028,
|
||||
[8] = 0.028,
|
||||
[9] = 0.029,
|
||||
[10] = 0.029
|
||||
},
|
||||
|
||||
{
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
name = "acid",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[1] = 7,
|
||||
[2] = 7,
|
||||
[3] = 10,
|
||||
[4] = 10,
|
||||
[5] = 20,
|
||||
[6] = 20,
|
||||
[7] = 30,
|
||||
[8] = 30,
|
||||
[9] = 40,
|
||||
[10] = 40
|
||||
}
|
||||
[5] = 13,
|
||||
[6] = 13,
|
||||
[7] = 16,
|
||||
[8] = 16,
|
||||
[9] = 19,
|
||||
[10] = 23
|
||||
},
|
||||
percent = {
|
||||
[1] = 65,
|
||||
[2] = 65,
|
||||
[3] = 70,
|
||||
[4] = 75,
|
||||
[5] = 75,
|
||||
[6] = 80,
|
||||
[7] = 85,
|
||||
[8] = 85,
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "fire",
|
||||
@ -1046,81 +576,6 @@ function inferno.addFaction()
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 21,
|
||||
[2] = 22,
|
||||
[3] = 23,
|
||||
[4] = 23,
|
||||
[5] = 24,
|
||||
[6] = 26,
|
||||
[7] = 26,
|
||||
[8] = 28,
|
||||
[9] = 30,
|
||||
[10] = 32
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 1.5,
|
||||
[2] = 1.6,
|
||||
[3] = 1.7,
|
||||
[4] = 1.8,
|
||||
[5] = 1.9,
|
||||
[6] = 2.0,
|
||||
[7] = 2.2,
|
||||
[8] = 2.3,
|
||||
[9] = 2.5,
|
||||
[10] = 3.0
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
}
|
||||
},
|
||||
|
||||
|
1129
prototypes/Laser.lua
1129
prototypes/Laser.lua
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -62,18 +62,6 @@ function nuclear.addFaction()
|
||||
|
||||
attackName = "nuclear-biter",
|
||||
type = "biter",
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
tint1 = {r=0.76, g=0.76, b=0, a=0.65},
|
||||
tint2 = {r=0.76, g=0.76, b=0, a=0.65}
|
||||
},
|
||||
@ -84,18 +72,6 @@ function nuclear.addFaction()
|
||||
loot = spawnerLoot,
|
||||
attributes = {},
|
||||
resistances = {},
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1.0,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
tint = {r=0.76, g=0.76, b=0, a=0.65}
|
||||
}
|
||||
},
|
||||
@ -116,23 +92,6 @@ function nuclear.addFaction()
|
||||
[8] = 1500,
|
||||
[9] = 3000,
|
||||
[10] = 5000
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 35,
|
||||
[2] = 35,
|
||||
[3] = 35,
|
||||
[4] = 35,
|
||||
[5] = 35,
|
||||
[6] = 35,
|
||||
[7] = 50,
|
||||
[8] = 50,
|
||||
[9] = 55,
|
||||
[10] = 57
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
@ -147,25 +106,7 @@ function nuclear.addFaction()
|
||||
[7] = 6,
|
||||
[8] = 6,
|
||||
[9] = 8,
|
||||
[10] = 8
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
type = "attribute",
|
||||
name = "pollutionToAttack",
|
||||
[1] = 200,
|
||||
[2] = 750,
|
||||
[3] = 1750,
|
||||
[4] = 3500,
|
||||
[5] = 5000,
|
||||
[6] = 10000,
|
||||
[7] = 20000,
|
||||
[8] = 25000,
|
||||
[9] = 30000,
|
||||
[10] = 40000
|
||||
|
||||
[10] = 8
|
||||
},
|
||||
|
||||
{
|
||||
@ -226,23 +167,7 @@ function nuclear.addFaction()
|
||||
[8] = 150,
|
||||
[9] = 180,
|
||||
[10] = 200
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
@ -258,6 +183,7 @@ function nuclear.addFaction()
|
||||
[9] = 0.19,
|
||||
[10] = 0.19
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "distancePerFrame",
|
||||
@ -273,35 +199,6 @@ function nuclear.addFaction()
|
||||
[10] = 0.24
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 4,
|
||||
[4] = 5,
|
||||
[5] = 6,
|
||||
[6] = 8,
|
||||
[7] = 9,
|
||||
[8] = 9,
|
||||
[9] = 10,
|
||||
[10] = 10
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 0,
|
||||
[4] = 10,
|
||||
[5] = 12,
|
||||
[6] = 12,
|
||||
[7] = 13,
|
||||
[8] = 13,
|
||||
[9] = 14,
|
||||
[10] = 15
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
@ -329,55 +226,10 @@ function nuclear.addFaction()
|
||||
[9] = -90,
|
||||
[10] = -90
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 0.5,
|
||||
[2] = 0.5,
|
||||
[3] = 0.75,
|
||||
[4] = 0.75,
|
||||
[5] = 1.0,
|
||||
[6] = 1.0,
|
||||
[7] = 1.25,
|
||||
[8] = 1.50,
|
||||
[9] = 1.75,
|
||||
[10] = 2.0
|
||||
}
|
||||
},
|
||||
|
||||
unitSpawner = {
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 350,
|
||||
[2] = 500,
|
||||
[3] = 750,
|
||||
[4] = 1500,
|
||||
[5] = 2500,
|
||||
[6] = 3500,
|
||||
[7] = 5000,
|
||||
[8] = 7000,
|
||||
[9] = 10000,
|
||||
[10] = 15000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.02,
|
||||
[2] = 0.02,
|
||||
[3] = 0.022,
|
||||
[4] = 0.024,
|
||||
[5] = 0.026,
|
||||
[6] = 0.028,
|
||||
[7] = 0.03,
|
||||
[8] = 0.032,
|
||||
[9] = 0.034,
|
||||
[10] = 0.036
|
||||
},
|
||||
unitSpawner = {
|
||||
|
||||
{
|
||||
|
||||
@ -455,35 +307,6 @@ function nuclear.addFaction()
|
||||
[9] = 5,
|
||||
[10] = 5
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 2,
|
||||
[2] = 2,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 12,
|
||||
[10] = 14
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
@ -542,19 +365,6 @@ function nuclear.addFaction()
|
||||
[10] = 45
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
probabilityTable = {
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 1,
|
||||
[5] = 1,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
[8] = 1,
|
||||
[9] = 1,
|
||||
[10] = 1,
|
||||
}
|
||||
},
|
||||
|
||||
@ -583,6 +393,7 @@ function nuclear.addFaction()
|
||||
attributes = {},
|
||||
attack = {
|
||||
type = "projectile",
|
||||
force = "enemy",
|
||||
stickerAnimation = {
|
||||
filename = "__base__/graphics/entity/slowdown-sticker/slowdown-sticker.png",
|
||||
priority = "extra-high",
|
||||
@ -607,18 +418,6 @@ function nuclear.addFaction()
|
||||
},
|
||||
resistances = {},
|
||||
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
attackName = "nuclear-worm",
|
||||
tint = {r=0.76, g=0.76, b=0, a=0.65},
|
||||
pTint = {r=0, g=1, b=1, a=0.5},
|
||||
@ -626,49 +425,20 @@ function nuclear.addFaction()
|
||||
},
|
||||
|
||||
{
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 200,
|
||||
[2] = 350,
|
||||
[3] = 500,
|
||||
[4] = 750,
|
||||
[5] = 900,
|
||||
[6] = 1000,
|
||||
[7] = 1500,
|
||||
[8] = 3000,
|
||||
[9] = 5000,
|
||||
[10] = 9000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 50,
|
||||
[2] = 50,
|
||||
[3] = 45,
|
||||
[4] = 45,
|
||||
[5] = 40,
|
||||
[6] = 40,
|
||||
[7] = 35,
|
||||
[8] = 35,
|
||||
[9] = 30,
|
||||
[10] = 30
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "stickerMovementModifier",
|
||||
[1] = 1.2,
|
||||
[2] = 1.2,
|
||||
[3] = 1.3,
|
||||
[4] = 1.3,
|
||||
[5] = 1.4,
|
||||
[6] = 1.4,
|
||||
[7] = 1.5,
|
||||
[8] = 1.5,
|
||||
[9] = 1.6,
|
||||
[10] = 1.6
|
||||
[1] = 0.8,
|
||||
[2] = 0.8,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.6,
|
||||
[6] = 0.6,
|
||||
[7] = 0.5,
|
||||
[8] = 0.5,
|
||||
[9] = 0.4,
|
||||
[10] = 0.4
|
||||
},
|
||||
|
||||
{
|
||||
@ -684,114 +454,7 @@ function nuclear.addFaction()
|
||||
[8] = 2100,
|
||||
[9] = 2200,
|
||||
[10] = 2200
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0,
|
||||
[2] = 0.1,
|
||||
[3] = 0.2,
|
||||
[4] = 0.3,
|
||||
[5] = 0.4,
|
||||
[6] = 0.5,
|
||||
[7] = 0.6,
|
||||
[8] = 0.7,
|
||||
[9] = 0.8,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 12,
|
||||
[2] = 20,
|
||||
[3] = 25,
|
||||
[4] = 30,
|
||||
[5] = 35,
|
||||
[6] = 40,
|
||||
[7] = 50,
|
||||
[8] = 60,
|
||||
[9] = 70,
|
||||
[10] = 80
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "prepareRange",
|
||||
[1] = 30,
|
||||
[2] = 30,
|
||||
[3] = 31,
|
||||
[4] = 31,
|
||||
[5] = 32,
|
||||
[6] = 32,
|
||||
[7] = 33,
|
||||
[8] = 33,
|
||||
[9] = 34,
|
||||
[10] = 34
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "foldingSpeed",
|
||||
[1] = 0.15,
|
||||
[2] = 0.15,
|
||||
[3] = 0.16,
|
||||
[4] = 0.16,
|
||||
[5] = 0.16,
|
||||
[6] = 0.17,
|
||||
[7] = 0.17,
|
||||
[8] = 0.18,
|
||||
[9] = 0.18,
|
||||
[10] = 0.19
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "preparingSpeed",
|
||||
[1] = 0.025,
|
||||
[2] = 0.025,
|
||||
[3] = 0.026,
|
||||
[4] = 0.026,
|
||||
[5] = 0.027,
|
||||
[6] = 0.027,
|
||||
[7] = 0.028,
|
||||
[8] = 0.028,
|
||||
[9] = 0.029,
|
||||
[10] = 0.029
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
@ -849,82 +512,8 @@ function nuclear.addFaction()
|
||||
[9] = 45,
|
||||
[10] = 45
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 21,
|
||||
[2] = 22,
|
||||
[3] = 23,
|
||||
[4] = 23,
|
||||
[5] = 24,
|
||||
[6] = 26,
|
||||
[7] = 26,
|
||||
[8] = 28,
|
||||
[9] = 30,
|
||||
[10] = 32
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 1.5,
|
||||
[2] = 1.6,
|
||||
[3] = 1.7,
|
||||
[4] = 1.8,
|
||||
[5] = 1.9,
|
||||
[6] = 2.0,
|
||||
[7] = 2.2,
|
||||
[8] = 2.3,
|
||||
[9] = 2.5,
|
||||
[10] = 3.0
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
function (attributes)
|
||||
|
@ -112,81 +112,6 @@ function physical.addFaction()
|
||||
[9] = 10000,
|
||||
[10] = 20000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 35,
|
||||
[2] = 35,
|
||||
[3] = 35,
|
||||
[4] = 35,
|
||||
[5] = 35,
|
||||
[6] = 35,
|
||||
[7] = 50,
|
||||
[8] = 50,
|
||||
[9] = 55,
|
||||
[10] = 57
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawningTimeModifer",
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 1,
|
||||
[4] = 2,
|
||||
[5] = 3,
|
||||
[6] = 7,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "pollutionToAttack",
|
||||
[1] = 200,
|
||||
[2] = 750,
|
||||
[3] = 1750,
|
||||
[4] = 3500,
|
||||
[5] = 5000,
|
||||
[6] = 10000,
|
||||
[7] = 20000,
|
||||
[8] = 25000,
|
||||
[9] = 30000,
|
||||
[10] = 40000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 7,
|
||||
[2] = 15,
|
||||
[3] = 22.5,
|
||||
[4] = 35,
|
||||
[5] = 45,
|
||||
[6] = 60,
|
||||
[7] = 75,
|
||||
[8] = 90,
|
||||
[9] = 150,
|
||||
[10] = 200
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
@ -217,35 +142,6 @@ function physical.addFaction()
|
||||
[9] = 0.1,
|
||||
[10] = 0.1
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 0,
|
||||
[4] = 0,
|
||||
[5] = 0,
|
||||
[6] = 0,
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 14,
|
||||
[10] = 15
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 0,
|
||||
[4] = 10,
|
||||
[5] = 12,
|
||||
[6] = 12,
|
||||
[7] = 13,
|
||||
[8] = 13,
|
||||
[9] = 14,
|
||||
[10] = 15
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
@ -274,22 +170,8 @@ function physical.addFaction()
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 0.5,
|
||||
[2] = 0.5,
|
||||
[3] = 0.75,
|
||||
[4] = 0.75,
|
||||
[5] = 1.0,
|
||||
[6] = 1.0,
|
||||
[7] = 1.25,
|
||||
[8] = 1.50,
|
||||
[9] = 1.75,
|
||||
[10] = 2.0
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
unitSpawner = {
|
||||
@ -308,51 +190,6 @@ function physical.addFaction()
|
||||
[10] = 30000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.02,
|
||||
[2] = 0.02,
|
||||
[3] = 0.022,
|
||||
[4] = 0.024,
|
||||
[5] = 0.026,
|
||||
[6] = 0.028,
|
||||
[7] = 0.03,
|
||||
[8] = 0.032,
|
||||
[9] = 0.034,
|
||||
[10] = 0.036
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownStart",
|
||||
[1] = 360,
|
||||
[2] = 360,
|
||||
[3] = 355,
|
||||
[4] = 355,
|
||||
[5] = 350,
|
||||
[6] = 350,
|
||||
[7] = 345,
|
||||
[8] = 345,
|
||||
[9] = 340,
|
||||
[10] = 340
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownEnd",
|
||||
[1] = 150,
|
||||
[2] = 150,
|
||||
[3] = 145,
|
||||
[4] = 145,
|
||||
[5] = 140,
|
||||
[6] = 140,
|
||||
[7] = 135,
|
||||
[8] = 135,
|
||||
[9] = 130,
|
||||
[10] = 130
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
@ -368,94 +205,6 @@ function physical.addFaction()
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "unitsOwned",
|
||||
[1] = 7,
|
||||
[2] = 7,
|
||||
[3] = 8,
|
||||
[4] = 8,
|
||||
[5] = 9,
|
||||
[6] = 9,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 11,
|
||||
[10] = 11
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "unitsToSpawn",
|
||||
[1] = 5,
|
||||
[2] = 5,
|
||||
[3] = 6,
|
||||
[4] = 6,
|
||||
[5] = 7,
|
||||
[6] = 7,
|
||||
[7] = 8,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 5,
|
||||
[2] = 5,
|
||||
[3] = 6,
|
||||
[4] = 6,
|
||||
[5] = 7,
|
||||
[6] = 7,
|
||||
[7] = 8,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "fire",
|
||||
decrease = {
|
||||
[1] = 3,
|
||||
[2] = 3,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 6,
|
||||
[8] = 6,
|
||||
[9] = 7,
|
||||
[10] = 7
|
||||
},
|
||||
percent = {
|
||||
[1] = 60,
|
||||
[2] = 60,
|
||||
[3] = 62,
|
||||
[4] = 62,
|
||||
[5] = 63,
|
||||
[6] = 63,
|
||||
[7] = 64,
|
||||
[8] = 64,
|
||||
[9] = 65,
|
||||
[10] = 65
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
@ -485,19 +234,6 @@ function physical.addFaction()
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
probabilityTable = {
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 1,
|
||||
[5] = 1,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
[8] = 1,
|
||||
[9] = 1,
|
||||
[10] = 1,
|
||||
}
|
||||
},
|
||||
|
||||
@ -576,143 +312,6 @@ function physical.addFaction()
|
||||
[10] = 12000
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 50,
|
||||
[2] = 50,
|
||||
[3] = 45,
|
||||
[4] = 45,
|
||||
[5] = 40,
|
||||
[6] = 40,
|
||||
[7] = 35,
|
||||
[8] = 35,
|
||||
[9] = 30,
|
||||
[10] = 30
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0,
|
||||
[2] = 0.1,
|
||||
[3] = 0.2,
|
||||
[4] = 0.3,
|
||||
[5] = 0.4,
|
||||
[6] = 0.5,
|
||||
[7] = 0.6,
|
||||
[8] = 0.7,
|
||||
[9] = 0.8,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 12,
|
||||
[2] = 20,
|
||||
[3] = 25,
|
||||
[4] = 30,
|
||||
[5] = 35,
|
||||
[6] = 40,
|
||||
[7] = 50,
|
||||
[8] = 60,
|
||||
[9] = 70,
|
||||
[10] = 80
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "prepareRange",
|
||||
[1] = 30,
|
||||
[2] = 30,
|
||||
[3] = 31,
|
||||
[4] = 31,
|
||||
[5] = 32,
|
||||
[6] = 32,
|
||||
[7] = 33,
|
||||
[8] = 33,
|
||||
[9] = 34,
|
||||
[10] = 34
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "foldingSpeed",
|
||||
[1] = 0.15,
|
||||
[2] = 0.15,
|
||||
[3] = 0.16,
|
||||
[4] = 0.16,
|
||||
[5] = 0.16,
|
||||
[6] = 0.17,
|
||||
[7] = 0.17,
|
||||
[8] = 0.18,
|
||||
[9] = 0.18,
|
||||
[10] = 0.19
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "preparingSpeed",
|
||||
[1] = 0.025,
|
||||
[2] = 0.025,
|
||||
[3] = 0.026,
|
||||
[4] = 0.026,
|
||||
[5] = 0.027,
|
||||
[6] = 0.027,
|
||||
[7] = 0.028,
|
||||
[8] = 0.028,
|
||||
[9] = 0.029,
|
||||
[10] = 0.029
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 10,
|
||||
[4] = 10,
|
||||
[5] = 20,
|
||||
[6] = 20,
|
||||
[7] = 30,
|
||||
[8] = 30,
|
||||
[9] = 40,
|
||||
[10] = 40
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
@ -740,121 +339,8 @@ function physical.addFaction()
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
type = "resistance",
|
||||
name = "fire",
|
||||
decrease = {
|
||||
[1] = 3,
|
||||
[2] = 3,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 6,
|
||||
[8] = 6,
|
||||
[9] = 7,
|
||||
[10] = 7
|
||||
},
|
||||
percent = {
|
||||
[1] = 70,
|
||||
[2] = 70,
|
||||
[3] = 72,
|
||||
[4] = 72,
|
||||
[5] = 73,
|
||||
[6] = 73,
|
||||
[7] = 74,
|
||||
[8] = 74,
|
||||
[9] = 75,
|
||||
[10] = 75
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 21,
|
||||
[2] = 22,
|
||||
[3] = 23,
|
||||
[4] = 23,
|
||||
[5] = 24,
|
||||
[6] = 26,
|
||||
[7] = 26,
|
||||
[8] = 28,
|
||||
[9] = 30,
|
||||
[10] = 32
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 1.5,
|
||||
[2] = 1.6,
|
||||
[3] = 1.7,
|
||||
[4] = 1.8,
|
||||
[5] = 1.9,
|
||||
[6] = 2.0,
|
||||
[7] = 2.2,
|
||||
[8] = 2.3,
|
||||
[9] = 2.5,
|
||||
[10] = 3.0
|
||||
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
function (attributes)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -60,18 +60,6 @@ function suicide.addFaction()
|
||||
resistances = {},
|
||||
|
||||
type = "biter",
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
tint1 = {r=0.56, g=0.46, b=0, a=0.65},
|
||||
tint2 = {r=0.56, g=0.46, b=0, a=0.65}
|
||||
},
|
||||
@ -82,18 +70,6 @@ function suicide.addFaction()
|
||||
loot = spawnerLoot,
|
||||
attributes = {},
|
||||
resistances = {},
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1.0,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
tint = {r=0.56, g=0.46, b=0, a=0.65}
|
||||
}
|
||||
},
|
||||
@ -101,7 +77,6 @@ function suicide.addFaction()
|
||||
{
|
||||
unit = {
|
||||
{
|
||||
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 7,
|
||||
@ -114,23 +89,6 @@ function suicide.addFaction()
|
||||
[8] = 1500,
|
||||
[9] = 3000,
|
||||
[10] = 5000
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 35,
|
||||
[2] = 35,
|
||||
[3] = 35,
|
||||
[4] = 35,
|
||||
[5] = 35,
|
||||
[6] = 35,
|
||||
[7] = 50,
|
||||
[8] = 50,
|
||||
[9] = 55,
|
||||
[10] = 57
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
@ -145,29 +103,10 @@ function suicide.addFaction()
|
||||
[7] = 6,
|
||||
[8] = 6,
|
||||
[9] = 8,
|
||||
[10] = 8
|
||||
|
||||
[10] = 8
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
type = "attribute",
|
||||
name = "pollutionToAttack",
|
||||
[1] = 200,
|
||||
[2] = 750,
|
||||
[3] = 1750,
|
||||
[4] = 3500,
|
||||
[5] = 5000,
|
||||
[6] = 10000,
|
||||
[7] = 20000,
|
||||
[8] = 25000,
|
||||
[9] = 30000,
|
||||
[10] = 40000
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
mapping = "explosion",
|
||||
[1] = "explosion",
|
||||
@ -182,8 +121,7 @@ function suicide.addFaction()
|
||||
[10] = "massive-explosion"
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 3.5,
|
||||
@ -195,12 +133,10 @@ function suicide.addFaction()
|
||||
[7] = 7,
|
||||
[8] = 7,
|
||||
[9] = 7.5,
|
||||
[10] = 8
|
||||
|
||||
[10] = 8
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "explosionDistance",
|
||||
[1] = 2,
|
||||
@ -212,12 +148,10 @@ function suicide.addFaction()
|
||||
[7] = 2.5,
|
||||
[8] = 2.5,
|
||||
[9] = 3,
|
||||
[10] = 3
|
||||
|
||||
[10] = 3
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "explosionCount",
|
||||
min = 2,
|
||||
@ -230,12 +164,10 @@ function suicide.addFaction()
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 13,
|
||||
[10] = 14
|
||||
|
||||
[10] = 14
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 20,
|
||||
@ -247,29 +179,10 @@ function suicide.addFaction()
|
||||
[7] = 75,
|
||||
[8] = 80,
|
||||
[9] = 100,
|
||||
[10] = 150
|
||||
|
||||
[10] = 150
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "movement",
|
||||
[1] = 0.23,
|
||||
@ -298,35 +211,6 @@ function suicide.addFaction()
|
||||
[10] = 0.24
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 4,
|
||||
[4] = 5,
|
||||
[5] = 6,
|
||||
[6] = 8,
|
||||
[7] = 9,
|
||||
[8] = 9,
|
||||
[9] = 10,
|
||||
[10] = 10
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 0,
|
||||
[4] = 10,
|
||||
[5] = 12,
|
||||
[6] = 12,
|
||||
[7] = 13,
|
||||
[8] = 13,
|
||||
[9] = 14,
|
||||
[10] = 15
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
@ -354,58 +238,12 @@ function suicide.addFaction()
|
||||
[9] = -90,
|
||||
[10] = -90
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 0.5,
|
||||
[2] = 0.5,
|
||||
[3] = 0.75,
|
||||
[4] = 0.75,
|
||||
[5] = 1.0,
|
||||
[6] = 1.0,
|
||||
[7] = 1.25,
|
||||
[8] = 1.50,
|
||||
[9] = 1.75,
|
||||
[10] = 2.0
|
||||
}
|
||||
},
|
||||
|
||||
unitSpawner = {
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 350,
|
||||
[2] = 500,
|
||||
[3] = 750,
|
||||
[4] = 1500,
|
||||
[5] = 2500,
|
||||
[6] = 3500,
|
||||
[7] = 5000,
|
||||
[8] = 7000,
|
||||
[9] = 10000,
|
||||
[10] = 15000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.02,
|
||||
[2] = 0.02,
|
||||
[3] = 0.022,
|
||||
[4] = 0.024,
|
||||
[5] = 0.026,
|
||||
[6] = 0.028,
|
||||
[7] = 0.03,
|
||||
[8] = 0.032,
|
||||
[9] = 0.034,
|
||||
[10] = 0.036
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownStart",
|
||||
[1] = 330,
|
||||
@ -420,8 +258,7 @@ function suicide.addFaction()
|
||||
[10] = 310
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownEnd",
|
||||
[1] = 120,
|
||||
@ -480,35 +317,6 @@ function suicide.addFaction()
|
||||
[9] = 7,
|
||||
[10] = 8
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 2,
|
||||
[2] = 2,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 12,
|
||||
[10] = 14
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
@ -567,19 +375,6 @@ function suicide.addFaction()
|
||||
[10] = 45
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
probabilityTable = {
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 1,
|
||||
[5] = 1,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
[8] = 1,
|
||||
[9] = 1,
|
||||
[10] = 1,
|
||||
}
|
||||
},
|
||||
|
||||
@ -605,6 +400,7 @@ function suicide.addFaction()
|
||||
attributes = {},
|
||||
attack = {
|
||||
type = "projectile",
|
||||
force = "enemy",
|
||||
stickerAnimation = {
|
||||
filename = "__base__/graphics/entity/slowdown-sticker/slowdown-sticker.png",
|
||||
priority = "extra-high",
|
||||
@ -629,68 +425,27 @@ function suicide.addFaction()
|
||||
},
|
||||
resistances = {},
|
||||
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
attackName = "suicide-worm",
|
||||
tint = {r=0.56, g=0.46, b=0, a=0.65},
|
||||
pTint = {r=0, g=1, b=1, a=0.5},
|
||||
sTint = {r=0, g=1, b=1, a=0.5}
|
||||
},
|
||||
|
||||
{
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 200,
|
||||
[2] = 350,
|
||||
[3] = 500,
|
||||
[4] = 750,
|
||||
[5] = 900,
|
||||
[6] = 1000,
|
||||
[7] = 1500,
|
||||
[8] = 3000,
|
||||
[9] = 5000,
|
||||
[10] = 9000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 50,
|
||||
[2] = 50,
|
||||
[3] = 45,
|
||||
[4] = 45,
|
||||
[5] = 40,
|
||||
[6] = 40,
|
||||
[7] = 35,
|
||||
[8] = 35,
|
||||
[9] = 30,
|
||||
[10] = 30
|
||||
},
|
||||
{
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "stickerMovementModifier",
|
||||
[1] = 1.2,
|
||||
[2] = 1.2,
|
||||
[3] = 1.3,
|
||||
[4] = 1.3,
|
||||
[5] = 1.4,
|
||||
[6] = 1.4,
|
||||
[7] = 1.5,
|
||||
[8] = 1.5,
|
||||
[9] = 1.6,
|
||||
[10] = 1.6
|
||||
[1] = 0.8,
|
||||
[2] = 0.8,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.6,
|
||||
[6] = 0.6,
|
||||
[7] = 0.5,
|
||||
[8] = 0.5,
|
||||
[9] = 0.4,
|
||||
[10] = 0.4
|
||||
},
|
||||
|
||||
{
|
||||
@ -706,114 +461,7 @@ function suicide.addFaction()
|
||||
[8] = 2100,
|
||||
[9] = 2200,
|
||||
[10] = 2200
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0,
|
||||
[2] = 0.1,
|
||||
[3] = 0.2,
|
||||
[4] = 0.3,
|
||||
[5] = 0.4,
|
||||
[6] = 0.5,
|
||||
[7] = 0.6,
|
||||
[8] = 0.7,
|
||||
[9] = 0.8,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 12,
|
||||
[2] = 20,
|
||||
[3] = 25,
|
||||
[4] = 30,
|
||||
[5] = 35,
|
||||
[6] = 40,
|
||||
[7] = 50,
|
||||
[8] = 60,
|
||||
[9] = 70,
|
||||
[10] = 80
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "prepareRange",
|
||||
[1] = 30,
|
||||
[2] = 30,
|
||||
[3] = 31,
|
||||
[4] = 31,
|
||||
[5] = 32,
|
||||
[6] = 32,
|
||||
[7] = 33,
|
||||
[8] = 33,
|
||||
[9] = 34,
|
||||
[10] = 34
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "foldingSpeed",
|
||||
[1] = 0.15,
|
||||
[2] = 0.15,
|
||||
[3] = 0.16,
|
||||
[4] = 0.16,
|
||||
[5] = 0.16,
|
||||
[6] = 0.17,
|
||||
[7] = 0.17,
|
||||
[8] = 0.18,
|
||||
[9] = 0.18,
|
||||
[10] = 0.19
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "preparingSpeed",
|
||||
[1] = 0.025,
|
||||
[2] = 0.025,
|
||||
[3] = 0.026,
|
||||
[4] = 0.026,
|
||||
[5] = 0.027,
|
||||
[6] = 0.027,
|
||||
[7] = 0.028,
|
||||
[8] = 0.028,
|
||||
[9] = 0.029,
|
||||
[10] = 0.029
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
@ -871,81 +519,6 @@ function suicide.addFaction()
|
||||
[9] = 45,
|
||||
[10] = 45
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 21,
|
||||
[2] = 22,
|
||||
[3] = 23,
|
||||
[4] = 23,
|
||||
[5] = 24,
|
||||
[6] = 26,
|
||||
[7] = 26,
|
||||
[8] = 28,
|
||||
[9] = 30,
|
||||
[10] = 32
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 1.5,
|
||||
[2] = 1.6,
|
||||
[3] = 1.7,
|
||||
[4] = 1.8,
|
||||
[5] = 1.9,
|
||||
[6] = 2.0,
|
||||
[7] = 2.2,
|
||||
[8] = 2.3,
|
||||
[9] = 2.5,
|
||||
[10] = 3.0
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
}
|
||||
},
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
1127
prototypes/Troll.lua
1127
prototypes/Troll.lua
File diff suppressed because it is too large
Load Diff
@ -157,6 +157,7 @@ local function generateLocal()
|
||||
print("wasp-spitter-v" .. v .. "-t" .. t .. "-rampant=" .. name .. " spitter: " .. size .. " class")
|
||||
print("wasp-spitter-nest-v" .. v .. "-t" .. t .. "-rampant=" .. name .. " spitter nest: " .. size .. " class")
|
||||
print("wasp-worm-v" .. v .. "-t" .. t .. "-rampant=" .. name .. " worm: " .. size .. " class")
|
||||
print("wasp-worm-drone-v" .. v .. "-t" .. t .. "-drone-rampant=" .. name .. ": " .. size .. " class")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -177,22 +177,6 @@ buildUnits(
|
||||
[10] = 40
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "movement",
|
||||
@ -265,52 +249,8 @@ buildUnits(
|
||||
[8] = 1.9,
|
||||
[9] = 2.0,
|
||||
[10] = 2.5
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
}
|
||||
|
||||
},
|
||||
WASP_UNIT_VARIATIONS,
|
||||
WASP_UNIT_TIERS
|
||||
@ -462,22 +402,6 @@ buildUnits(
|
||||
[10] = 14
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "movement",
|
||||
@ -535,52 +459,8 @@ buildUnits(
|
||||
[8] = 1.9,
|
||||
[9] = 2.0,
|
||||
[10] = 2.5
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
}
|
||||
|
||||
},
|
||||
WASP_WORM_VARIATIONS,
|
||||
WASP_WORM_TIERS
|
||||
@ -606,18 +486,6 @@ buildUnitSpawner(
|
||||
resistances = {},
|
||||
|
||||
type = "spitter",
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
attackName = "wasp-drone",
|
||||
tint = {r=1, g=1, b=0, a=1},
|
||||
pTint = {r=0, g=1, b=1, a=0.5},
|
||||
@ -631,441 +499,17 @@ buildUnitSpawner(
|
||||
attributes = {},
|
||||
resistances = {},
|
||||
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1.0,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
tint = {r=1, g=1, b=0, a=1}
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
unit = {
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 10,
|
||||
[2] = 50,
|
||||
[3] = 200,
|
||||
[4] = 350,
|
||||
[5] = 750,
|
||||
[6] = 1000,
|
||||
[7] = 1500,
|
||||
[8] = 2500,
|
||||
[9] = 4500,
|
||||
[10] = 7000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 100,
|
||||
[2] = 100,
|
||||
[3] = 97,
|
||||
[4] = 97,
|
||||
[5] = 95,
|
||||
[6] = 95,
|
||||
[7] = 93,
|
||||
[8] = 93,
|
||||
[9] = 90,
|
||||
[10] = 90
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawningTimeModifer",
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 1,
|
||||
[4] = 2,
|
||||
[5] = 3,
|
||||
[6] = 7,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "pollutionToAttack",
|
||||
[1] = 200,
|
||||
[2] = 750,
|
||||
[3] = 1200,
|
||||
[4] = 1750,
|
||||
[5] = 2500,
|
||||
[6] = 5000,
|
||||
[7] = 10000,
|
||||
[8] = 12500,
|
||||
[9] = 15000,
|
||||
[10] = 20000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 4,
|
||||
[2] = 9,
|
||||
[3] = 14,
|
||||
[4] = 23,
|
||||
[5] = 30,
|
||||
[6] = 37,
|
||||
[7] = 45,
|
||||
[8] = 57,
|
||||
[9] = 70,
|
||||
[10] = 80
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "movement",
|
||||
[1] = 0.185,
|
||||
[2] = 0.18,
|
||||
[3] = 0.18,
|
||||
[4] = 0.17,
|
||||
[5] = 0.17,
|
||||
[6] = 0.16,
|
||||
[7] = 0.16,
|
||||
[8] = 0.15,
|
||||
[9] = 0.15,
|
||||
[10] = 0.14
|
||||
},
|
||||
{
|
||||
type = "attribute",
|
||||
name = "distancePerFrame",
|
||||
[1] = 0.04,
|
||||
[2] = 0.045,
|
||||
[3] = 0.050,
|
||||
[4] = 0.055,
|
||||
[5] = 0.060,
|
||||
[6] = 0.065,
|
||||
[7] = 0.070,
|
||||
[8] = 0.075,
|
||||
[9] = 0.08,
|
||||
[10] = 0.084
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 10,
|
||||
[4] = 10,
|
||||
[5] = 20,
|
||||
[6] = 20,
|
||||
[7] = 30,
|
||||
[8] = 30,
|
||||
[9] = 40,
|
||||
[10] = 40
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 13,
|
||||
[2] = 13,
|
||||
[3] = 14,
|
||||
[4] = 14,
|
||||
[5] = 15,
|
||||
[6] = 15,
|
||||
[7] = 16,
|
||||
[8] = 16,
|
||||
[9] = 17,
|
||||
[10] = 17
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 1.2,
|
||||
[2] = 1.3,
|
||||
[3] = 1.4,
|
||||
[4] = 1.5,
|
||||
[5] = 1.6,
|
||||
[6] = 1.7,
|
||||
[7] = 1.8,
|
||||
[8] = 1.9,
|
||||
[9] = 2.0,
|
||||
[10] = 2.5
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
}
|
||||
unit = {
|
||||
|
||||
},
|
||||
|
||||
unitSpawner = {
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 350,
|
||||
[2] = 500,
|
||||
[3] = 750,
|
||||
[4] = 1500,
|
||||
[5] = 2500,
|
||||
[6] = 3500,
|
||||
[7] = 5000,
|
||||
[8] = 7000,
|
||||
[9] = 10000,
|
||||
[10] = 15000
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.02,
|
||||
[2] = 0.02,
|
||||
[3] = 0.022,
|
||||
[4] = 0.024,
|
||||
[5] = 0.026,
|
||||
[6] = 0.028,
|
||||
[7] = 0.03,
|
||||
[8] = 0.032,
|
||||
[9] = 0.034,
|
||||
[10] = 0.036
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownStart",
|
||||
[1] = 360,
|
||||
[2] = 360,
|
||||
[3] = 355,
|
||||
[4] = 355,
|
||||
[5] = 350,
|
||||
[6] = 350,
|
||||
[7] = 345,
|
||||
[8] = 345,
|
||||
[9] = 340,
|
||||
[10] = 340
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "spawingCooldownEnd",
|
||||
[1] = 150,
|
||||
[2] = 150,
|
||||
[3] = 145,
|
||||
[4] = 145,
|
||||
[5] = 140,
|
||||
[6] = 140,
|
||||
[7] = 135,
|
||||
[8] = 135,
|
||||
[9] = 130,
|
||||
[10] = 130
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0.08,
|
||||
[2] = 0.16,
|
||||
[3] = 0.24,
|
||||
[4] = 0.35,
|
||||
[5] = 0.40,
|
||||
[6] = 0.45,
|
||||
[7] = 0.55,
|
||||
[8] = 0.65,
|
||||
[9] = 0.75,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "unitsOwned",
|
||||
[1] = 7,
|
||||
[2] = 7,
|
||||
[3] = 8,
|
||||
[4] = 8,
|
||||
[5] = 9,
|
||||
[6] = 9,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 11,
|
||||
[10] = 11
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "unitsToSpawn",
|
||||
[1] = 5,
|
||||
[2] = 5,
|
||||
[3] = 6,
|
||||
[4] = 6,
|
||||
[5] = 7,
|
||||
[6] = 7,
|
||||
[7] = 8,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 2,
|
||||
[2] = 2,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 10,
|
||||
[8] = 12,
|
||||
[9] = 12,
|
||||
[10] = 14
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 5,
|
||||
[2] = 5,
|
||||
[3] = 6,
|
||||
[4] = 6,
|
||||
[5] = 7,
|
||||
[6] = 7,
|
||||
[7] = 8,
|
||||
[8] = 8,
|
||||
[9] = 9,
|
||||
[10] = 9
|
||||
},
|
||||
percent = {
|
||||
[1] = 15,
|
||||
[2] = 15,
|
||||
[3] = 17,
|
||||
[4] = 17,
|
||||
[5] = 18,
|
||||
[6] = 18,
|
||||
[7] = 19,
|
||||
[8] = 19,
|
||||
[9] = 20,
|
||||
[10] = 20
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "resistance",
|
||||
name = "fire",
|
||||
decrease = {
|
||||
[1] = 3,
|
||||
[2] = 3,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 6,
|
||||
[8] = 6,
|
||||
[9] = 7,
|
||||
[10] = 7
|
||||
},
|
||||
percent = {
|
||||
[1] = 60,
|
||||
[2] = 60,
|
||||
[3] = 62,
|
||||
[4] = 62,
|
||||
[5] = 63,
|
||||
[6] = 63,
|
||||
[7] = 64,
|
||||
[8] = 64,
|
||||
[9] = 65,
|
||||
[10] = 65
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
probabilityTable = {
|
||||
[1] = 1,
|
||||
[2] = 1,
|
||||
[3] = 1,
|
||||
[4] = 1,
|
||||
[5] = 1,
|
||||
[6] = 1,
|
||||
[7] = 1,
|
||||
[8] = 1,
|
||||
[9] = 1,
|
||||
[10] = 1,
|
||||
}
|
||||
},
|
||||
|
||||
@ -1103,294 +547,14 @@ buildWorm(
|
||||
},
|
||||
resistances = {},
|
||||
|
||||
scales = {
|
||||
[1] = 0.5,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.8,
|
||||
[5] = 0.9,
|
||||
[6] = 1,
|
||||
[7] = 1.1,
|
||||
[8] = 1.2,
|
||||
[9] = 1.3,
|
||||
[10] = 1.4
|
||||
},
|
||||
attackName = "wasp-worm-drone",
|
||||
tint = {r=1, g=1, b=0, a=1},
|
||||
pTint = {r=0, g=1, b=1, a=0.5},
|
||||
sTint = {r=0, g=1, b=1, a=0.5}
|
||||
},
|
||||
|
||||
{
|
||||
{
|
||||
type = "attribute",
|
||||
name = "health",
|
||||
[1] = 200,
|
||||
[2] = 350,
|
||||
[3] = 500,
|
||||
[4] = 750,
|
||||
[5] = 900,
|
||||
[6] = 1000,
|
||||
[7] = 1500,
|
||||
[8] = 3000,
|
||||
[9] = 5000,
|
||||
[10] = 9000
|
||||
},
|
||||
{
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "cooldown",
|
||||
[1] = 50,
|
||||
[2] = 50,
|
||||
[3] = 45,
|
||||
[4] = 45,
|
||||
[5] = 40,
|
||||
[6] = 40,
|
||||
[7] = 35,
|
||||
[8] = 35,
|
||||
[9] = 30,
|
||||
[10] = 30
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "evolutionRequirement",
|
||||
[1] = 0,
|
||||
[2] = 0.1,
|
||||
[3] = 0.2,
|
||||
[4] = 0.3,
|
||||
[5] = 0.4,
|
||||
[6] = 0.5,
|
||||
[7] = 0.6,
|
||||
[8] = 0.7,
|
||||
[9] = 0.8,
|
||||
[10] = 0.9
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "damage",
|
||||
[1] = 12,
|
||||
[2] = 20,
|
||||
[3] = 25,
|
||||
[4] = 30,
|
||||
[5] = 35,
|
||||
[6] = 40,
|
||||
[7] = 50,
|
||||
[8] = 60,
|
||||
[9] = 70,
|
||||
[10] = 80
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "healing",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.015,
|
||||
[4] = 0.02,
|
||||
[5] = 0.05,
|
||||
[6] = 0.075,
|
||||
[7] = 0.1,
|
||||
[8] = 0.12,
|
||||
[9] = 0.14,
|
||||
[10] = 0.16
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "prepareRange",
|
||||
[1] = 30,
|
||||
[2] = 30,
|
||||
[3] = 31,
|
||||
[4] = 31,
|
||||
[5] = 32,
|
||||
[6] = 32,
|
||||
[7] = 33,
|
||||
[8] = 33,
|
||||
[9] = 34,
|
||||
[10] = 34
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "foldingSpeed",
|
||||
[1] = 0.15,
|
||||
[2] = 0.15,
|
||||
[3] = 0.16,
|
||||
[4] = 0.16,
|
||||
[5] = 0.16,
|
||||
[6] = 0.17,
|
||||
[7] = 0.17,
|
||||
[8] = 0.18,
|
||||
[9] = 0.18,
|
||||
[10] = 0.19
|
||||
},
|
||||
|
||||
{
|
||||
type = "attribute",
|
||||
name = "preparingSpeed",
|
||||
[1] = 0.025,
|
||||
[2] = 0.025,
|
||||
[3] = 0.026,
|
||||
[4] = 0.026,
|
||||
[5] = 0.027,
|
||||
[6] = 0.027,
|
||||
[7] = 0.028,
|
||||
[8] = 0.028,
|
||||
[9] = 0.029,
|
||||
[10] = 0.029
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "physical",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "explosion",
|
||||
decrease = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 5,
|
||||
[4] = 5,
|
||||
[5] = 8,
|
||||
[6] = 8,
|
||||
[7] = 10,
|
||||
[8] = 10,
|
||||
[9] = 12,
|
||||
[10] = 12
|
||||
},
|
||||
percent = {
|
||||
[1] = 0,
|
||||
[2] = 0,
|
||||
[3] = 10,
|
||||
[4] = 10,
|
||||
[5] = 20,
|
||||
[6] = 20,
|
||||
[7] = 30,
|
||||
[8] = 30,
|
||||
[9] = 40,
|
||||
[10] = 40
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "resistance",
|
||||
name = "fire",
|
||||
decrease = {
|
||||
[1] = 3,
|
||||
[2] = 3,
|
||||
[3] = 4,
|
||||
[4] = 4,
|
||||
[5] = 6,
|
||||
[6] = 6,
|
||||
[7] = 6,
|
||||
[8] = 6,
|
||||
[9] = 7,
|
||||
[10] = 7
|
||||
},
|
||||
percent = {
|
||||
[1] = 70,
|
||||
[2] = 70,
|
||||
[3] = 72,
|
||||
[4] = 72,
|
||||
[5] = 73,
|
||||
[6] = 73,
|
||||
[7] = 74,
|
||||
[8] = 74,
|
||||
[9] = 75,
|
||||
[10] = 75
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "range",
|
||||
[1] = 21,
|
||||
[2] = 22,
|
||||
[3] = 23,
|
||||
[4] = 23,
|
||||
[5] = 24,
|
||||
[6] = 26,
|
||||
[7] = 26,
|
||||
[8] = 28,
|
||||
[9] = 30,
|
||||
[10] = 32
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "radius",
|
||||
[1] = 1.5,
|
||||
[2] = 1.6,
|
||||
[3] = 1.7,
|
||||
[4] = 1.8,
|
||||
[5] = 1.9,
|
||||
[6] = 2.0,
|
||||
[7] = 2.2,
|
||||
[8] = 2.3,
|
||||
[9] = 2.5,
|
||||
[10] = 3.0
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleVerticalAcceleration",
|
||||
[1] = 0.01,
|
||||
[2] = 0.01,
|
||||
[3] = 0.02,
|
||||
[4] = 0.02,
|
||||
[5] = 0.03,
|
||||
[6] = 0.03,
|
||||
[7] = 0.04,
|
||||
[8] = 0.04,
|
||||
[9] = 0.05,
|
||||
[10] = 0.05
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeed",
|
||||
[1] = 0.6,
|
||||
[2] = 0.6,
|
||||
[3] = 0.7,
|
||||
[4] = 0.7,
|
||||
[5] = 0.8,
|
||||
[6] = 0.8,
|
||||
[7] = 0.9,
|
||||
[8] = 0.9,
|
||||
[9] = 1,
|
||||
[10] = 1
|
||||
},
|
||||
|
||||
{
|
||||
type = "attack",
|
||||
name = "particleHoizontalSpeedDeviation",
|
||||
[1] = 0.0025,
|
||||
[2] = 0.0025,
|
||||
[3] = 0.0024,
|
||||
[4] = 0.0024,
|
||||
[5] = 0.0023,
|
||||
[6] = 0.0023,
|
||||
[7] = 0.0022,
|
||||
[8] = 0.0022,
|
||||
[9] = 0.0021,
|
||||
[10] = 0.0021
|
||||
}
|
||||
},
|
||||
|
||||
function (attributes)
|
||||
|
@ -35,7 +35,7 @@ function AttackBall.createAttackBall(attributes)
|
||||
local templateArea = {
|
||||
type = "area",
|
||||
radius = attributes.radius,
|
||||
force = (DISALLOW_FRIENDLY_FIRE and "enemy") or nil,
|
||||
force = (DISALLOW_FRIENDLY_FIRE and "enemy") or attributes.force or nil,
|
||||
action_delivery = (attributes.areaActionDelivery and attributes.areaActionDelivery(attributes)) or
|
||||
{
|
||||
{
|
||||
|
@ -113,7 +113,7 @@ function biterFunctions.makeBiter(name, biterAttributes, biterAttack, biterResis
|
||||
v.type = k
|
||||
resistances[#resistances+1] = v
|
||||
end
|
||||
|
||||
-- print(name .. " " .. biterAttributes.health)
|
||||
return {
|
||||
type = "unit",
|
||||
name = name .. "-rampant",
|
||||
@ -153,7 +153,7 @@ function biterFunctions.makeSpitter(name, biterAttributes, biterAttack, biterRes
|
||||
v.type = k
|
||||
resistances[#resistances+1] = v
|
||||
end
|
||||
|
||||
-- print(name .. " " .. biterAttributes.health)
|
||||
return {
|
||||
type = "unit",
|
||||
name = name .. "-rampant",
|
||||
@ -193,7 +193,7 @@ function biterFunctions.makeUnitSpawner(name, biterAttributes, biterResistances,
|
||||
v.type = k
|
||||
resistances[#resistances+1] = v
|
||||
end
|
||||
|
||||
-- print(name .. " " .. biterAttributes.health)
|
||||
local o = {
|
||||
type = "unit-spawner",
|
||||
name = name .. "-rampant",
|
||||
@ -265,7 +265,7 @@ function biterFunctions.makeWorm(name, attributes, attack, wormResistances)
|
||||
v.type = k
|
||||
resistances[#resistances+1] = v
|
||||
end
|
||||
|
||||
-- print(name .. " " .. attributes.health)
|
||||
local o = {
|
||||
type = "turret",
|
||||
name = name .. "-rampant",
|
||||
|
48
tests.lua
48
tests.lua
@ -100,8 +100,8 @@ function tests.entitiesOnPlayerChunk()
|
||||
local chunkX = math.floor(playerPosition.x * 0.03125) * 32
|
||||
local chunkY = math.floor(playerPosition.y * 0.03125) * 32
|
||||
local entities = game.surfaces[global.natives.activeSurface].find_entities_filtered({area={{chunkX, chunkY},
|
||||
{chunkX + constants.CHUNK_SIZE, chunkY + constants.CHUNK_SIZE}},
|
||||
force="player"})
|
||||
{chunkX + constants.CHUNK_SIZE, chunkY + constants.CHUNK_SIZE}},
|
||||
force="player"})
|
||||
for i=1, #entities do
|
||||
print(entities[i].name)
|
||||
end
|
||||
@ -113,8 +113,8 @@ function tests.findNearestPlayerEnemy()
|
||||
local chunkX = math.floor(playerPosition.x * 0.03125) * 32
|
||||
local chunkY = math.floor(playerPosition.y * 0.03125) * 32
|
||||
local entity = game.surfaces[global.natives.activeSurface].find_nearest_enemy({position={chunkX, chunkY},
|
||||
max_distance=constants.CHUNK_SIZE,
|
||||
force = "enemy"})
|
||||
max_distance=constants.CHUNK_SIZE,
|
||||
force = "enemy"})
|
||||
if (entity ~= nil) then
|
||||
print(entity.name)
|
||||
end
|
||||
@ -175,7 +175,7 @@ end
|
||||
|
||||
function tests.attackOrigin()
|
||||
local enemy = game.surfaces[global.natives.activeSurface].find_nearest_enemy({position={0,0},
|
||||
max_distance = 1000})
|
||||
max_distance = 1000})
|
||||
if (enemy ~= nil) and enemy.valid then
|
||||
print(enemy, enemy.unit_number)
|
||||
enemy.set_command({type=defines.command.attack_area,
|
||||
@ -393,6 +393,36 @@ function tests.exportAiState()
|
||||
end
|
||||
end
|
||||
|
||||
function tests.createEnergyTest(x)
|
||||
local entity = tests.createEnemy(x)
|
||||
|
||||
local playerPosition = game.players[1].position
|
||||
local chunkX = math.floor(playerPosition.x * 0.03125) * 32
|
||||
local chunkY = math.floor(playerPosition.y * 0.03125) * 32
|
||||
local entities = game.surfaces[global.natives.activeSurface].find_entities_filtered({area={{chunkX, chunkY},
|
||||
{chunkX + constants.CHUNK_SIZE, chunkY + constants.CHUNK_SIZE}},
|
||||
type = "electric-pole",
|
||||
force="player"})
|
||||
-- for i=1, #entities do
|
||||
-- print(entities[i].name)
|
||||
-- end
|
||||
local wires
|
||||
|
||||
if #entities > 0 then
|
||||
entity.connect_neighbour(entities[1])
|
||||
end
|
||||
|
||||
-- if wires then
|
||||
-- for connectType,neighbourGroup in pairs(wires) do
|
||||
-- if connectType == "copper" then
|
||||
-- for _,v in pairs(neighbourGroup) do
|
||||
-- ;
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
end
|
||||
|
||||
function tests.unitGroupBuild()
|
||||
local surface = game.surfaces[global.natives.activeSurface]
|
||||
local group = surface.create_unit_group({position={-32, -32}})
|
||||
@ -402,10 +432,10 @@ function tests.unitGroupBuild()
|
||||
end
|
||||
|
||||
group.set_command({
|
||||
type = defines.command.build_base,
|
||||
destination = {-64, -64},
|
||||
distraction = defines.distraction.by_enemy,
|
||||
ignore_planner = true
|
||||
type = defines.command.build_base,
|
||||
destination = {-64, -64},
|
||||
distraction = defines.distraction.by_enemy,
|
||||
ignore_planner = true
|
||||
})
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user