1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-04 09:43:00 +02:00

Default to moat enabled in spawn choices.

This commit is contained in:
Oarcinae 2024-11-17 14:38:48 -05:00
parent 1c680026e6
commit 905939610d
2 changed files with 5 additions and 4 deletions

View File

@ -6,6 +6,7 @@ Date: ????
Changes:
- Stop regrowth deleting cargo pods at center of map. (By marking the center chunks as permanent.)
- Change surface regrowth checkboxes to be enabled/disabled by the global setting to make it obvious that they are dependent on the global setting.
- Change moat selection to enabled by default.
Bugfixes:
- Fix regrowth surface setting not respecting previous setting state when surface is first created.
- Remove offline enemy attack error messages. (Not really a bug, just false error messages.)

View File

@ -286,7 +286,7 @@ function CreateSpawnSettingsFrame(parent_flow, gameplay)
tags = { action = "oarc_spawn_options", setting = "moat_option" },
type = "checkbox",
caption = { "oarc-moat-option" },
state = false,
state = true, -- Default to true
tooltip = { "oarc-moat-option-tooltip" }
}
end
@ -609,11 +609,11 @@ function DisplaySpawnOptions(player)
end
---@type OarcSpawnChoices
local spawn_choices_entry = {
surface_name = storage.ocfg.gameplay.default_surface,
surface_name = gameplay.default_surface,
team = default_team,
moat = false, --storage.ocfg.gameplay.allow_moats_around_spawns TODO: Change default
moat = gameplay.allow_moats_around_spawns,
buddy = nil,
distance = storage.ocfg.gameplay.near_spawn_distance,
distance = gameplay.near_spawn_distance,
host = nil,
buddy_team = false
}