forked from justarandomgeek/factorio-pathological
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.lua
24 lines (23 loc) · 1.05 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
local function create_settings(name,default,type)
data:extend{
{
type = type.."-setting",
name = "pathological-"..name,
setting_type = "startup",
default_value = default,
order="pathological-"..name
},
}
end
-- too bad i can't auto-populate this from data.raw...
create_settings("train_stop_penalty", 2000, "int")
create_settings("stopped_manually_controlled_train_penalty", 2000, "int")
create_settings("stopped_manually_controlled_train_without_passenger_penalty", 7000, "int")
create_settings("signal_reserved_by_circuit_network_penalty", 1000, "int")
create_settings("train_in_station_penalty", 500, "int")
create_settings("train_in_station_with_no_other_valid_stops_in_schedule", 1000, "int")
create_settings("train_arriving_to_station_penalty", 100, "int")
create_settings("train_arriving_to_signal_penalty", 100, "int")
create_settings("train_waiting_at_signal_penalty", 100, "int")
create_settings("train_waiting_at_signal_tick_multiplier_penalty", 0.1, "double")
create_settings("train_with_no_path_penalty", 1000, "int")