Skip to content

Commit

Permalink
NE Enemies 0.17.6 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSAguy committed Mar 21, 2019
1 parent 3efbfff commit 1662f19
Show file tree
Hide file tree
Showing 13 changed files with 93 additions and 163 deletions.
11 changes: 6 additions & 5 deletions Natural_Evolution_Enemies/Test_Spawn.lua
Expand Up @@ -4,7 +4,7 @@
function Test_Spawn()

local surface = game.surfaces['nauvis']

--[[
for i = 1, 20 do
--surface.create_entity({name="ne-spawner-red", position={-15, 0}, force = game.forces.player})
Expand All @@ -20,12 +20,13 @@
surface.create_entity({name="ne-spitter-webshooter-" .. i, position={5 + i, -5}, force = game.forces.player})
surface.create_entity({name="ne-spitter-mine-" .. i, position={5 + i, -10}, force = game.forces.player})

]]

--surface.create_entity({name="small-worm-turret", position={-30, -35}, force = game.forces.enemy})
--surface.create_entity({name="medium-worm-turret", position={-30, -30}, force = game.forces.enemy})
--surface.create_entity({name="big-worm-turret", position={-15, -15}, force = game.forces.enemy})

end
surface.create_entity({name="big-worm-turret", position={-30, -15}, force = game.forces.enemy})
--surface.create_entity({name="behemoth-worm-turret", position={-30, -25}, force = game.forces.enemy})
--end
--local megalodon = surface.create_entity({name="ne-biter-megalodon", position={-15, -15}, force = game.forces.enemy})
--megalodon.health = 1000
--megalodon.resistances = {{type = "physical", percent = 2}}
Expand Down
7 changes: 7 additions & 0 deletions Natural_Evolution_Enemies/changelog.txt
@@ -1,4 +1,11 @@
---------------------------------------------------------------------------------------------------
Version: 0.17.6
Date: 3. 22. 2019
Features:
- Added Setting for Starting Evolution
- Updated Worm Stats
- Scorched Earth now causes fire on last level
---------------------------------------------------------------------------------------------------
Version: 0.17.5
Date: 3. 18. 2019
Features:
Expand Down
33 changes: 29 additions & 4 deletions Natural_Evolution_Enemies/control.lua
@@ -1,10 +1,11 @@
--ENEMIES v.0.17.4
--ENEMIES v.0.17.6
local QC_Mod = false

if not NE_Enemies then NE_Enemies = {} end
if not NE_Enemies.Settings then NE_Enemies.Settings = {} end

NE_Enemies.Settings.NE_Difficulty = settings.startup["NE_Difficulty"].value
NE_Enemies.Settings.NE_Starting_Evolution = settings.startup["NE_Starting_Evolution"].value

require ("util")
require ("stdlib/event/event")
Expand Down Expand Up @@ -486,6 +487,15 @@ end
---------------------------------------------
local function On_Init()

--- Set Initial Evolution Factor
if NE_Enemies.Settings.NE_Starting_Evolution then

game.forces.enemy.evolution_factor = (NE_Enemies.Settings.NE_Starting_Evolution / 100)
if game.forces.enemy.evolution_factor > 1 then
game.forces.enemy.evolution_factor = 1
end

end

--- Used for Unit Turrets
if not global.tick then
Expand Down Expand Up @@ -685,6 +695,7 @@ function Remove_Trees(entity)
end
end


--------------------- TRIGGERS ---------------------------------
script.on_event(defines.events.on_trigger_created_entity, function(event)

Expand Down Expand Up @@ -803,6 +814,7 @@ local function On_Built(event)

end


---------------------------------------------
local function On_Remove(event)

Expand Down Expand Up @@ -1230,9 +1242,16 @@ local function On_Death(event)
--- Cause Fire
if entity.name == "ne-spawner-red" then
writeDebug("Was a Fire Spawner")
surface.create_entity({name="ne-fire-flame-3", position = pos, force = "enemy"})
--surface.create_entity({name="ne-big-fire-explosion", position = pos, force = "enemy"})
--surface.create_entity({name="ne-big-fire-explosion", position = pos, force = "enemy"})
local size = 3
for xxx = -size, size do
for yyy = -size, size do

local new_position = {x = pos.x + xxx,y = pos.y + yyy}


surface.create_entity({name="ne-fire-flame-3", position = new_position, force = "enemy"})
end
end

end

Expand Down Expand Up @@ -1562,13 +1581,19 @@ function Scorched_Earth(surface, pos, size)
if replaceableTiles_alien[currentTilename] then
table.insert(New_tiles, {name=replaceableTiles_alien[currentTilename], position=new_position})
Scorch_test = true

elseif currentTilename == "volcanic-orange-heat-4" then
local spawn_fire = surface.create_entity({name="ne-fire-flame-1", position = pos, force = "enemy"})
end

else

if replaceableTiles[currentTilename] then
table.insert(New_tiles, {name=replaceableTiles[currentTilename], position=new_position})
Scorch_test = true

elseif currentTilename == "red-desert-1" then
local spawn_fire = surface.create_entity({name="ne-fire-flame-1", position = pos, force = "enemy"})
end

end
Expand Down
2 changes: 1 addition & 1 deletion Natural_Evolution_Enemies/info.json
@@ -1,6 +1,6 @@
{
"name": "Natural_Evolution_Enemies",
"version": "0.17.5",
"version": "0.17.6",
"factorio_version": "0.17",
"title": "Natural Evolution Enemies",
"author": "TheSAguy",
Expand Down
3 changes: 2 additions & 1 deletion Natural_Evolution_Enemies/locale/en/locale.cfg
Expand Up @@ -14,6 +14,7 @@ NE_Challenge_Mode=Enable: Challenge mode
NE_Remove_Biter_Search=Enable: Remove end-game biter search
NE_Expansion_Management=Enable: Alien Expansion Group Size Dynamic
NE_Difficulty=Difficulty setting (1-5)
NE_Starting_Evolution=Starting Evolution Factor (0-100%)

[mod-setting-description]
NE_Alien_Artifacts=Enables alien artifacts to drop from aliens.
Expand All @@ -31,7 +32,7 @@ NE_Challenge_Mode=There are consequences for killing the native life. Keeps you
NE_Remove_Biter_Search=Once you build a rocket silo, periodically search for biters to attack it. Some PC's can't handle the number of biters attacking and causes a lot of lag. Turn this ON if you have a lot of lag...
NE_Expansion_Management=Enable: Manages Unit Group Size. Makes early game easier and late game harder. This will replace NE Expansion mod.
NE_Difficulty=Difficulty setting range from 1 to 5. Increases health, damage & resistances.

NE_Starting_Evolution=If you want, you can start at a higher evolution factor...

[item-group-name]
Natural-Evolution=Natural-Evolution
Expand Down
2 changes: 2 additions & 0 deletions Natural_Evolution_Enemies/locale/ru/locale.cfg
Expand Up @@ -14,6 +14,7 @@ NE_Challenge_Mode=Включить: Режим вызова
NE_Remove_Biter_Search=Включить: Удалить поиск кусак в конце игры
NE_Expansion_Management=Enable: Alien Expansion Group Size Dynamic
NE_Difficulty=Настройка сложности (1-5)
NE_Starting_Evolution=Starting Evolution Factor (0-100%)

[mod-setting-description]
NE_Alien_Artifacts=Включает инопланетные артефакты, которые будут выпадать из чужих.
Expand All @@ -31,6 +32,7 @@ NE_Challenge_Mode=Это последствия убийства природы.
NE_Remove_Biter_Search=Как только вы построите ракетную шахту, я периодически ищу кусак и атакую их. Некоторые компьютеры не могут справится с большим количеством атакующих кусак и это становится причиной сильных лагов. Включите этот пункт, если у вас сильные лаги...
NE_Expansion_Management=Enable: Manages Unit Group Size. Makes early game easier and late game harder. This will replace NE Expansion mod.
NE_Difficulty=Настройка сложности в диапазоне от 1 до 5. Повышает здоровье, урон и сопротивляемость.
NE_Starting_Evolution=If you want, you can start at a higher evolution factor...
[item-group-name]
Expand Down
Expand Up @@ -8,9 +8,9 @@ NE_Enemies.Settings.NE_Difficulty = settings.startup["NE_Difficulty"].value

local ne_mega_tint_1 = {r=0, g=0, b=0, a=0.85} -- Black
local ne_mega_tint_2 = {r=1, g=0, b=0, a=0.5} -- Red
local ne_scale = 3
local ne_scale = 2.5

-- Loot - Only apply is Leet is enabled.
-- Loot - Only apply if Alien Artiacts is enabled.
if settings.startup["NE_Alien_Artifacts"].value == true then
mega_loot =
{
Expand All @@ -29,7 +29,7 @@ end
--- Megladon Biter
NE_Megladon_Unit = table.deepcopy(data.raw.unit["ne-biter-base-unit"])
NE_Megladon_Unit.name = "ne-biter-megalodon"
NE_Megladon_Unit.collision_box = {{-0.6, -0.6}, {0.6, 0.6}}
NE_Megladon_Unit.collision_box = {{-0.4, -0.4}, {0.4, 0.4}}
NE_Megladon_Unit.selection_box = {{-2.4, -2.7}, {2.75, 0.5}}
NE_Megladon_Unit.drawing_box = {{-5.0, -5.5}, {5.0, 2.5}}
NE_Megladon_Unit.max_health = 15000 + (5000 * NE_Enemies.Settings.NE_Difficulty)
Expand Down
Expand Up @@ -863,7 +863,7 @@ Launcher_Web_Entity.action =
{
type = "area",
force = "enemy",
radius = 6,
radius = 5,
entity_flags = {"breaths-air"},
action_delivery =
{
Expand Down
16 changes: 15 additions & 1 deletion Natural_Evolution_Enemies/prototypes/NE_Units/Settings.lua
Expand Up @@ -138,6 +138,7 @@ Resistances = {
---- Worms
Small_Worm = {
{type = "fire", decrease = 0, percent = -90},
{type = "ne_fire", decrease = 0, percent = 100},
{type = "physical", decrease = 0, percent = 5},
{type = "impact", decrease = 0, percent = 0},
{type = "explosion", decrease = 5, percent = 0},
Expand All @@ -147,6 +148,7 @@ Resistances = {

Medium_Worm = {
{type = "fire", decrease = 0, percent = -80},
{type = "ne_fire", decrease = 0, percent = 100},
{type = "physical", decrease = 10, percent = 10},
{type = "impact", decrease = 0, percent = 0},
{type = "explosion", decrease = 10, percent = 10},
Expand All @@ -157,13 +159,25 @@ Resistances = {

Big_Worm = {
{type = "fire", decrease = 0, percent = -70},
{type = "ne_fire", decrease = 0, percent = 100},
{type = "physical", decrease = 15, percent = 15},
{type = "impact", decrease = 0, percent = 0},
{type = "explosion", decrease = 15, percent = 15},
{type = "acid", decrease = 10, percent = 0},
{type = "poison", decrease = 0, percent = 0},
{type = "laser", decrease = 15, percent = 15}},


Behemoth_Worm = {
{type = "fire", decrease = 0, percent = -60},
{type = "ne_fire", decrease = 0, percent = 100},
{type = "physical", decrease = 15, percent = 30},
{type = "impact", decrease = 0, percent = 0},
{type = "explosion", decrease = 15, percent = 30},
{type = "acid", decrease = 0, percent = 100},
{type = "poison", decrease = 5, percent = 25},
{type = "laser", decrease = 15, percent = 15}},


--- Spawner

Spawner = {
Expand Down
27 changes: 16 additions & 11 deletions Natural_Evolution_Enemies/prototypes/NE_Units/Worm_Changes.lua
Expand Up @@ -3,33 +3,38 @@ if NE_Enemies.Settings.NE_Adjust_Vanilla_Worms then

----- Small Worms
data.raw["turret"]["small-worm-turret"].max_health = 200 + 100 * NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["small-worm-turret"].attack_parameters.range = 11 + NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["small-worm-turret"].attack_parameters.range = 24 + NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["small-worm-turret"].resistances = Resistances.Small_Worm

----- Medium Worms
data.raw["turret"]["medium-worm-turret"].attack_parameters = Worm_Attack_Stream(
{
range = 20 + NE_Enemies.Settings.NE_Difficulty,
cooldown = 25 - NE_Enemies.Settings.NE_Difficulty,
range = 29 + NE_Enemies.Settings.NE_Difficulty,
cooldown = 8 - NE_Enemies.Settings.NE_Difficulty,
damage_modifier = 4,
})
data.raw["turret"]["medium-worm-turret"].max_health = 200 + 200 * NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["medium-worm-turret"].resistances = Resistances.Medium_Worm
data.raw["turret"]["medium-worm-turret"].call_for_help_radius = 100 + (NE_Enemies.Settings.NE_Difficulty * 2)

----- Big Worms
data.raw["turret"]["big-worm-turret"].attack_parameters.ammo_type.action.action_delivery.projectile = "Mutated-Projectile-Worm"
data.raw["turret"]["big-worm-turret"].attack_parameters.range = 25 + NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["big-worm-turret"].attack_parameters.cooldown = 61 - NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["big-worm-turret"].attack_parameters = Worm_Attack_Projectile_NH(
{
range = 25 + NE_Enemies.Settings.NE_Difficulty,
cooldown = 61 - NE_Enemies.Settings.NE_Difficulty,
range = 35 + NE_Enemies.Settings.NE_Difficulty,
cooldown = 46 - NE_Enemies.Settings.NE_Difficulty,
damage_modifier = 5,
projectile="Worm-Unit-Projectile"
})
data.raw["turret"]["big-worm-turret"].max_health = 400 + 200 * NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["big-worm-turret"].max_health = 500 + 200 * NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["big-worm-turret"].resistances = Resistances.Big_Worm
data.raw["turret"]["big-worm-turret"].call_for_help_radius = 150 + (NE_Enemies.Settings.NE_Difficulty * 2)

end


----- Behemoth Worms
data.raw["turret"]["behemoth-worm-turret"].attack_parameters.range = 47 + NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["behemoth-worm-turret"].attack_parameters.cooldown = 10 - NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["behemoth-worm-turret"].max_health = 700 + 200 * NE_Enemies.Settings.NE_Difficulty
data.raw["turret"]["behemoth-worm-turret"].resistances = Resistances.Behemoth_Worm
data.raw["turret"]["behemoth-worm-turret"].call_for_help_radius = 180 + (NE_Enemies.Settings.NE_Difficulty * 2)

end
68 changes: 0 additions & 68 deletions Natural_Evolution_Enemies/prototypes/initialSpawn.lua

This file was deleted.

0 comments on commit 1662f19

Please sign in to comment.