mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-09 13:37:02 +02:00
hotfix for player list
This commit is contained in:
parent
f02425c2a5
commit
ba7c76b6b9
@ -235,7 +235,12 @@ local function player_list_show(player, frame, sort_by)
|
|||||||
|
|
||||||
player_list_panel_table = player_list_panel_table.add { type = "table", name = "player_list_panel_table", column_count = 5 }
|
player_list_panel_table = player_list_panel_table.add { type = "table", name = "player_list_panel_table", column_count = 5 }
|
||||||
|
|
||||||
local player_list = get_sorted_list(sort_by)
|
local player_list
|
||||||
|
if sort_by then
|
||||||
|
player_list = get_sorted_list(sort_by)
|
||||||
|
else
|
||||||
|
player_list = get_sorted_list("total_time_played_desc")
|
||||||
|
end
|
||||||
|
|
||||||
for i = 1, #player_list, 1 do
|
for i = 1, #player_list, 1 do
|
||||||
-- Icon
|
-- Icon
|
||||||
|
@ -1,6 +1,19 @@
|
|||||||
--vanilla with wave_defense
|
--vanilla with wave_defense
|
||||||
|
|
||||||
require "modules.wave_defense.main"
|
require "modules.wave_defense.main"
|
||||||
|
require "modules.map_info"
|
||||||
|
map_info = {}
|
||||||
|
map_info.main_caption = "Wave Defense"
|
||||||
|
map_info.sub_caption = "~~~~~~"
|
||||||
|
map_info.text = table.concat({
|
||||||
|
"Survive\n",
|
||||||
|
"as\n",
|
||||||
|
"long\n",
|
||||||
|
"as\n",
|
||||||
|
"possible.\n",
|
||||||
|
})
|
||||||
|
map_info.main_caption_color = {r = 150, g = 0, b = 150}
|
||||||
|
map_info.sub_caption_color = {r = 100, g = 150, b = 0}
|
||||||
|
|
||||||
local starting_items = {['pistol'] = 1, ['firearm-magazine'] = 16, ['iron-plate'] = 16, ['iron-gear-wheel'] = 8, ['raw-fish'] = 3,}
|
local starting_items = {['pistol'] = 1, ['firearm-magazine'] = 16, ['iron-plate'] = 16, ['iron-gear-wheel'] = 8, ['raw-fish'] = 3,}
|
||||||
|
|
||||||
@ -28,6 +41,8 @@ end
|
|||||||
local function on_init()
|
local function on_init()
|
||||||
game.surfaces[1].request_to_generate_chunks({0,0}, 16)
|
game.surfaces[1].request_to_generate_chunks({0,0}, 16)
|
||||||
game.surfaces[1].force_generate_chunk_requests()
|
game.surfaces[1].force_generate_chunk_requests()
|
||||||
|
|
||||||
|
global.wave_defense.next_wave = 3600 * 15
|
||||||
end
|
end
|
||||||
|
|
||||||
local event = require 'utils.event'
|
local event = require 'utils.event'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user