-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrol.lua
More file actions
47 lines (39 loc) · 972 Bytes
/
control.lua
File metadata and controls
47 lines (39 loc) · 972 Bytes
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
require('configs.build')
require('libs.utils')
function on_player_creation(player)
local technologies = {
'automation',
'military',
'electronics',
'optics',
'logistics',
'gate',
'landfill',
'steel-processing',
'logistic-science-pack',
'gun-turret',
'steel-axe',
'fast-inserter',
'stone-wall',
'toolbelt'
}
technologies = concatLists(technologies, buildConfig(player.mod_settings, {
'BigBags',
'bobassembly',
'boblogistics',
'bobplates',
'epic_mining_and_crafting_speed_research'
}))
for i, v in pairs(technologies) do
local tech = player.force.technologies[v]
if tech.enabled then
tech.researched = true
end
end
player.print('QT Finished Research')
end
-- fires on the end of the cutscene (singleplayer)
script.on_event(defines.events.on_cutscene_cancelled, function(event)
local player = game.players[event.player_index]
on_player_creation(player)
end)