mirror of
https://github.com/veden/Rampant.git
synced 2024-12-28 21:08:22 +02:00
documentation and settings
This commit is contained in:
parent
d7e1491652
commit
3457308921
@ -49,12 +49,14 @@ Configure Options not in game menu:
|
||||
- Rocket Reaction - Firing the rocket from the rocket silo will cause the biters to form extra attack waves
|
||||
- Blockable Projectiles - Some of the biters projectiles can now be blocked by walls and trees
|
||||
- Raiding AI state - The AI will periodically send attack waves based on building proximity and not just pollution
|
||||
- Migration AI State - Where the ai looks for resources patches to setup new bases
|
||||
- Sieging AI state - Where the ai does a migration event but also builds towards the player and their base
|
||||
- Vanilla AI Replacement - The default expansion and attack waves can be completely turned off and allow Rampant to work its magic
|
||||
|
||||
# Planned Features
|
||||
|
||||
- Tunneling Biters
|
||||
- Infesting Biters
|
||||
- Base Expansion
|
||||
|
||||
# Version History
|
||||
|
||||
|
@ -202,7 +202,7 @@ function upgrade.attempt(natives)
|
||||
squad.settlers = false
|
||||
end
|
||||
|
||||
natives.expansion = game.map_settings.enemy_expansion.enabled or true
|
||||
natives.expansion = game.map_settings.enemy_expansion.enabled
|
||||
natives.expansionMaxDistance = game.map_settings.enemy_expansion.max_expansion_distance * CHUNK_SIZE
|
||||
natives.expansionMaxDistanceDerivation = natives.expansionMaxDistance * 0.33
|
||||
natives.expansionMinTime = game.map_settings.enemy_expansion.min_expansion_cooldown
|
||||
|
15
control.lua
15
control.lua
@ -290,17 +290,12 @@ local function onModSettingsChange(event)
|
||||
upgrade.compareTable(natives, "enemySeed", settings.startup["rampant-enemySeed"].value)
|
||||
|
||||
-- RE-ENABLE WHEN COMPLETE
|
||||
upgrade.compareTable(natives, "useCustomAI", settings.startup["rampant-useCustomAI"].value)
|
||||
upgrade.compareTable(natives, "disableVanillaAI", settings.startup["rampant-disableVanillaAI"].value)
|
||||
|
||||
natives.enabledMigration = natives.expansion and settings.startup["rampant-enableMigration"].value
|
||||
|
||||
game.forces.enemy.ai_controllable = not natives.disableVanillaAI
|
||||
|
||||
if natives.useCustomAI then
|
||||
game.forces.enemy.ai_controllable = false
|
||||
else
|
||||
game.forces.enemy.ai_controllable = true
|
||||
end
|
||||
-- if changed and newValue then
|
||||
-- rebuildMap()
|
||||
-- return false
|
||||
-- end
|
||||
return true
|
||||
end
|
||||
|
||||
|
@ -53,8 +53,6 @@ constants.RESOURCE_NORMALIZER = 1 / 1024
|
||||
|
||||
constants.PLAYER_PHEROMONE_MULTIPLER = 500
|
||||
|
||||
constants.DEV_CUSTOM_AI = false
|
||||
|
||||
-- chunk properties
|
||||
|
||||
constants.CHUNK_SIZE = 32
|
||||
|
@ -124,7 +124,7 @@ function mapProcessor.processMap(map, surface, natives, tick, evolutionFactor)
|
||||
if squads then
|
||||
squads = formSquads(map, surface, natives, chunk, AI_SQUAD_COST)
|
||||
end
|
||||
if natives.useCustomAI and settlers then
|
||||
if natives.enabledMigration and settlers then
|
||||
settlers = formSettlers(map, surface, natives, chunk, AI_SETTLER_COST, tick)
|
||||
end
|
||||
end
|
||||
|
@ -11042,6 +11042,8 @@ rampant-disallowFriendlyFire=Safety: Disallow Friendly Fire Splash Damage
|
||||
rampant-tierStart=World: Beginning enemy level
|
||||
rampant-tierEnd=World: Ending enemy level
|
||||
rampant-forceOldProjectiles=Force non-blockable projectiles
|
||||
rampant-disableVanillaAI=AI: Disable Vanilla AI
|
||||
rampant-enableMigration=AI: Enable Migration
|
||||
|
||||
[mod-setting-description]
|
||||
rampant-useDumbProjectiles=Turns off homing projectiles for worms and spitters
|
||||
@ -11082,4 +11084,6 @@ rampant-enableNEUnits=Adds NE spawners, units, and worms to the base upgrade and
|
||||
rampant-disallowFriendlyFire=Prevents enemy spitters and worms from damaging units or buildings from the same force through splash damage
|
||||
rampant-tierStart=This is the starting tier level and increases linearly to the end tier for as many tiers selected. min 1, max 10
|
||||
rampant-tierEnd=This is the ending tier level that is reached after increasing linearly from the start tier for as many tiers selected. min 1, max 10
|
||||
rampant-forceOldProjectiles=This causes projectiles to no longer impact into other entities
|
||||
rampant-forceOldProjectiles=This causes projectiles to no longer impact into other entities
|
||||
rampant-disableVanillaAI=This will turn off the vanilla attack waves and the vanilla biter expansion.
|
||||
rampant-enableMigration=This will allow the ai to expand its worms and nests. Respects the map settings for biter expansion.
|
37
settings.lua
37
settings.lua
@ -360,6 +360,27 @@ data:extend({
|
||||
per_user = false
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant-disableVanillaAI",
|
||||
description = "rampant-disableVanillaAI",
|
||||
setting_type = 'startup',
|
||||
default_value = true,
|
||||
order = "m[total]-a[ai]",
|
||||
per_user = false
|
||||
},
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant-enableMigration",
|
||||
description = "rampant-enableMigration",
|
||||
setting_type = 'startup',
|
||||
default_value = true,
|
||||
order = "m[total]-b[ai]",
|
||||
per_user = false
|
||||
},
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant-removeBloodParticles",
|
||||
@ -378,19 +399,5 @@ data:extend({
|
||||
default_value = true,
|
||||
order = "o[modifer]-a[message]",
|
||||
per_user = true
|
||||
},
|
||||
|
||||
|
||||
-- ,
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant-useCustomAI",
|
||||
description = "rampant-useCustomAI",
|
||||
setting_type = 'startup',
|
||||
default_value = true,
|
||||
order = "h[total]-a[ai]",
|
||||
per_user = false
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user