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

More relevant Journey satellites count comparison

Small fix for future to easily change maximum satellites count if needed (not hardcoded to 3).
This commit is contained in:
Shadow_Man 2022-11-17 01:28:36 +02:00 committed by GitHub
parent 4606de6207
commit 46383fc354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1004,7 +1004,7 @@ function Public.create_the_world(journey)
journey.mothership_cargo["uranium-fuel-cell"] = 0
journey.world_number = journey.world_number + 1
local max_satellites = math_floor(journey.world_number * 0.334) + 1
if max_satellites > 3 then
if max_satellites > Constants.max_satellites then
max_satellites = Constants.max_satellites
end
journey.mothership_cargo_space["satellite"] = max_satellites