1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2024-12-30 23:17:53 +02:00

rename protected_run_cap

This commit is contained in:
danielmartin0 2024-09-07 22:44:15 +01:00
parent 4ab447a395
commit 986ca080e3
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ local Public = {}
Public.activeCrewsCap = 5
Public.private_run_cap = 2
Public.protected_run_cap = 2 -- more precisely protected, but not private run cap
Public.protected_but_not_private_run_cap = 2
Public.minimumCapacitySliderValue = 1
Public.minimum_run_capacity_to_enforce_space_for = 22

View File

@ -791,7 +791,7 @@ function Public.click(event)
end
elseif run_is_protected then
-- Make sure protected run can be created
if protected_but_not_private_run_count >= global_memory.protected_run_cap then
if protected_but_not_private_run_count >= global_memory.protected_but_not_private_run_cap then
Common.notify_player_error(player, {'pirates.gui_runs_proposal_maker_error_protected_run_limit'})
return
end
@ -916,7 +916,7 @@ function Public.click(event)
end
end
if protected_but_not_private_run_count >= global_memory.protected_run_cap then
if protected_but_not_private_run_count >= global_memory.protected_but_not_private_run_cap then
Common.notify_player_error(player, {'pirates.gui_runs_proposal_maker_error_protected_run_limit'})
return
end

View File

@ -109,7 +109,7 @@ local function on_init()
Common.init_game_settings(Balance.technology_price_multiplier)
global_memory.active_crews_cap = Common.activeCrewsCap
global_memory.protected_run_cap = Common.protected_run_cap
global_memory.protected_but_not_private_run_cap = Common.protected_but_not_private_run_cap
global_memory.private_run_cap = Common.private_run_cap
global_memory.minimumCapacitySliderValue = Common.minimumCapacitySliderValue