mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
added mod setting for debugging inplace enemy structure upgrades
This commit is contained in:
parent
76dde8d8b6
commit
48381454a7
@ -28,6 +28,7 @@ Date: 23. 11. 2021
|
||||
- Fixed unit groups spawned by factorio in noctural mode during the day would give points to the AI (Thanks Deathlymad)
|
||||
Framework:
|
||||
- Fixed Rampant in-memory map visualization tool for debugging
|
||||
- Added debug mod settings for showing enemy structures being upgraded in place
|
||||
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 1.1.4
|
||||
|
@ -252,6 +252,7 @@ local function onModSettingsChange(event)
|
||||
|
||||
universe.aiPointsPrintGainsToChat = settings.global["rampant--aiPointsPrintGainsToChat"].value
|
||||
universe.aiPointsPrintSpendingToChat = settings.global["rampant--aiPointsPrintSpendingToChat"].value
|
||||
universe.printBaseUpgrades = settings.global["rampant--printBaseUpgrades"].value
|
||||
|
||||
universe.enabledMigration = universe.expansion and settings.global["rampant--enableMigration"].value
|
||||
universe.peacefulAIToggle = settings.global["rampant--peacefulAIToggle"].value
|
||||
|
@ -402,6 +402,9 @@ function baseUtils.processBase(chunk, map, tick, base)
|
||||
base.alignment,
|
||||
map)
|
||||
if newEntity then
|
||||
if universe.printBaseUpgrades then
|
||||
surface.print("[gps=".. entity.position.x ..",".. entity.position.y .."] " .. "Scheduled upgrade for ".. entity.name .. " to " .. newEntity)
|
||||
end
|
||||
base.points = base.points - cost
|
||||
end
|
||||
end
|
||||
|
@ -18789,6 +18789,7 @@ poison-worm-v20-t10-rampant=Poison worm: t10 Leviathan
|
||||
[entity-description]
|
||||
|
||||
[mod-setting-name]
|
||||
rampant--printBaseUpgrades=AI: Print Faction Base Upgrades
|
||||
rampant--max-base-mutations=World: Max Mutations per faction
|
||||
rampant--baseDistanceModifier=AI: Faction Base Distance Modifier
|
||||
rampant--printBaseAdaptation=AI: Print Faction Mutations
|
||||
@ -18894,6 +18895,7 @@ rampant--enableFadeTime=Enable corpse fade time
|
||||
rampant--temperamentRateModifier=AI: Temperament Rate Modifier
|
||||
|
||||
[mod-setting-description]
|
||||
rampant--printBaseUpgrades=Print to console when a building is upgraded by the AI. These should not happen during a migration, but over the lifetime of a enemy structure.
|
||||
rampant--max-base-mutations=Requires Rampant new enemies to have any affect. This number represents the number of times a regional faction group can mutate into other factions. Regional faction groups adapt over time typically to a faction is strong against the type of damage they are being killed with. Death threshold for mutation is based on evolution. (3000 Deaths:<50% Evolution, 4500:<70%, 6000:<90%, 7500)
|
||||
rampant--baseDistanceModifier=Modifies the distance between factions as a percentage change. Low percentages may impact performance.
|
||||
rampant--printBaseAdaptation=Display a message to the chat console when a faction mutates based on the number of enemies killed
|
||||
|
@ -500,6 +500,15 @@ data:extend({
|
||||
per_user = false
|
||||
},
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant--printBaseUpgrades",
|
||||
setting_type = "runtime-global",
|
||||
default_value = false,
|
||||
order = "m[total]-c[ai]z",
|
||||
per_user = false
|
||||
},
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant--debugTemperament",
|
||||
|
Loading…
x
Reference in New Issue
Block a user