]> git.somenet.org - factorio/some-lazybastard.git/blob - control.lua
RELEASE 2.0.0 - Initial compatibility with Factorio 2.0
[factorio/some-lazybastard.git] / control.lua
1
2 script.on_init(function (event)
3   game.permissions.get_group("Default").set_allows_action(defines.input_action.craft ,false)
4
5   if script.active_mods["some-spaceship-wreck-generator"] then
6     remote.call("freeplay", "set_created_items", {
7       ["pistol"] = 1,
8       ["firearm-magazine"] = 10,
9       ["assembling-machine-3"] = 1,
10       ["small-electric-pole"] = 1,
11       ["electric-mining-drill"] = 1
12     })
13   else
14     remote.call("freeplay", "set_created_items", {
15       ["pistol"] = 1,
16       ["firearm-magazine"] = 10,
17       ["assembling-machine-3"] = 1,
18       ["small-electric-pole"] = 1,
19       ["electric-mining-drill"] = 1,
20       ["boiler"] = 1,
21       ["steam-engine"] = 1,
22       ["offshore-pump"] = 1
23     })
24   end
25
26 end)