1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-28 03:29:34 +02:00

see changelog

This commit is contained in:
Aaron Veden 2020-03-21 18:27:42 -07:00
parent 113444b510
commit a4cd32651c
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
7 changed files with 34 additions and 17 deletions

View File

@ -8,10 +8,12 @@ Date: 14. 3. 2020
- Full map scan has been re-enabled by default to ensure eventaual map consistency
- Decreased sticker movement speed reduction and removed friction modifier from vehicle
- Vehicles are less slowed then the character on foot for stickers
- Added setting to enable units affected_by_tiles (As of 0.18.15, this setting can cause desyncs)
Bugfixes:
- Fixed splash damage with friendly fire disabled not affecting neutral objects
- Fixed rally flag being set by the wrong function
- Fixed mod settings getting recalculated for rampant arsenal and rampant resources
- Fixed desyncs around units having affected_by_tiles set to true (boskid)
Optimizations:
- Combined enemy structure query in full map scan

View File

@ -30,25 +30,24 @@ if settings.startup["rampant-unitSpawnerBreath"].value then
end
end
if settings.startup["rampant-enableSwarm"].value then
for k, unit in pairs(data.raw["unit"]) do
if (string.find(k, "biter") or string.find(k, "spitter")) and unit.collision_box then
for k, unit in pairs(data.raw["unit"]) do
if (string.find(k, "biter") or string.find(k, "spitter")) and unit.collision_box then
if settings.startup["rampant-enableSwarm"].value then
unit.collision_box = {
{unit.collision_box[1][1] * 0.20, unit.collision_box[1][2] * 0.20},
{unit.collision_box[2][1] * 0.20, unit.collision_box[2][2] * 0.20}
}
if not settings.startup["rampant-newEnemies"].value then
unit.affected_by_tiles = true
unit.ai_settings = {
destroy_when_commands_fail = false,
allow_try_return_to_spawner = true,
path_resolution_modifier = -5,
do_seperation = true
}
end
end
unit.affected_by_tiles = settings.startup["rampant-unitsAffectedByTiles"].value
unit.ai_settings = {
destroy_when_commands_fail = false,
allow_try_return_to_spawner = true,
path_resolution_modifier = -5,
do_seperation = true
}
end
end

View File

@ -6,5 +6,5 @@
"author" : "Veden",
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",
"description" : "Improves the enemies tactics by using potential fields/pheromones allowing probing of defenses, retreats, reinforcements, counterattacking, breaching, raids, rallying death cry, and player hunting. Uses blockable biter projectiles. Adds new Enemies (disabled by default). Can completely replace the vanilla AI. Difficulty setting in mod options menu.",
"dependencies" : ["base >= 0.18.12", "? bobenemies", "? Natural_Evolution_Enemies >= 0.17.0", "? Clockwork", "? Orbital Ion Cannon", "? RampantArsenal", "? ArmouredBiters"]
"dependencies" : ["base >= 0.18.15", "? bobenemies", "? Natural_Evolution_Enemies >= 0.17.0", "? Clockwork", "? Orbital Ion Cannon", "? RampantArsenal", "? RampantResources", "? ArmouredBiters"]
}

View File

@ -18676,6 +18676,7 @@ poison-worm-v20-t10-rampant=Poison worm: Juggernaut class
[entity-description]
[mod-setting-name]
rampant-unitsAffectedByTiles=World: Units affected by tiles (Desync Warning)
rampant-oldRedEnemyMapColor=Map: Revert Enemy Map Color
rampant-unitSpawnerBreath=World: Unit Spawners breath air
rampant-useDumbProjectiles=Projectiles: Use blockable projectiles
@ -18772,6 +18773,7 @@ rampant-disableCollidingProjectiles=Projectiles: Non biter force colliding proje
rampant-enableFullMapScan=Compatibility: Enable full map scanning
[mod-setting-description]
rampant-unitsAffectedByTiles=(Can cause Desyncs) Units are affected by tile movement modifiers
rampant-oldRedEnemyMapColor=Reverts the enemy map color to the vanilla enemy map color
rampant-unitSpawnerBreath=Now unit spawners breath air so they are affected by things like poison capsules
rampant-useDumbProjectiles=Use the projectile attacks that are blockable. This should be checked if you are using the new enemies.

View File

@ -43,6 +43,7 @@ function energyThief.addFactionAddon()
name = "drain-trigger-rampant",
icon = "__Rampant__/graphics/icons/thief/crystal-drain.png",
icon_size = 32,
icon_mipmaps = 1,
flags = {"hidden"},
subgroup = "energy",
order = "e[accumulator]-a[accumulator]",
@ -55,6 +56,7 @@ function energyThief.addFactionAddon()
name = "crystal-drain-pole-rampant",
icon = "__Rampant__/graphics/icons/thief/crystal-drain.png",
icon_size = 32,
icon_mipmaps = 1,
flags = {"hidden"},
subgroup = "energy",
order = "e[accumulator]-a[accumulator]",
@ -67,6 +69,7 @@ function energyThief.addFactionAddon()
name = "crystal-drain-pole-rampant",
icon = "__Rampant__/graphics/icons/thief/crystal-drain.png",
icon_size = 32,
icon_mipmaps = 1,
flags = {"hidden"},
selectable_in_game = false,
minable = {hardness = 0.2, mining_time = 0.5, result = "big-electric-pole"},
@ -180,6 +183,7 @@ function energyThief.addFactionAddon()
chest.name = "pylon-target-rampant"
chest.icon = "__Rampant__/graphics/icons/thief/crystal-drain.png"
chest.icon_size = 32
chest.icon_mipmaps = 1
chest.flags = {"not-repairable", "not-on-map", "hidden"}
chest.subgroup = "enemies"
chest.next_upgrade = nil
@ -237,6 +241,7 @@ function energyThief.addFactionAddon()
name = "pylon-target-rampant",
icon = "__Rampant__/graphics/icons/thief/crystal-drain.png",
icon_size = 32,
icon_mipmaps = 1,
flags = {"hidden"},
subgroup = "enemies",
order = "a[items]-h[steel-collector]",

View File

@ -256,7 +256,7 @@ function biterFunctions.makeBiter(attributes)
dying_explosion = attributes.explosion,
dying_trigger_effect = attributes.dyingEffect,
enemy_map_color = ((not settings.startup["rampant-oldRedEnemyMapColor"].value) and attributes.tint2) or nil,
affected_by_tiles = true,
affected_by_tiles = settings.startup["rampant-unitsAffectedByTiles"].value,
dying_sound = sounds.biter_dying(0.3 + (0.05 * attributes.effectiveLevel)),
working_sound = sounds.biter_calls(0.2 + (0.05 * attributes.effectiveLevel)),
running_sound_animation_positions = {2,},
@ -311,7 +311,7 @@ function biterFunctions.makeSpitter(attributes)
running_sound_animation_positions = {2,},
water_reflection = spitter_water_reflection(attributes.scale),
damaged_trigger_effect = ((not settings.startup["rampant-removeBloodParticles"].value) and makeDamagedParticle(attributes)) or nil,
affected_by_tiles = true,
affected_by_tiles = settings.startup["rampant-unitsAffectedByTiles"].value,
run_animation = spitterrunanimation(attributes.scale, attributes.tint, attributes.tint2 or attributes.tint),
ai_settings = { destroy_when_commands_fail = false, allow_try_return_to_spawner = true, path_resolution_modifier = -5, do_seperation = true }
}

View File

@ -19,6 +19,15 @@ data:extend({
per_user = false
},
{
type = "bool-setting",
name = "rampant-unitsAffectedByTiles",
setting_type = "startup",
default_value = false,
order = "b[modifier]-b[trigger]",
per_user = false
},
{
type = "bool-setting",
name = "rampant-oldRedEnemyMapColor",