1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-03-17 20:58:13 +02:00

code cleanup

This commit is contained in:
Piratux 2022-07-31 23:38:57 +01:00
parent f580743cfc
commit c38d2db728
2 changed files with 3 additions and 3 deletions

View File

@ -431,14 +431,14 @@ function Public.kraken_evo_increase_per_shot()
end
function Public.kraken_evo_increase_per_second()
return 1/100 / 20
return (1/100) / 20
end
function Public.sandworm_evo_increase_per_spawn()
if _DEBUG then
return 1/100
else
return 1/100 * 1/7 * Math.sloped(Common.difficulty_scale(), 3/5)
return (1/100) * (1/7) * Math.sloped(Common.difficulty_scale(), 3/5)
end
end

View File

@ -348,7 +348,7 @@ function Public.assign_captain_based_on_priorities(excluded_player_index)
local captain_name = nil
-- Prefer officers for a captain (if there are any)
for _, player_index in pairs(memory.officers_table) do
for player_index, _ in pairs(memory.officers_table) do
local player = game.players[player_index]
local player_active = Utils.contains(Common.crew_get_nonafk_crew_members(), player)