1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-06 00:23:49 +02:00

version + class data fix

Changes:
- Fixed version string to 1.3.1
- Fixed an issue, where if last player would leave the crew, the class wouldn't become spare
This commit is contained in:
Piratux 2022-07-26 18:45:43 +01:00
parent d5bf2a1295
commit 58f46147a8
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ local _inspect = require 'utils.inspect'.inspect
local Public = {}
Public.scenario_id_name = 'pirates'
Public.version_string = '1.3.0' --major.minor.patch versioning, to match factorio mod portal
Public.version_string = '1.3.1' --major.minor.patch versioning, to match factorio mod portal
Public.blueprint_library_allowed = true
Public.blueprint_importing_allowed = true

View File

@ -451,14 +451,14 @@ function Public.leave_crew(player, to_lobby, quiet)
if not (memory.difficulty_votes) then memory.difficulty_votes = {} end
memory.difficulty_votes[player.index] = nil
Roles.player_left_so_redestribute_roles(player)
if #Common.crew_get_crew_members() == 0 then
if Common.autodisband_ticks then
memory.crew_disband_tick = game.tick + Common.autodisband_ticks
end
-- memory.crew_disband_tick = game.tick + 60*60*2 --give players time to log back in after a crash or save
if _DEBUG then memory.crew_disband_tick = game.tick + 30*60*60 end
else
Roles.player_left_so_redestribute_roles(player)
end
end