-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcontrol.lua
29 lines (28 loc) · 1.43 KB
/
control.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
script.on_init(function ()
for index, force in pairs(game.forces) do
if settings.startup["research-start-tech"].value then
game.forces[index].technologies["construction-robotics"].researched = true
game.forces[index].technologies["logistic-robotics"].researched = true
game.forces[index].technologies["logistic-system"].researched = true
end
if settings.startup["give-quickstart-parmor"].value == true then
if (remote.interfaces["freeplay"] == nil) then return end
local created_items = remote.call("freeplay", "get_created_items")
created_items["power-armor"] = 1
created_items["solar-panel-equipment"] = 21
created_items["battery-equipment"] = 2
created_items["personal-roboport-equipment"] = 1
created_items["construction-robot"] = 10
remote.call("freeplay", "set_created_items", created_items)
end
if settings.startup["give-quickstart-stuff"].value == true then
if (remote.interfaces["freeplay"] == nil) then return end
local created_items = remote.call("freeplay", "get_created_items")
created_items["roboport"] = 10
created_items["logistic-robot"] = 100
created_items["logistic-chest-requester"] = 100
created_items["logistic-chest-passive-provider"] = 100
remote.call("freeplay", "set_created_items", created_items)
end
end
end)