spidertron-squad-control/settings.lua

31 lines
1.2 KiB
Lua
Raw Normal View History

2020-08-15 17:15:37 +08:00
--[[ Copyright (c) 2020 npc_strider
* For direct use of code or graphics, credit is appreciated. See LICENSE.txt for more information.
* This mod may contain modified code sourced from base/core Factorio
*
* settings.lua
* Mod settings
--]]
data:extend({
-- server
{
type = "double-setting",
name = "spidertron-follow-prediction-distance",
localised_name = "Follow prediction distance",
localised_description = "When in follow mode, the movement targets of the spider bot will be this far ahead of the player's position. Minimum value: 0.0, Maximum value: 500.0, Default value: 20.0",
setting_type = "runtime-global",
default_value = 20.0,
minimum_value = 0.0,
maximum_value = 500.0,
},
{
type = "int-setting",
name = "spidertron-follow-update-interval",
localised_name = "Follow update interval",
localised_description = "Rate at which the follow mode updates the target positions of the spidertrons. This value is in ticks. Larger values are less laggy but result in less responsive squad movement. Minimum value: 5, Default value: 20",
setting_type = "runtime-global",
default_value = 20,
minimum_value = 5
}
})