mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-04 09:42:30 +02:00
Rename utils and fix requires
This commit is contained in:
parent
6b589fb8f6
commit
c7201e119b
18
control.lua
18
control.lua
@ -1,10 +1,8 @@
|
||||
-- Libraries. Removing these will likely lead to game crashes
|
||||
require 'config'
|
||||
require 'utils.utils'
|
||||
require 'utils.list_utils'
|
||||
-- Omitting the math library is a very bad idea
|
||||
require 'utils.math'
|
||||
|
||||
require 'map_gen.shared.perlin_noise'
|
||||
-- Map layout and config dictate the map you play and the settings in it
|
||||
require 'config'
|
||||
require 'map_layout'
|
||||
|
||||
-- Specific to RedMew hosts, can be disabled safely if not hosting on RedMew servers
|
||||
@ -13,14 +11,14 @@ require 'features.server_commands'
|
||||
|
||||
-- Library modules which, if missing, will cause other feature modules to fail
|
||||
require 'features.base_data'
|
||||
--require 'features.follow' -- Nothing currently uses anything inside follow
|
||||
require 'features.player_create'
|
||||
require 'features.user_groups'
|
||||
|
||||
-- Feature modules, each can be disabled
|
||||
-- Feature modules, each can be disabled safely
|
||||
require 'features.autodeconstruct'
|
||||
require 'features.chat_triggers'
|
||||
require 'features.corpse_util'
|
||||
require 'features.custom_commands'
|
||||
require 'features.donator_messages'
|
||||
require 'features.train_saviour'
|
||||
require 'features.fish_market'
|
||||
@ -31,11 +29,9 @@ require 'features.reactor_meltdown'
|
||||
require 'features.train_station_names'
|
||||
require 'features.walkabout'
|
||||
|
||||
-- Contains various commands for users and admins alike
|
||||
require 'features.custom_commands'
|
||||
|
||||
-- GUIs the order determines the order they appear from left to right.
|
||||
-- These can be safely disabled. Some map presets will add GUI modules themselves.
|
||||
-- These can be safely disabled if you want less GUI items.
|
||||
-- Some map presets will add GUI modules themselves.
|
||||
require 'features.gui.info'
|
||||
require 'features.gui.player_list'
|
||||
require 'features.gui.poll'
|
||||
|
@ -1,5 +1,5 @@
|
||||
local Event = require 'utils.event'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
global.original_last_users_by_ent_pos = {}
|
||||
|
@ -1,8 +1,8 @@
|
||||
--Author: Valansch
|
||||
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.token'
|
||||
local Task = require 'utils.task'
|
||||
|
||||
local function is_depleted(drill, entity)
|
||||
local position = drill.position
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
local Game = require 'utils.game'
|
||||
local Event = require 'utils.event'
|
||||
require 'utils.list_utils'
|
||||
require 'utils.table'
|
||||
local Hodor = require 'resources.hodor_messages'
|
||||
|
||||
local prefix = '## - '
|
||||
|
@ -1,7 +1,7 @@
|
||||
local Event = require 'utils.event'
|
||||
local Global = require 'utils.global'
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local player_corpses = {}
|
||||
|
@ -1,8 +1,8 @@
|
||||
local Task = require 'utils.Task'
|
||||
local Task = require 'utils.task'
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
local UserGroups = require 'features.user_groups'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
local Report = require 'features.report'
|
||||
|
||||
|
@ -17,11 +17,11 @@ make pet faster
|
||||
make pet follow you moar
|
||||
--]]
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.token'
|
||||
local Task = require 'utils.task'
|
||||
local PlayerStats = require 'features.player_stats'
|
||||
local Game = require 'utils.game'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
|
||||
local Market_items = require 'resources.market_items'
|
||||
local market_item = Market_items.market_item
|
||||
|
@ -1,6 +1,6 @@
|
||||
global.follows = {}
|
||||
global.follows.n_entries = 0
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local function get_direction(follower, target)
|
||||
|
@ -1,4 +1,4 @@
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
-- Soft mod version of Blueprint Flipper and Turner https://mods.factorio.com/mods/Marthen/Blueprint_Flip_Turn
|
||||
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
local Gui = require 'utils.gui'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
|
@ -4,7 +4,7 @@ local Gui = require 'utils.gui'
|
||||
local Donators = require 'resources.donators'
|
||||
local UserGroups = require 'features.user_groups'
|
||||
local PlayerStats = require 'features.player_stats'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Report = require 'features.report'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
|
@ -4,7 +4,7 @@ local Event = require 'utils.event'
|
||||
local UserGroups = require 'features.user_groups'
|
||||
local Game = require 'utils.game'
|
||||
local math = require 'utils.math'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Server = require 'features.server'
|
||||
|
||||
local default_poll_duration = 300 * 60 -- in ticks
|
||||
|
@ -1,5 +1,5 @@
|
||||
local Gui = require 'utils.gui'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local close_name = Gui.uid_name()
|
||||
|
@ -3,7 +3,7 @@ local Gui = require 'utils.gui'
|
||||
local Global = require 'utils.global'
|
||||
local UserGroups = require 'features.user_groups'
|
||||
local Game = require 'utils.game'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
|
||||
local deafult_verb = 'expanded'
|
||||
|
||||
|
@ -2,7 +2,7 @@ local Event = require 'utils.event'
|
||||
local Gui = require 'utils.gui'
|
||||
local Global = require 'utils.global'
|
||||
local UserGroups = require 'features.user_groups'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
local math = require 'utils.math'
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
local Event = require 'utils.event'
|
||||
local UserGroups = require 'features.user_groups'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local function allowed_to_nuke(player)
|
||||
|
@ -1,7 +1,7 @@
|
||||
local Module = {}
|
||||
|
||||
local Gui = require('utils.gui')
|
||||
local Utils = require('utils.utils')
|
||||
local Utils = require('utils.core')
|
||||
local Game = require 'utils.game'
|
||||
|
||||
local report_frame_name = Gui.uid_name()
|
||||
|
@ -1,5 +1,5 @@
|
||||
local Event = require 'utils.event'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Server = require 'features.server'
|
||||
local Donators = require 'resources.donators'
|
||||
local Game = require 'utils.game'
|
||||
|
@ -1,8 +1,8 @@
|
||||
local Task = require 'utils.Task'
|
||||
local Task = require 'utils.task'
|
||||
local Game = require 'utils.game'
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Utils = require 'utils.utils'
|
||||
local Token = require 'utils.token'
|
||||
local Utils = require 'utils.core'
|
||||
|
||||
global.walking = {}
|
||||
global.walking_storage = {}
|
||||
|
@ -1,9 +1,9 @@
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.token'
|
||||
local Task = require 'utils.task'
|
||||
local PlayerStats = require 'features.player_stats'
|
||||
local Game = require 'utils.game'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
|
||||
local market_items = require 'resources.market_items'
|
||||
|
||||
|
@ -5,8 +5,8 @@
|
||||
-- dependencies
|
||||
local Event = require 'utils.event'
|
||||
local Global = require 'utils.global'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.token'
|
||||
local Task = require 'utils.task'
|
||||
local AlienEvolutionProgress = require 'map_gen.Diggy.AlienEvolutionProgress'
|
||||
local Debug = require 'map_gen.Diggy.Debug'
|
||||
local Template = require 'map_gen.Diggy.Template'
|
||||
|
@ -12,7 +12,7 @@ local Perlin = require 'map_gen.shared.perlin_noise'
|
||||
local random = math.random
|
||||
local ceil = math.ceil
|
||||
local Gui = require 'utils.gui'
|
||||
local utils = require 'utils.utils'
|
||||
local utils = require 'utils.core'
|
||||
|
||||
-- this
|
||||
local ArtefactHunting = {}
|
||||
|
@ -2,14 +2,14 @@
|
||||
Provides the ability to collapse caves when digging.
|
||||
]]
|
||||
-- dependencies
|
||||
require 'utils.list_utils'
|
||||
require 'utils.table'
|
||||
|
||||
local Event = require 'utils.event'
|
||||
local Template = require 'map_gen.Diggy.Template'
|
||||
local ScoreTable = require 'map_gen.Diggy.ScoreTable'
|
||||
local Debug = require 'map_gen.Diggy.Debug'
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Global = require 'utils.global'
|
||||
local Game = require 'utils.game'
|
||||
local insert = table.insert
|
||||
|
@ -7,8 +7,8 @@ local Template = require 'map_gen.Diggy.Template'
|
||||
local Perlin = require 'map_gen.shared.perlin_noise'
|
||||
local Event = require 'utils.event'
|
||||
local Debug = require'map_gen.Diggy.Debug'
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local raise_event = script.raise_event
|
||||
|
||||
-- this
|
||||
|
@ -3,7 +3,7 @@
|
||||
]]
|
||||
-- dependencies
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
local Template = require 'map_gen.Diggy.Template'
|
||||
local Debug = require 'map_gen.Diggy.Debug'
|
||||
local Retailer = require 'features.retailer'
|
||||
|
@ -4,8 +4,8 @@ local Debug = require 'map_gen.Diggy.Debug'
|
||||
local ScenarioInfo = require 'features.gui.info'
|
||||
local Event = require 'utils.event'
|
||||
|
||||
require 'utils.list_utils'
|
||||
require 'utils.utils'
|
||||
require 'utils.table'
|
||||
require 'utils.core'
|
||||
|
||||
-- this
|
||||
local Scenario = {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
-- dependencies
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Debug = require 'map_gen.Diggy.Debug'
|
||||
local insert = table.insert
|
||||
local min = math.min
|
||||
|
@ -2,7 +2,7 @@
|
||||
-- !! ATTENTION !!
|
||||
-- Use water only in starting area as map setting!!!
|
||||
local perlin = require 'map_gen.shared.perlin_noise'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local wreck_item_pool = {
|
||||
{name = 'iron-gear-wheel', count = 32},
|
||||
|
@ -3,7 +3,7 @@
|
||||
-- !! ATTENTION !!
|
||||
-- Use water only in starting area as map setting!!!
|
||||
local perlin = require 'map_gen.shared.perlin_noise'
|
||||
local Task = require 'utils.Task'
|
||||
local Task = require 'utils.task'
|
||||
wreck_item_pool = {}
|
||||
wreck_item_pool = {
|
||||
{name = 'iron-gear-wheel', count = 32},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local perlin = require 'map_gen.shared.perlin_noise'
|
||||
local Task = require 'utils.Task'
|
||||
local Task = require 'utils.task'
|
||||
local Event = require 'utils.event'
|
||||
|
||||
local block_size = 1 -- in tiles
|
||||
|
@ -4,7 +4,7 @@
|
||||
-- Use water only in starting area as map setting!!!
|
||||
|
||||
local perlin = require 'map_gen.shared.perlin_noise'
|
||||
local Task = require 'utils.Task'
|
||||
local Task = require 'utils.task'
|
||||
|
||||
wreck_item_pool = {}
|
||||
wreck_item_pool = {
|
||||
|
@ -1,7 +1,7 @@
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
local Gui = require 'utils.gui'
|
||||
local Task = require 'utils.Task'
|
||||
local Task = require 'utils.task'
|
||||
local Global = require 'utils.global'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local item_pool = {
|
||||
{name = 'firearm-magazine', count = 200, weight = 1250},
|
||||
|
@ -1,8 +1,8 @@
|
||||
require 'utils.list_utils'
|
||||
require 'utils.table'
|
||||
local Game = require 'utils.game'
|
||||
local Event = require 'utils.event'
|
||||
local naming_words = require 'resources.naming_words'
|
||||
local Utils = require('utils.utils')
|
||||
local Utils = require('utils.core')
|
||||
global.actual_name = {}
|
||||
global.silly_names = {}
|
||||
global.silly_names.count = 0
|
||||
|
@ -1,6 +1,6 @@
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
local Utils = require 'utils.utils'
|
||||
local Utils = require 'utils.core'
|
||||
local Module = {}
|
||||
|
||||
global.player_spawns = {} -- player_index to spawn_name
|
||||
|
@ -1,6 +1,6 @@
|
||||
-- adds some wrecked items around the map, good for MP, reduces total resources pulled from factory, and adds incentive to push out
|
||||
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local wreck_item_pool = {
|
||||
{name = 'iron-gear-wheel', count = 32},
|
||||
|
@ -3,7 +3,7 @@
|
||||
require("rso_config")
|
||||
require("util")
|
||||
require("rso_resource_config")
|
||||
local Utils = require "utils.utils"
|
||||
local Utils = require "utils.core"
|
||||
local Game = require 'utils.game'
|
||||
local math = require 'utils.math'
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
local Event = require 'utils.event'
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Global = require 'utils.global'
|
||||
|
||||
local no_coin_entity = {}
|
||||
|
@ -1,8 +1,8 @@
|
||||
local Random = require 'map_gen.shared.random'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
local Global = require 'utils.global'
|
||||
local Event = require 'utils.event'
|
||||
local Task = require 'utils.Task'
|
||||
local Task = require 'utils.task'
|
||||
local Market = require 'map_gen.presets.crash_site.market'
|
||||
local PlayerStats = require 'features.player_stats'
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,6 +1,6 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,6 +1,6 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,6 +1,6 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 10},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,5 +1,5 @@
|
||||
local ob = require 'map_gen.presets.crash_site.outpost_builder'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local loot = {
|
||||
{weight = 5},
|
||||
|
@ -1,7 +1,7 @@
|
||||
local b = require 'map_gen.shared.builders'
|
||||
local Random = require 'map_gen.shared.random'
|
||||
local Perlin = require 'map_gen.shared.perlin_noise'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
local Global = require 'utils.global'
|
||||
local Event = require 'utils.event'
|
||||
local degrees = require "utils.math".degrees
|
||||
|
@ -1,5 +1,5 @@
|
||||
local Task = require 'utils.Task'
|
||||
local Token = require 'utils.global_token'
|
||||
local Task = require 'utils.task'
|
||||
local Token = require 'utils.token'
|
||||
local Event = require 'utils.event'
|
||||
|
||||
local insert = table.insert
|
||||
|
@ -1,4 +1,4 @@
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
local Event = require 'utils.event'
|
||||
|
||||
local insert = table.insert
|
||||
|
@ -1,4 +1,4 @@
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local Builders = {}
|
||||
|
||||
|
@ -5,9 +5,9 @@
|
||||
-- ======================================================= --
|
||||
|
||||
local Queue = require 'utils.Queue'
|
||||
local PriorityQueue = require 'utils.PriorityQueue'
|
||||
local PriorityQueue = require 'utils.priority_queue'
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local Task = {}
|
||||
|
||||
|
@ -85,7 +85,7 @@ function Event.on_nth_tick(tick, handler)
|
||||
end
|
||||
end
|
||||
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
global.event_tokens = {}
|
||||
|
||||
function Event.add_removable(event_name, token)
|
||||
|
@ -1,5 +1,5 @@
|
||||
local Event = require 'utils.event'
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
|
||||
local Global = {}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
local Token = require 'utils.global_token'
|
||||
local Token = require 'utils.token'
|
||||
local Event = require 'utils.event'
|
||||
local Game = require 'utils.game'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user