Some other mods introduce ammo that has limited range.
So, for example, a turret might have a base range of 30 tiles and use ammo with a range of 28.
Normally, that works fine. The foe usually sees the turret and runs into range of the ammo while the shot is flying through the air.
But, say a searchlight spots a foe 90 tiles away and "boosts" the range of the turret next to it so that turret can fire at the foe.
Without the ammo boosting, a searchlight would boost the turret's range to 100, and the ammo's range is still 35, then the turret will shoot at a foe 90 tiles away -- and its shots will miss because the ammo's range isn't long enough to reach the foe.
And the foe never notices the turret because it's so far away. And since it never gets hit, it never has a reason to run into range.
This wastes ammo, and "locks up" the turret so it ignores other foes.
To prevent that problem, the Searchlight Assault mod has an option to also increase the range of ammo used by turrets.
This allows turrets using limited-range ammo to shoot their foes successfully.
The new range of the boosted ammo is the same as the range of a searchlight: 100 tiles.
(Defined by d.searchlightRange on line 20 of sl-defines.lua
Although, now that I look at the code, I think I need to use line 33's definition to account for a turret being placed on the far side of a searchlight from a foe...)
I have done my best to make sure that the "boosted" ammo for boosted turrets is not able to be shared or transferred out of the boosted turret.
Any boosted ammo that leaves a boosted turret should be downgraded back into its base version instantly.
This feature was requested by other users, about halfway down this thread:
https://mods.factorio.com/mod/SearchlightAssault/discussion/61bc1c4906bd61078aad09ce
The feature can be disabled through the mod setting menu if you like, it doesn't affect other parts of the game