diff --git a/changelog.txt b/changelog.txt index f633850..342274d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -8,6 +8,7 @@ Date: 29. 12. 2021 - Slightly increased spacing between enemy structures - License has changed to GPLv3 - Reduced new enemy hive frequency outside resoure chunks by 10x + - Separated mod setting into printing settlers building and ai spending points Bugfixes: - Fixed chunkPack nil in processNests (Thanks Skallywaggz for the report) - Fixed random generator seed overflow (Thanks NeveHanter for the report) diff --git a/control.lua b/control.lua index e8d5855..b539c2b 100644 --- a/control.lua +++ b/control.lua @@ -243,6 +243,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["PRINT_BASE_SETTLING"] = settings.global["rampant--printBaseSettling"].value universe["enabledMigration"] = universe.expansion and settings.global["rampant--enableMigration"].value universe["peacefulAIToggle"] = settings.global["rampant--peacefulAIToggle"].value @@ -890,7 +891,7 @@ local function onBuilderArrived(event) local squad = universe.groupNumberToSquad[builder.group_number] squad.commandTick = event.tick + COMMAND_TIMEOUT * 10 end - if universe.aiPointsPrintSpendingToChat then + if universe.PRINT_BASE_SETTLING then game.print("Settled: [gps=" .. builder.position.x .. "," .. builder.position.y .."]") end setPositionInQuery(universe.obaCreateBuildCloudQuery, builder.position) diff --git a/locale/en/locale.cfg b/locale/en/locale.cfg index 149e7d9..d90f597 100644 --- a/locale/en/locale.cfg +++ b/locale/en/locale.cfg @@ -18789,6 +18789,7 @@ poison-worm-v20-t10-rampant=Poison worm: t10 Leviathan [entity-description] [mod-setting-name] +rampant--printBaseSettling=AI: Print when settlers start building rampant--printAwakenMessage=World: Print when initial peace ends rampant--initialPeaceTime=World: Starting peace duration rampant--printBaseUpgrades=AI: Print Faction Base Upgrades @@ -18897,6 +18898,7 @@ rampant--enableFadeTime=Enable corpse fade time rampant--temperamentRateModifier=AI: Temperament Rate Modifier [mod-setting-description] +rampant--printBaseSettling=Print a message to the console when settlers begin building a nest rampant--printAwakenMessage=Print a message to the console when the initial peace time ends rampant--initialPeaceTime=The AI will remain in the peaceful state until the specified number of minutes have passed in game. This should give time for someone to get an initial base started. 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. diff --git a/settings.lua b/settings.lua index 6bc1537..b673b50 100644 --- a/settings.lua +++ b/settings.lua @@ -536,6 +536,15 @@ data:extend({ per_user = false }, + { + type = "bool-setting", + name = "rampant--printBaseSettling", + setting_type = "runtime-global", + default_value = false, + order = "m[total]-c[ai]z", + per_user = false + }, + { type = "bool-setting", name = "rampant--debugTemperament",