-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.lua
110 lines (107 loc) · 4.09 KB
/
settings.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
-- Author: slindenau
-- https://github.com/s-lindenau
-- https://forums.factorio.com/memberlist.php?mode=viewprofile&u=16823
-- Licence: GPLv3
-- entity_to_deploy: the actual entity that gets created
-- item_to_consume: the item that gets removed from the inventory
-- entity_deploy_per_capsule: how many entities are spawned from 1 capsule
-- max_accepted_wastage: example: if the target is 6 entities, and 1 capsule spawns 5, that would be a wastage of 4 entities
-- the second capsule is only deployed if the wastage is not above the max accepted wastage
-- min_capsules_remaining: how many capsules should always remain in the player's inventory. Autodeploy stops if this amount (or lower) is reached
-- max_capsules_per_pass: how many capsules 1 launcher may throw per pass. Stacks with multiple launchers in power armor. The default of 100 is oriented at 'unlimited', lower this for a more realistic experience.
-- aggression_factor: configure the deploy aggression based on the player's playstyle. Default = 1.0, oriented at bot-only warfare.
-- Lower this value if bots are used as secondary warfare; as support to for example the flamethrower.
-- Can be any decimal between [0.0, 1.0]. Numbers higher than 1 can be used, however this is not advised as it will waste capsules.
-- debug_print: prints ingame debug information for the player
-- debug_log: writes enemy information to a log file
-- enemy_visibility_range: at what distance do enemies get triggered by the player and attack. This directly affects the scan distance and thus performance!
-- max_dispatch_vehicle_speed: How fast can a player in a vehicle go until automatic deployment stops? Default of 0.9 is around 200 km/h.
-- Used to not deploy bots when passing biter bases at high speed assuming there is no intention to fight them, in for example (but not limited to) a train.
require("autodestroy.settingkeys");
data:extend({
{
type = "string-setting",
name = getEntityToDeployKey(),
setting_type = "startup",
default_value = "destroyer",
order = "aa"
},
{
type = "string-setting",
name = getItemToConsumeKey(),
setting_type = "startup",
default_value = "destroyer-capsule",
order = "ab"
},
{
type = "int-setting",
name = getEntityToDeployPerCapsuleKey(),
setting_type = "runtime-global",
default_value = 5,
minimum_value = 1,
order = "ac"
},
{
type = "int-setting",
name = getMaxAcceptedWastageKey(),
setting_type = "runtime-per-user",
default_value = 1,
minimum_value = 0,
order = "ad"
},
{
type = "int-setting",
name = getMinCapsulesRemainingKey(),
setting_type = "runtime-per-user",
default_value = 20,
minimum_value = 0,
order = "ae"
},
{
type = "int-setting",
name = getMaxCapsulesPerPassKey(),
setting_type = "runtime-global",
default_value = 100,
minimum_value = 1,
order = "af"
},
{
type = "double-setting",
name = getAggressionFactorKey(),
setting_type = "runtime-per-user",
default_value = 1.0,
minimum_value = 0.0,
order = "ag"
},
{
type = "bool-setting",
name = getDebugPrintKey(),
setting_type = "runtime-per-user",
default_value = false,
order = "ah"
},
{
type = "bool-setting",
name = getDebugLogKey(),
setting_type = "startup",
default_value = false,
order = "ai"
},
{
type = "int-setting",
name = getEnemyVisibilityRangeKey(),
setting_type = "startup",
default_value = 30,
minimum_value = 1,
maximum_value = 100,
order = "aj"
},
{
type = "double-setting",
name = getMaxDispatchVehicleSpeedKey(),
setting_type = "runtime-per-user",
default_value = 0.9,
minimum_value = 0.0,
order = "ak"
},
});