mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-30 04:30:58 +02:00
commit
91e18a7a96
72
config.lua
72
config.lua
@ -14,53 +14,53 @@ global.config = {
|
|||||||
-- The feature list of the map
|
-- The feature list of the map
|
||||||
map_extra_info_key = 'This map has no extra information',
|
map_extra_info_key = 'This map has no extra information',
|
||||||
-- New Scenario Features, appears in the "What's new" tab
|
-- New Scenario Features, appears in the "What's new" tab
|
||||||
new_info_key = 'Nothing is new. The world is at peace',
|
new_info_key = 'Nothing is new. The world is at peace'
|
||||||
},
|
},
|
||||||
-- saves players' lives if they have a small-plane in their inventory, also adds the small-plane to the market and must therefor be loaded first
|
-- saves players' lives if they have a small-plane in their inventory, also adds the small-plane to the market and must therefor be loaded first
|
||||||
train_saviour = {
|
train_saviour = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- Adds the infinite storage chest to the market and adds a custom GUI to it. Also has to be loaded first due to adding a market item
|
-- Adds the infinite storage chest to the market and adds a custom GUI to it. Also has to be loaded first due to adding a market item
|
||||||
infinite_storage_chest = {
|
infinite_storage_chest = {
|
||||||
enabled = false,
|
enabled = false
|
||||||
},
|
},
|
||||||
-- adds a command to scale UPS and movement speed. Use with caution as it might break scenarios that modify movement speed
|
-- adds a command to scale UPS and movement speed. Use with caution as it might break scenarios that modify movement speed
|
||||||
performance = {
|
performance = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds a player list icon and keeps track of data.
|
-- adds a player list icon and keeps track of data.
|
||||||
player_list = {
|
player_list = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
show_coin_column = true,
|
show_coin_column = true
|
||||||
},
|
},
|
||||||
-- enables the poll system
|
-- enables the poll system
|
||||||
poll = {
|
poll = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- enables players to create and join tags
|
-- enables players to create and join tags
|
||||||
tag_group = {
|
tag_group = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- enables players to create and prioritize tasks
|
-- enables players to create and prioritize tasks
|
||||||
tasklist = {
|
tasklist = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- enables the blueprint helper
|
-- enables the blueprint helper
|
||||||
blueprint_helper = {
|
blueprint_helper = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- enables score and tracking thereof
|
-- enables score and tracking thereof
|
||||||
score = {
|
score = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds a paint brush
|
-- adds a paint brush
|
||||||
paint = {
|
paint = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds a market
|
-- adds a market
|
||||||
market = {
|
market = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
currency = currency,
|
currency = currency
|
||||||
},
|
},
|
||||||
-- adds anti-nuke griefing
|
-- adds anti-nuke griefing
|
||||||
nuke_control = {
|
nuke_control = {
|
||||||
@ -68,25 +68,25 @@ global.config = {
|
|||||||
enable_autokick = true,
|
enable_autokick = true,
|
||||||
enable_autoban = true,
|
enable_autoban = true,
|
||||||
-- how long a player must be on the server to be allowed to use the nuke
|
-- how long a player must be on the server to be allowed to use the nuke
|
||||||
nuke_min_time_hours = 3,
|
nuke_min_time_hours = 3
|
||||||
},
|
},
|
||||||
-- adds a meltdown feature, requiring precise management
|
-- adds a meltdown feature, requiring precise management
|
||||||
reactor_meltdown = {
|
reactor_meltdown = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
-- when enabled, controls whether it's on by default. State can be controlled with the /meltdown command.
|
-- when enabled, controls whether it's on by default. State can be controlled with the /meltdown command.
|
||||||
on_by_default = false,
|
on_by_default = false
|
||||||
},
|
},
|
||||||
-- adds hodor responses to messages
|
-- adds hodor responses to messages
|
||||||
hodor = {
|
hodor = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- enable RedMew auto respond messages
|
-- enable RedMew auto respond messages
|
||||||
auto_respond = {
|
auto_respond = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- enable the mentioning system, which notifies a player when their name is mentioned
|
-- enable the mentioning system, which notifies a player when their name is mentioned
|
||||||
mentions = {
|
mentions = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- settings for when a player joins the server for the first time
|
-- settings for when a player joins the server for the first time
|
||||||
player_create = {
|
player_create = {
|
||||||
@ -94,14 +94,14 @@ global.config = {
|
|||||||
-- items automatically inserted into the player inventory
|
-- items automatically inserted into the player inventory
|
||||||
starting_items = {
|
starting_items = {
|
||||||
{name = 'iron-gear-wheel', count = 8},
|
{name = 'iron-gear-wheel', count = 8},
|
||||||
{name = 'iron-plate', count = 16},
|
{name = 'iron-plate', count = 16}
|
||||||
},
|
},
|
||||||
-- opens the scenario popup when the player joins
|
-- opens the scenario popup when the player joins
|
||||||
show_info_at_start = true,
|
show_info_at_start = true,
|
||||||
-- prints messages when the player joins
|
-- prints messages when the player joins
|
||||||
join_messages = {
|
join_messages = {
|
||||||
'Welcome to this map created by the RedMew team. You can join our discord at: redmew.com/discord',
|
'Welcome to this map created by the RedMew team. You can join our discord at: redmew.com/discord',
|
||||||
'Click the question mark in the top left corner for server information and map details.',
|
'Click the question mark in the top left corner for server information and map details.'
|
||||||
},
|
},
|
||||||
-- format is a table: {{message, weight}, {message, weight}}, where a higher weight has more chance to be shown
|
-- format is a table: {{message, weight}, {message, weight}}, where a higher weight has more chance to be shown
|
||||||
random_join_message_set = require 'resources.join_messages',
|
random_join_message_set = require 'resources.join_messages',
|
||||||
@ -131,9 +131,9 @@ global.config = {
|
|||||||
{name = 'small-plane', count = 2},
|
{name = 'small-plane', count = 2},
|
||||||
{name = 'coin', count = 20000},
|
{name = 'coin', count = 20000},
|
||||||
{name = 'rocket-part', count = 2},
|
{name = 'rocket-part', count = 2},
|
||||||
{name = 'computer', count = 2},
|
{name = 'computer', count = 2}
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
-- spawns more units when one dies
|
-- spawns more units when one dies
|
||||||
hail_hydra = {
|
hail_hydra = {
|
||||||
@ -158,8 +158,8 @@ global.config = {
|
|||||||
-- worms
|
-- worms
|
||||||
['small-worm-turret'] = {['small-biter'] = 2.5},
|
['small-worm-turret'] = {['small-biter'] = 2.5},
|
||||||
['medium-worm-turret'] = {['small-biter'] = 2.5, ['medium-biter'] = 0.6},
|
['medium-worm-turret'] = {['small-biter'] = 2.5, ['medium-biter'] = 0.6},
|
||||||
['big-worm-turret'] = {['small-biter'] = 3.8, ['medium-biter'] = 1.3, ['big-biter'] = 1.1},
|
['big-worm-turret'] = {['small-biter'] = 3.8, ['medium-biter'] = 1.3, ['big-biter'] = 1.1}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
-- grants reward coins for certain actions
|
-- grants reward coins for certain actions
|
||||||
player_rewards = {
|
player_rewards = {
|
||||||
@ -167,42 +167,42 @@ global.config = {
|
|||||||
-- the token to use for rewards
|
-- the token to use for rewards
|
||||||
token = currency,
|
token = currency,
|
||||||
-- rewards players for looking through the info tabs
|
-- rewards players for looking through the info tabs
|
||||||
info_player_reward = true,
|
info_player_reward = true
|
||||||
},
|
},
|
||||||
-- automatically marks miners for deconstruction when they are depleted (currently compatible with hard mods that add miners)
|
-- automatically marks miners for deconstruction when they are depleted (currently compatible with hard mods that add miners)
|
||||||
autodeconstruct = {
|
autodeconstruct = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- when a player dies, leaves a map marker until the corpse expires or is looted
|
-- when a player dies, leaves a map marker until the corpse expires or is looted
|
||||||
corpse_util = {
|
corpse_util = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds many commands for users and admins alike
|
-- adds many commands for users and admins alike
|
||||||
redmew_commands = {
|
redmew_commands = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds many commands for admins
|
-- adds many commands for admins
|
||||||
admin_commands = {
|
admin_commands = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- enables donators' on-join messages
|
-- enables donators' on-join messages
|
||||||
donator_messages = {
|
donator_messages = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
player_colors = {
|
player_colors = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds a command that switches a player to the enemy force and teleports them far away for some time to calm down
|
-- adds a command that switches a player to the enemy force and teleports them far away for some time to calm down
|
||||||
walkabout = {
|
walkabout = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds a command to generate a popup dialog box for players to see, useful for important announcements
|
-- adds a command to generate a popup dialog box for players to see, useful for important announcements
|
||||||
popup = {
|
popup = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds a camera to watch another player
|
-- adds a camera to watch another player
|
||||||
camera = {
|
camera = {
|
||||||
enabled = true,
|
enabled = true
|
||||||
},
|
},
|
||||||
-- adds small quality of life tweaks for multiplayer play
|
-- adds small quality of life tweaks for multiplayer play
|
||||||
redmew_qol = {
|
redmew_qol = {
|
||||||
@ -215,7 +215,9 @@ global.config = {
|
|||||||
random_train_color = true,
|
random_train_color = true,
|
||||||
-- gives players entity ghosts (from destruction like biter attacks) before the required research is complete
|
-- gives players entity ghosts (from destruction like biter attacks) before the required research is complete
|
||||||
ghosts_before_research = true,
|
ghosts_before_research = true,
|
||||||
},
|
-- adds craftable loaders.
|
||||||
|
loaders = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return global.config
|
return global.config
|
||||||
|
@ -99,6 +99,21 @@ local change_backer_name =
|
|||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
||||||
|
local loaders_technology_map = {
|
||||||
|
['logistics'] = 'loader',
|
||||||
|
['logistics-2'] = 'fast-loader',
|
||||||
|
['logistics-3'] = 'express-loader'
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Enables loaders when prerequisite technology is researched.
|
||||||
|
local function enable_loaders(event)
|
||||||
|
local research = event.research
|
||||||
|
local recipe = loaders_technology_map[research.name]
|
||||||
|
if recipe then
|
||||||
|
research.force.recipes[recipe].enabled = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Event registers
|
-- Event registers
|
||||||
|
|
||||||
local function register_random_train_color()
|
local function register_random_train_color()
|
||||||
@ -211,4 +226,8 @@ if config.backer_name then
|
|||||||
register_change_backer_name()
|
register_change_backer_name()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if config.loaders then
|
||||||
|
Event.add(defines.events.on_research_finished, enable_loaders)
|
||||||
|
end
|
||||||
|
|
||||||
return Public
|
return Public
|
||||||
|
@ -78,7 +78,4 @@ return {
|
|||||||
{price = 350, name = 'energy-shield-equipment'},
|
{price = 350, name = 'energy-shield-equipment'},
|
||||||
{price = 750, name = 'personal-laser-defense-equipment'},
|
{price = 750, name = 'personal-laser-defense-equipment'},
|
||||||
{price = 1, name = 'refined-hazard-concrete'},
|
{price = 1, name = 'refined-hazard-concrete'},
|
||||||
{price = 75, name = 'loader'},
|
|
||||||
{price = 150, name = 'fast-loader'},
|
|
||||||
{price = 225, name = 'express-loader'},
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user