mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 05:46:22 +09:00
.
This commit is contained in:
@@ -69,20 +69,20 @@ function main.calc(entity)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if pickup_belt_speed and (stack_size > 1) then
|
if pickup_belt_speed and (stack_size > 1) then
|
||||||
ticks_per_cycle = ticks_per_cycle + main.get_belt_penalty(pickup_belt_speed * (entity.force.belt_stack_size_bonus or 1), stack_size)
|
ticks_per_cycle = ticks_per_cycle + main.get_belt_penalty(pickup_belt_speed, stack_size)
|
||||||
end
|
end
|
||||||
|
|
||||||
if drop_belt_speed and (stack_size > 1) then
|
if drop_belt_speed and (stack_size > 1) then
|
||||||
ticks_per_cycle = ticks_per_cycle + main.get_belt_penalty(drop_belt_speed * (prototype.inserter_max_belt_stack_size or 1), stack_size)
|
ticks_per_cycle = ticks_per_cycle + main.get_belt_penalty(drop_belt_speed, stack_size)
|
||||||
end
|
end
|
||||||
|
|
||||||
if drop_belt_speed then
|
if drop_belt_speed then
|
||||||
local max = drop_belt_speed * ticks_per_cycle * 4
|
local max = drop_belt_speed * ticks_per_cycle * 4 * (entity.force.belt_stack_size_bonus or 1)
|
||||||
stack_size = (stack_size > max and max) or stack_size
|
stack_size = (stack_size > max and max) or stack_size
|
||||||
end
|
end
|
||||||
|
|
||||||
if pickup_belt_speed then
|
if pickup_belt_speed then
|
||||||
local max = pickup_belt_speed * ticks_per_cycle * 8
|
local max = pickup_belt_speed * ticks_per_cycle * 8 * (prototype.inserter_max_belt_stack_size or 1)
|
||||||
stack_size = (stack_size > max and max) or stack_size
|
stack_size = (stack_size > max and max) or stack_size
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user