mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-11-06 09:09:26 +02:00
Move map info to config (#321)
* Move map info to config * Move map info to config
This commit is contained in:
@@ -20,3 +20,12 @@ global.scenario.custom_functions = {}
|
|||||||
global.scenario.config.nuke_control.nuke_min_time_hours = 3 --how long a player must be on the server to be allowed to use the nuke
|
global.scenario.config.nuke_control.nuke_min_time_hours = 3 --how long a player must be on the server to be allowed to use the nuke
|
||||||
global.newline = '\n'
|
global.newline = '\n'
|
||||||
newline = '\n'
|
newline = '\n'
|
||||||
|
|
||||||
|
-- The title of the map
|
||||||
|
global.scenario.config.map_name_key = 'This Map has no name'
|
||||||
|
-- The long description of the map, typically 1 paragraph
|
||||||
|
global.scenario.config.map_description_key = "By default this section is blank as it's supposed to be filled out on a per map basis. (If you're seeing this message, ping the admin team to get a description added for this map)"
|
||||||
|
-- The feature list of the map
|
||||||
|
global.scenario.config.map_extra_info_key = 'This map has no extra infomation'
|
||||||
|
-- New Scenario Features, appears in the "What's new" tab
|
||||||
|
global.scenario.config.new_info_key = 'Nothing is new. The world is at peace'
|
||||||
|
|||||||
@@ -19,11 +19,12 @@ local map_extra_info_key = 3
|
|||||||
local new_info_key = 4
|
local new_info_key = 4
|
||||||
|
|
||||||
local welcomed_players = {}
|
local welcomed_players = {}
|
||||||
|
|
||||||
local editable_info = {
|
local editable_info = {
|
||||||
[map_name_key] = 'This Map has no name',
|
[map_name_key] = global.scenario.config.map_name_key,
|
||||||
[map_description_key] = "By default this section is blank as it's supposed to be filled out on a per map basis. (If you're seeing this message, ping the admin team to get a description added for this map)",
|
[map_description_key] = global.scenario.config.map_description_key,
|
||||||
[map_extra_info_key] = 'This map has no extra infomation',
|
[map_extra_info_key] = global.scenario.config.map_extra_info_key,
|
||||||
[new_info_key] = 'Nothing is new. The world is at peace'
|
[new_info_key] = global.scenario.config.new_info_key
|
||||||
}
|
}
|
||||||
|
|
||||||
Global.register(
|
Global.register(
|
||||||
|
|||||||
Reference in New Issue
Block a user