1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-24 03:47:58 +02:00
ComfyFactorio/control.lua

67 lines
2.0 KiB
Lua
Raw Normal View History

2019-02-20 11:43:29 +01:00
server_commands = require 'utils.server'
require "utils.server_commands"
2018-09-19 06:51:25 +02:00
require "utils.utils"
2019-02-26 20:05:31 +01:00
require "utils.corpse_util" --disable for hunger games
2018-12-18 09:42:37 +01:00
require "chatbot"
2019-02-14 15:44:12 +01:00
require "commands"
2018-09-19 06:51:25 +02:00
require "session_tracker"
require "antigrief"
2018-11-18 14:18:43 +01:00
require "antigrief_admin_panel"
2018-09-19 06:51:25 +02:00
require "group"
require "player_list"
2019-02-26 21:00:00 +01:00
require "poll"
2019-02-26 20:05:31 +01:00
require "score"
2019-03-07 14:12:55 +01:00
require "on_tick_schedule"
2018-09-29 19:01:13 +02:00
---- enable modules here ----
2019-03-07 15:37:09 +01:00
--require "maps.tools.cheat_mode"
2019-01-04 01:28:14 +01:00
--require "maps.modules.hunger"
2019-03-03 00:33:08 +01:00
--require "maps.modules.area_unlocked_on_rotated_entity"
--require "maps.modules.fish_respawner"
2019-01-04 01:28:14 +01:00
--require "maps.modules.rocket_launch_always_yields_science"
2019-01-18 09:22:15 +01:00
--require "maps.modules.launch_fish_to_win"
--require "maps.modules.satellite_score"
2018-12-28 00:23:38 +01:00
--require "maps.modules.restrictive_fluid_mining"
2019-01-08 03:39:37 +01:00
--require "maps.modules.fluids_are_explosive"
2018-12-30 21:37:32 +01:00
--require "maps.modules.explosives_are_explosive"
2019-01-14 02:03:54 +01:00
--require "maps.modules.explosive_biters"
--require "maps.modules.railgun_enhancer"
2019-02-05 08:42:45 +01:00
--require "maps.modules.dynamic_landfill"
2019-02-11 01:29:20 +01:00
--require "maps.modules.players_trample_paths"
2019-02-09 02:57:01 +01:00
--require "maps.modules.hunger_games"
2019-02-26 18:42:36 +01:00
--require "maps.modules.explosive_player_respawn"
2019-02-20 18:04:44 +01:00
--require "maps.modules.burden"
-----------------------------
2018-09-19 06:51:25 +02:00
2018-09-29 11:39:36 +02:00
---- enable maps here ----
2019-03-03 22:50:51 +01:00
--require "maps.biter_battles"
2019-03-08 02:33:43 +01:00
require "maps.cave_miner"
2018-12-06 23:11:16 +01:00
--require "maps.labyrinth"
2019-03-08 02:33:43 +01:00
--require "maps.junkyard"
2019-01-15 02:32:05 +01:00
--require "maps.spooky_forest"
2019-01-04 09:06:26 +01:00
--require "maps.nightfall"
--require "maps.atoll"
2018-12-31 01:55:18 +01:00
--require "maps.tank_battles"
2018-11-02 01:05:35 +01:00
--require "maps.spiral_troopers"
2019-03-07 14:12:55 +01:00
--require "maps.fish_defender"
2019-02-28 18:53:33 +01:00
--require "maps.mountain_fortress"
--require "maps.stoneblock"
2019-02-26 18:42:36 +01:00
--require "maps.deep_jungle"
2018-11-16 08:13:08 +01:00
--require "maps.crossing"
--require "maps.anarchy"
2018-12-31 01:55:18 +01:00
--require "maps.spaghettorio"
--require "maps.lost_desert"
2019-02-05 08:42:45 +01:00
--require "maps.empty_map"
--require "maps.custom_start"
2018-09-19 06:51:25 +02:00
-----------------------------
2019-02-14 15:44:12 +01:00
local event = require 'utils.event'
2018-09-19 06:51:25 +02:00
2018-12-18 09:42:37 +01:00
local function on_player_created(event)
2018-09-19 06:51:25 +02:00
local player = game.players[event.player_index]
player.gui.top.style = 'slot_table_spacing_horizontal_flow'
player.gui.left.style = 'slot_table_spacing_vertical_flow'
end
2019-02-20 18:04:44 +01:00
event.add(defines.events.on_player_created, on_player_created)