1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-30 23:17:53 +02:00
This commit is contained in:
Gerkiz 2020-09-05 09:01:11 +02:00
parent 75ed42bfc0
commit bd55ede971
2 changed files with 6 additions and 15 deletions

View File

@ -1867,7 +1867,7 @@ function Public.get_items()
stack = 1,
value = 'coin',
price = 128,
tooltip = ({'item-name.loader'}),
tooltip = ({'entity-name.loader'}),
upgrade = false,
static = true
}
@ -1877,7 +1877,7 @@ function Public.get_items()
stack = 1,
value = 'coin',
price = 256,
tooltip = ({'item-name.fast-loader'}),
tooltip = ({'entity-name.fast-loader'}),
upgrade = false,
static = true
}
@ -1887,7 +1887,7 @@ function Public.get_items()
stack = 1,
value = 'coin',
price = 512,
tooltip = ({'item-name.express-loader'}),
tooltip = ({'entity-name.express-loader'}),
upgrade = false,
static = true
}

View File

@ -265,12 +265,6 @@ function Public.reset_map()
local this = WPT.get()
local wave_defense_table = WD.get_table()
for _, player in pairs(game.players) do
if player.controller_type == defines.controllers.editor then
player.toggle_map_editor()
end
end
this.active_surface_index = CS.create_surface()
Autostash.insert_into_furnace(true)
@ -390,10 +384,9 @@ local on_player_changed_position = function(event)
local position = player.position
local surface = game.surfaces[this.active_surface_index]
if not player.character then
return
end
if not player.character.valid then
if player.connected and not player.character or not player.character.valid then
player.set_controller({type = defines.controllers.god})
player.create_character()
return
end
@ -434,7 +427,6 @@ local on_player_joined_game = function(event)
local this = WPT.get()
local player = game.players[event.player_index]
local surface = game.surfaces[this.active_surface_index]
local comfy = '[color=blue]Comfylatron:[/color] \n'
set_difficulty()
@ -510,7 +502,6 @@ local remove_offline_players = function()
local offline_players = WPT.get('offline_players')
local active_surface_index = WPT.get('active_surface_index')
local surface = game.surfaces[active_surface_index]
local keeper = '[color=blue]Cleaner:[/color] \n'
local player_inv = {}
local items = {}
if #offline_players > 0 then