big update to 2.0/SA

This commit is contained in:
Brevven 2024-12-31 00:48:29 -08:00
parent f82dca2023
commit 01d64fea85
16 changed files with 341 additions and 78 deletions

View file

@ -1,18 +1,9 @@
local util = require("control-util")
function on_console_chat(event)
if event.message and string.lower(event.message) == "bzlist" then
local player = game.players[event.player_index]
if player and player.connected then
local list = util.get_list()
if list and #list>0 then
local filename = util.me.name..".txt"
game.write_file(filename, list, false, event.player_index)
player.print("Wrote recipes to script-output/"..filename)
end
end
end
end
script.on_event(defines.events.on_console_chat, on_console_chat)
script.on_event(defines.events.on_console_command, util.list)
script.on_configuration_changed(util.ore_fix)
util.add_regenerate_command_handler()
util.add_list_command_handler()
util.warptorio2_expansion_helper()